(update)增加获取授权信息的接口getLicense

yun-zuoyi
nies 3 years ago
parent b221382cd2
commit 1866c682f1

@ -158,6 +158,24 @@ public class BackstageController extends CoreBaseController {
}
}
@GetMapping(value = "/license")
@ApiOperation(value = "获取授权信息", notes = "获取授权信息")
public ResultBean getLicense(){
try {
ImppLicense license = ImppLicenseTool.getLicense();
//icense.getMaturityDateTime() 可能从lockEndTime和licenseEndDateTime字段获取值
license.setMaturityDateTime(license.getMaturityDateTime());
ResultBean result = ResultBean.success("查询成功").setResultObject(license);
return result;
} catch (ImppBusiException busExcep) {
return ResultBean.fail(busExcep);
} catch (Exception e) {
return ResultBean.fail(e).setCode(ImppExceptionEnum.SYSTEM_EXCEPTION.getCode());
}
}
@GetMapping(value = "/update-clean-menu-soft-type")
@ApiOperation(value = "更新并清理功能软件模块数据", notes = "更新并清理功能软件模块数据")
public ResultBean updateCleanMenuSoftType(){

Loading…
Cancel
Save