|
|
@@ -1,5 +1,6 @@
|
|
|
package com.zhongshu.card.server.core.controller.school;
|
|
|
|
|
|
+import com.github.microservice.auth.client.constant.AuthConstant;
|
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
|
import com.zhongshu.card.client.model.base.IDParam;
|
|
|
@@ -8,6 +9,7 @@ import com.github.microservice.net.ResultContent;
|
|
|
import com.zhongshu.card.client.service.school.BookInfoService;
|
|
|
import com.zhongshu.card.client.service.school.DictInfoService;
|
|
|
import com.zhongshu.card.client.service.school.NoticeInfoService;
|
|
|
+import com.zhongshu.card.client.type.DictInfoType;
|
|
|
import com.zhongshu.card.server.core.service.org.RoleServiceImpl;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.Parameter;
|
|
|
@@ -35,16 +37,49 @@ import java.util.List;
|
|
|
public class DictInfoController {
|
|
|
|
|
|
@Autowired
|
|
|
- RoleServiceImpl roleService;
|
|
|
+ DictInfoService dictInfoService;
|
|
|
|
|
|
- @Autowired
|
|
|
- NoticeInfoService noticeInfoService;
|
|
|
+ @ResourceAuth(value = "areaManager", type = AuthType.Platform, remark = "区域类型_区域类型_1_Menu")
|
|
|
+ @ResourceAuth(value = "areaManager", type = AuthType.Project, remark = "区域类型_区域类型_1_Menu")
|
|
|
+ @ResourceAuth(value = "areaManager", type = AuthType.School, remark = "区域类型_区域类型_1_Menu")
|
|
|
+ @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "区域类型_区域类型_1_Menu")
|
|
|
+ @ResourceAuth(value = AuthConstant.Admin, type = AuthType.Project, remark = "区域类型_区域类型_1_Menu")
|
|
|
+ @ResourceAuth(value = AuthConstant.Admin, type = AuthType.School, remark = "区域类型_区域类型_1_Menu")
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
+ @Operation(summary = "区域列表-分页查询", description = "区域列表-分页查询")
|
|
|
+ @RequestMapping(value = {"areaPageManager"}, method = {RequestMethod.POST})
|
|
|
+ public ResultContent<Page<DictInfoParam>> areaPageManager(
|
|
|
+ @Parameter(hidden = true) @PageableDefault(page = 0, size = 10) Pageable pageable,
|
|
|
+ @Parameter(required = false) DictInfoSearch param) {
|
|
|
+ param.setDictInfoType(DictInfoType.AreaType);
|
|
|
+ return dictInfoService.page(param, pageable);
|
|
|
+ }
|
|
|
|
|
|
- @Autowired
|
|
|
- BookInfoService bookInfoService;
|
|
|
+ @ResourceAuth(value = "positionManager", type = AuthType.Platform, remark = "人员职位_人员职位_1_Menu")
|
|
|
+ @ResourceAuth(value = "positionManager", type = AuthType.Project, remark = "人员职位_人员职位_1_Menu")
|
|
|
+ @ResourceAuth(value = "positionManager", type = AuthType.School, remark = "人员职位_人员职位_1_Menu")
|
|
|
+ @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "人员职位_人员职位_1_Menu")
|
|
|
+ @ResourceAuth(value = AuthConstant.Admin, type = AuthType.Project, remark = "人员职位_人员职位_1_Menu")
|
|
|
+ @ResourceAuth(value = AuthConstant.Admin, type = AuthType.School, remark = "人员职位_人员职位_1_Menu")
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
+ @Operation(summary = "人员职位列表-分页查询", description = "人员职位列表-分页查询")
|
|
|
+ @RequestMapping(value = {"positionPageManager"}, method = {RequestMethod.POST})
|
|
|
+ public ResultContent<Page<DictInfoParam>> positionPageManager(
|
|
|
+ @Parameter(hidden = true) @PageableDefault(page = 0, size = 10) Pageable pageable,
|
|
|
+ @Parameter(required = false) DictInfoSearch param) {
|
|
|
+ param.setDictInfoType(DictInfoType.Position);
|
|
|
+ return dictInfoService.page(param, pageable);
|
|
|
+ }
|
|
|
|
|
|
- @Autowired
|
|
|
- DictInfoService dictInfoService;
|
|
|
+
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
+ @Operation(summary = "字典列表-分页查询", description = "字典列表-分页查询")
|
|
|
+ @RequestMapping(value = {"page"}, method = {RequestMethod.POST})
|
|
|
+ public ResultContent<Page<DictInfoParam>> page(
|
|
|
+ @Parameter(hidden = true) @PageableDefault(page = 0, size = 10) Pageable pageable,
|
|
|
+ @Parameter(required = false) DictInfoSearch param) {
|
|
|
+ return dictInfoService.page(param, pageable);
|
|
|
+ }
|
|
|
|
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "添加-编辑字典", description = "添加-编辑字典")
|
|
|
@@ -67,15 +102,6 @@ public class DictInfoController {
|
|
|
return this.dictInfoService.getDictInfo(param.getId());
|
|
|
}
|
|
|
|
|
|
- @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
- @Operation(summary = "字典列表-分页查询", description = "字典列表-分页查询")
|
|
|
- @RequestMapping(value = {"page"}, method = {RequestMethod.POST})
|
|
|
- public ResultContent<Page<DictInfoParam>> page(
|
|
|
- @Parameter(hidden = true) @PageableDefault(page = 0, size = 10) Pageable pageable,
|
|
|
- @Parameter(required = false) DictInfoSearch param) {
|
|
|
- return dictInfoService.page(param, pageable);
|
|
|
- }
|
|
|
-
|
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "查询字典所有的数据", description = "查询字典所有的数据")
|
|
|
@RequestMapping(value = {"findDictInfosByOid"}, method = {RequestMethod.POST})
|