build: Swagger Tag 信息统一规范

This commit is contained in:
fit2-zhao 2023-08-29 15:35:47 +08:00 committed by fit2-zhao
parent 7e31df10ca
commit 2d3e73a04d
8 changed files with 49 additions and 49 deletions

View File

@ -28,7 +28,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
@Tag(name = "系统设置-认证设置") @Tag(name = "系统设置-系统-系统参数-认证设置")
@RestController @RestController
@RequestMapping("/system/authsource") @RequestMapping("/system/authsource")
@Data @Data
@ -40,7 +40,7 @@ public class AuthSourceController {
private LdapService ldapService; private LdapService ldapService;
@PostMapping("/list") @PostMapping("/list")
@Operation(summary = "系统设置-认证设置-列表查询") @Operation(summary = "系统设置-系统-系统参数-认证设置-列表查询")
@RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ) @RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ)
public Pager<List<AuthSource>> list(@Validated @RequestBody BasePageRequest request) { public Pager<List<AuthSource>> list(@Validated @RequestBody BasePageRequest request) {
Page<Object> page = PageHelper.startPage(request.getCurrent(), request.getPageSize(), Page<Object> page = PageHelper.startPage(request.getCurrent(), request.getPageSize(),
@ -49,7 +49,7 @@ public class AuthSourceController {
} }
@PostMapping("/add") @PostMapping("/add")
@Operation(summary = "系统设置-认证设置-新增") @Operation(summary = "系统设置-系统-系统参数-认证设置-新增")
@RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ_ADD) @RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ_ADD)
@Log(type = OperationLogType.ADD, expression = "#msClass.addLog(#authSource)", msClass = AuthSourceLogService.class) @Log(type = OperationLogType.ADD, expression = "#msClass.addLog(#authSource)", msClass = AuthSourceLogService.class)
public AuthSource add(@Validated @RequestBody AuthSourceRequest authSource) { public AuthSource add(@Validated @RequestBody AuthSourceRequest authSource) {
@ -57,7 +57,7 @@ public class AuthSourceController {
} }
@PostMapping("/update") @PostMapping("/update")
@Operation(summary = "系统设置-认证设置-更新") @Operation(summary = "系统设置-系统-系统参数-认证设置-更新")
@RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ_UPDATE)
@Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#authSource)", msClass = AuthSourceLogService.class) @Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#authSource)", msClass = AuthSourceLogService.class)
public AuthSourceRequest update(@Validated @RequestBody AuthSourceRequest authSource) { public AuthSourceRequest update(@Validated @RequestBody AuthSourceRequest authSource) {
@ -65,14 +65,14 @@ public class AuthSourceController {
} }
@GetMapping("/get/{id}") @GetMapping("/get/{id}")
@Operation(summary = "系统设置-认证设置-详细信息") @Operation(summary = "系统设置-系统-系统参数-认证设置-详细信息")
@RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ) @RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ)
public AuthSourceDTO get(@PathVariable(value = "id") String id) { public AuthSourceDTO get(@PathVariable(value = "id") String id) {
return authSourceService.getAuthSource(id); return authSourceService.getAuthSource(id);
} }
@GetMapping("/delete/{id}") @GetMapping("/delete/{id}")
@Operation(summary = "系统设置-认证设置-删除") @Operation(summary = "系统设置-系统-系统参数-认证设置-删除")
@RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ_DELETE) @RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ_DELETE)
@Log(type = OperationLogType.DELETE, expression = "#msClass.deleteLog(#id)", msClass = AuthSourceLogService.class) @Log(type = OperationLogType.DELETE, expression = "#msClass.deleteLog(#id)", msClass = AuthSourceLogService.class)
public void delete(@PathVariable(value = "id") String id) { public void delete(@PathVariable(value = "id") String id) {
@ -81,7 +81,7 @@ public class AuthSourceController {
@PostMapping("/update/status") @PostMapping("/update/status")
@Operation(summary = "系统设置-认证设置-更新状态") @Operation(summary = "系统设置-系统-系统参数-认证设置-更新状态")
@RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ_UPDATE)
@Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#request.getId())", msClass = AuthSourceLogService.class) @Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#request.getId())", msClass = AuthSourceLogService.class)
public AuthSource updateStatus(@Validated @RequestBody AuthSourceStatusRequest request) { public AuthSource updateStatus(@Validated @RequestBody AuthSourceStatusRequest request) {
@ -90,14 +90,14 @@ public class AuthSourceController {
@PostMapping("/ldap/test-connect") @PostMapping("/ldap/test-connect")
@Operation(summary = "系统设置-认证设置-ldap测试连接") @Operation(summary = "系统设置-系统-系统参数-认证设置-ldap测试连接")
@RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ_UPDATE)
public void ldapTestConnect(@Validated @RequestBody LdapRequest request) { public void ldapTestConnect(@Validated @RequestBody LdapRequest request) {
ldapService.testConnect(request); ldapService.testConnect(request);
} }
@PostMapping("/ldap/test-login") @PostMapping("/ldap/test-login")
@Operation(summary = "系统设置-认证设置-ldap测试登录") @Operation(summary = "系统设置-系统-系统参数-认证设置-ldap测试登录")
@RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_AUTH_READ_UPDATE)
public void testLogin(@RequestBody LdapLoginRequest request) { public void testLogin(@RequestBody LdapLoginRequest request) {
ldapService.testLogin(request); ldapService.testLogin(request);

View File

@ -26,7 +26,7 @@ import java.util.List;
* @author : jianxing * @author : jianxing
* @date : 2023-6-9 * @date : 2023-6-9
*/ */
@Tag(name = "系统设置-用户组") @Tag(name = "系统设置-系统-用户组")
@RestController @RestController
@RequestMapping("/user/role/global") @RequestMapping("/user/role/global")
public class GlobalUserRoleController { public class GlobalUserRoleController {
@ -35,21 +35,21 @@ public class GlobalUserRoleController {
private GlobalUserRoleService globalUserRoleService; private GlobalUserRoleService globalUserRoleService;
@GetMapping("/list") @GetMapping("/list")
@Operation(summary = "系统设置-用户组-获取全局用户组列表") @Operation(summary = "系统设置-系统-用户组-获取全局用户组列表")
@RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_READ) @RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_READ)
public List<UserRole> list() { public List<UserRole> list() {
return globalUserRoleService.list(); return globalUserRoleService.list();
} }
@GetMapping("/permission/setting/{id}") @GetMapping("/permission/setting/{id}")
@Operation(summary = "系统设置-用户组-获取全局用户组对应的权限配置") @Operation(summary = "系统设置-系统-用户组-获取全局用户组对应的权限配置")
@RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_READ) @RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_READ)
public List<PermissionDefinitionItem> getPermissionSetting(@PathVariable String id) { public List<PermissionDefinitionItem> getPermissionSetting(@PathVariable String id) {
return globalUserRoleService.getPermissionSetting(id); return globalUserRoleService.getPermissionSetting(id);
} }
@PostMapping("/permission/update") @PostMapping("/permission/update")
@Operation(summary = "系统设置-用户组-编辑全局用户组对应的权限配置") @Operation(summary = "系统设置-系统-用户组-编辑全局用户组对应的权限配置")
@RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_UPDATE)
@Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#request)", msClass = GlobalUserRoleLogService.class) @Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#request)", msClass = GlobalUserRoleLogService.class)
public void updatePermissionSetting(@Validated @RequestBody PermissionSettingUpdateRequest request) { public void updatePermissionSetting(@Validated @RequestBody PermissionSettingUpdateRequest request) {
@ -57,7 +57,7 @@ public class GlobalUserRoleController {
} }
@PostMapping("/add") @PostMapping("/add")
@Operation(summary = "系统设置-用户组-添加自定义全局用户组") @Operation(summary = "系统设置-系统-用户组-添加自定义全局用户组")
@RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_ADD) @RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_ADD)
@Log(type = OperationLogType.ADD, expression = "#msClass.addLog(#request)", msClass = GlobalUserRoleLogService.class) @Log(type = OperationLogType.ADD, expression = "#msClass.addLog(#request)", msClass = GlobalUserRoleLogService.class)
public UserRole add(@Validated({Created.class}) @RequestBody UserRoleUpdateRequest request) { public UserRole add(@Validated({Created.class}) @RequestBody UserRoleUpdateRequest request) {
@ -68,7 +68,7 @@ public class GlobalUserRoleController {
} }
@PostMapping("/update") @PostMapping("/update")
@Operation(summary = "系统设置-用户组-更新自定义全局用户组") @Operation(summary = "系统设置-系统-用户组-更新自定义全局用户组")
@RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_UPDATE)
@Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#request)", msClass = GlobalUserRoleLogService.class) @Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#request)", msClass = GlobalUserRoleLogService.class)
public UserRole update(@Validated({Updated.class}) @RequestBody UserRoleUpdateRequest request) { public UserRole update(@Validated({Updated.class}) @RequestBody UserRoleUpdateRequest request) {
@ -78,7 +78,7 @@ public class GlobalUserRoleController {
} }
@GetMapping("/delete/{id}") @GetMapping("/delete/{id}")
@Operation(summary = "系统设置-用户组-删除自定义全局用户组") @Operation(summary = "系统设置-系统-用户组-删除自定义全局用户组")
@RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_DELETE) @RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_DELETE)
@Log(type = OperationLogType.DELETE, expression = "#msClass.deleteLog(#id)", msClass = GlobalUserRoleLogService.class) @Log(type = OperationLogType.DELETE, expression = "#msClass.deleteLog(#id)", msClass = GlobalUserRoleLogService.class)
public void delete(@PathVariable String id) { public void delete(@PathVariable String id) {

View File

@ -31,7 +31,7 @@ import java.util.List;
* @date : 2023-6-12 * @date : 2023-6-12
*/ */
@RestController @RestController
@Tag(name = "系统设置-用户组与用户关联关系") @Tag(name = "系统设置-系统-用户组-用户关联关系")
@RequestMapping("/user/role/relation/global") @RequestMapping("/user/role/relation/global")
public class GlobalUserRoleRelationController { public class GlobalUserRoleRelationController {
@ -39,7 +39,7 @@ public class GlobalUserRoleRelationController {
private GlobalUserRoleRelationService globalUserRoleRelationService; private GlobalUserRoleRelationService globalUserRoleRelationService;
@PostMapping("/list") @PostMapping("/list")
@Operation(summary = "系统设置-用户组与用户关联关系-获取全局用户组对应的用户列表") @Operation(summary = "系统设置-系统-用户组-用户关联关系-获取全局用户组对应的用户列表")
@RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_READ) @RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_READ)
public Pager<List<UserRoleRelationUserDTO>> list(@Validated @RequestBody GlobalUserRoleRelationQueryRequest request) { public Pager<List<UserRoleRelationUserDTO>> list(@Validated @RequestBody GlobalUserRoleRelationQueryRequest request) {
Page<Object> page = PageHelper.startPage(request.getCurrent(), request.getPageSize(), true); Page<Object> page = PageHelper.startPage(request.getCurrent(), request.getPageSize(), true);
@ -47,7 +47,7 @@ public class GlobalUserRoleRelationController {
} }
@PostMapping("/add") @PostMapping("/add")
@Operation(summary = "系统设置-用户组与用户关联关系-创建全局用户组和用户的关联关系") @Operation(summary = "系统设置-系统-用户组-用户关联关系-创建全局用户组和用户的关联关系")
@RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_UPDATE)
@Log(type = OperationLogType.ADD, expression = "#msClass.addLog(#request)", msClass = GlobalUserRoleRelationLogService.class) @Log(type = OperationLogType.ADD, expression = "#msClass.addLog(#request)", msClass = GlobalUserRoleRelationLogService.class)
public void add(@Validated({Created.class}) @RequestBody GlobalUserRoleRelationUpdateRequest request) { public void add(@Validated({Created.class}) @RequestBody GlobalUserRoleRelationUpdateRequest request) {
@ -56,7 +56,7 @@ public class GlobalUserRoleRelationController {
} }
@GetMapping("/delete/{id}") @GetMapping("/delete/{id}")
@Operation(summary = "系统设置-用户组与用户关联关系-删除全局用户组和用户的关联关系") @Operation(summary = "系统设置-系统-用户组-用户关联关系-删除全局用户组和用户的关联关系")
@RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_UPDATE)
@Log(type = OperationLogType.DELETE, expression = "#msClass.deleteLog(#id)", msClass = GlobalUserRoleRelationLogService.class) @Log(type = OperationLogType.DELETE, expression = "#msClass.deleteLog(#id)", msClass = GlobalUserRoleRelationLogService.class)
public void delete(@PathVariable String id) { public void delete(@PathVariable String id) {
@ -64,7 +64,7 @@ public class GlobalUserRoleRelationController {
} }
@GetMapping("/user/option/{roleId}") @GetMapping("/user/option/{roleId}")
@Operation(summary = "系统设置-用户组与用户关联关系-获取需要关联的用户选项") @Operation(summary = "系统设置-系统-用户组-用户关联关系-获取需要关联的用户选项")
@RequiresPermissions(value = {PermissionConstants.SYSTEM_USER_ROLE_READ}) @RequiresPermissions(value = {PermissionConstants.SYSTEM_USER_ROLE_READ})
public List<ExcludeOptionDTO> getSelectOption(@Parameter(description = "用户组ID", schema = @Schema(requiredMode = Schema.RequiredMode.REQUIRED)) public List<ExcludeOptionDTO> getSelectOption(@Parameter(description = "用户组ID", schema = @Schema(requiredMode = Schema.RequiredMode.REQUIRED))
@PathVariable String roleId) { @PathVariable String roleId) {

View File

@ -44,7 +44,7 @@ public class OperationLogController {
@GetMapping("/get/options") @GetMapping("/get/options")
@Operation(summary = "系统-日志-获取组织/项目级联下拉框选项") @Operation(summary = "系统设置-系统-日志-获取组织/项目级联下拉框选项")
@RequiresPermissions(PermissionConstants.SYSTEM_LOG_READ) @RequiresPermissions(PermissionConstants.SYSTEM_LOG_READ)
public OrganizationProjectOptionsResponse getOptions() { public OrganizationProjectOptionsResponse getOptions() {
@ -62,7 +62,7 @@ public class OperationLogController {
@PostMapping("/list") @PostMapping("/list")
@Operation(summary = "系统-日志-系统操作日志列表查询") @Operation(summary = "系统设置-系统-日志-系统操作日志列表查询")
@RequiresPermissions(PermissionConstants.SYSTEM_LOG_READ) @RequiresPermissions(PermissionConstants.SYSTEM_LOG_READ)
public Pager<List<OperationLogResponse>> list(@Validated @RequestBody OperationLogRequest request) { public Pager<List<OperationLogResponse>> list(@Validated @RequestBody OperationLogRequest request) {
Page<Object> page = PageHelper.startPage(request.getCurrent(), request.getPageSize(), Page<Object> page = PageHelper.startPage(request.getCurrent(), request.getPageSize(),
@ -72,7 +72,7 @@ public class OperationLogController {
@GetMapping("/user/list") @GetMapping("/user/list")
@Operation(summary = "系统-日志-系统日志页面,获取用户列表") @Operation(summary = "系统设置-系统-日志-系统日志页面,获取用户列表")
@RequiresPermissions(PermissionConstants.SYSTEM_LOG_READ) @RequiresPermissions(PermissionConstants.SYSTEM_LOG_READ)
public List<User> getUserList() { public List<User> getUserList() {
List<User> userList = userService.getUserList(); List<User> userList = userService.getUserList();

View File

@ -47,7 +47,7 @@ public class OrganizationLogController {
@GetMapping("/get/options/{organizationId}") @GetMapping("/get/options/{organizationId}")
@Operation(summary = "组织-日志-获取项目级联下拉框选项") @Operation(summary = "系统设置-组织-日志-获取项目级联下拉框选项")
@RequiresPermissions(PermissionConstants.ORGANIZATION_LOG_READ) @RequiresPermissions(PermissionConstants.ORGANIZATION_LOG_READ)
public OrganizationProjectOptionsResponse getOrganizationOptions(@PathVariable(value = "organizationId") String organizationId) { public OrganizationProjectOptionsResponse getOrganizationOptions(@PathVariable(value = "organizationId") String organizationId) {
//获取全部项目 //获取全部项目
@ -60,7 +60,7 @@ public class OrganizationLogController {
@GetMapping("/user/list/{organizationId}") @GetMapping("/user/list/{organizationId}")
@Operation(summary = "组织-日志-获取用户列表") @Operation(summary = "系统设置-组织-日志-获取用户列表")
@RequiresPermissions(PermissionConstants.ORGANIZATION_LOG_READ) @RequiresPermissions(PermissionConstants.ORGANIZATION_LOG_READ)
public List<User> getLogUserList(@PathVariable(value = "organizationId") String organizationId) { public List<User> getLogUserList(@PathVariable(value = "organizationId") String organizationId) {
return userService.getUserListByOrgId(organizationId); return userService.getUserListByOrgId(organizationId);
@ -68,7 +68,7 @@ public class OrganizationLogController {
@PostMapping("/list") @PostMapping("/list")
@Operation(summary = "组织-日志-组织菜单下操作日志列表查询") @Operation(summary = "系统设置-组织-日志-组织菜单下操作日志列表查询")
@RequiresPermissions(PermissionConstants.ORGANIZATION_LOG_READ) @RequiresPermissions(PermissionConstants.ORGANIZATION_LOG_READ)
public Pager<List<OperationLogResponse>> organizationLogList(@Validated @RequestBody OperationLogRequest request) { public Pager<List<OperationLogResponse>> organizationLogList(@Validated @RequestBody OperationLogRequest request) {
Page<Object> page = PageHelper.startPage(request.getCurrent(), request.getPageSize(), Page<Object> page = PageHelper.startPage(request.getCurrent(), request.getPageSize(),

View File

@ -31,21 +31,21 @@ import java.util.List;
*/ */
@RestController @RestController
@RequestMapping("/plugin") @RequestMapping("/plugin")
@Tag(name = "系统设置-插件") @Tag(name = "系统设置-系统-插件管理")
public class PluginController { public class PluginController {
@Resource @Resource
private PluginService pluginService; private PluginService pluginService;
@GetMapping("/list") @GetMapping("/list")
@Operation(summary = "系统设置-插件-获取插件列表") @Operation(summary = "系统设置-系统-插件管理-获取插件列表")
@RequiresPermissions(PermissionConstants.SYSTEM_PLUGIN_READ) @RequiresPermissions(PermissionConstants.SYSTEM_PLUGIN_READ)
public List<PluginDTO> list() { public List<PluginDTO> list() {
return pluginService.list(); return pluginService.list();
} }
@PostMapping("/add") @PostMapping("/add")
@Operation(summary = "系统设置-插件-创建插件") @Operation(summary = "系统设置-系统-插件管理-创建插件")
@RequiresPermissions(PermissionConstants.SYSTEM_PLUGIN_ADD) @RequiresPermissions(PermissionConstants.SYSTEM_PLUGIN_ADD)
@Log(type = OperationLogType.UPDATE, expression = "#msClass.addLog(#request)", msClass = PluginLogService.class) @Log(type = OperationLogType.UPDATE, expression = "#msClass.addLog(#request)", msClass = PluginLogService.class)
public Plugin add(@Validated({Created.class}) @RequestPart(value = "request") PluginUpdateRequest request, public Plugin add(@Validated({Created.class}) @RequestPart(value = "request") PluginUpdateRequest request,
@ -55,7 +55,7 @@ public class PluginController {
} }
@PostMapping("/update") @PostMapping("/update")
@Operation(summary = "系统设置-插件-更新插件") @Operation(summary = "系统设置-系统-插件管理-更新插件")
@RequiresPermissions(PermissionConstants.SYSTEM_PLUGIN_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_PLUGIN_UPDATE)
@Log(type = OperationLogType.ADD, expression = "#msClass.updateLog(#request)", msClass = PluginLogService.class) @Log(type = OperationLogType.ADD, expression = "#msClass.updateLog(#request)", msClass = PluginLogService.class)
public Plugin update(@Validated({Updated.class}) @RequestBody PluginUpdateRequest request) { public Plugin update(@Validated({Updated.class}) @RequestBody PluginUpdateRequest request) {
@ -65,7 +65,7 @@ public class PluginController {
} }
@GetMapping("/delete/{id}") @GetMapping("/delete/{id}")
@Operation(summary = "系统设置-插件-删除插件") @Operation(summary = "系统设置-系统-插件管理-删除插件")
@RequiresPermissions(PermissionConstants.SYSTEM_PLUGIN_DELETE) @RequiresPermissions(PermissionConstants.SYSTEM_PLUGIN_DELETE)
@Log(type = OperationLogType.DELETE, expression = "#msClass.deleteLog(#id)", msClass = PluginLogService.class) @Log(type = OperationLogType.DELETE, expression = "#msClass.deleteLog(#id)", msClass = PluginLogService.class)
public void delete(@PathVariable String id) { public void delete(@PathVariable String id) {
@ -73,14 +73,14 @@ public class PluginController {
} }
@GetMapping("/script/get/{pluginId}/{scriptId}") @GetMapping("/script/get/{pluginId}/{scriptId}")
@Operation(summary = "系统设置-插件-获取插件对应表单的脚本内容") @Operation(summary = "系统设置-系统-插件管理-获取插件对应表单的脚本内容")
@RequiresPermissions(PermissionConstants.SYSTEM_PLUGIN_READ) @RequiresPermissions(PermissionConstants.SYSTEM_PLUGIN_READ)
public String getScript(@PathVariable String pluginId, @PathVariable String scriptId) { public String getScript(@PathVariable String pluginId, @PathVariable String scriptId) {
return pluginService.getScript(pluginId, scriptId); return pluginService.getScript(pluginId, scriptId);
} }
@GetMapping("/image/{pluginId}") @GetMapping("/image/{pluginId}")
@Operation(summary = "系统设置-插件-获取插件的图片资源") @Operation(summary = "系统设置-系统-插件管理-获取插件的图片资源")
public void getPluginImg( public void getPluginImg(
@Schema(description = "插件ID", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "插件ID", requiredMode = Schema.RequiredMode.REQUIRED)
@PathVariable("pluginId") @PathVariable("pluginId")

View File

@ -28,21 +28,21 @@ import java.util.List;
*/ */
@RestController @RestController
@RequestMapping("/service/integration") @RequestMapping("/service/integration")
@Tag(name = "组织-服务集成") @Tag(name = "系统设置-组织-服务集成")
public class ServiceIntegrationController { public class ServiceIntegrationController {
@Resource @Resource
private ServiceIntegrationService serviceIntegrationService; private ServiceIntegrationService serviceIntegrationService;
@GetMapping("/list/{organizationId}") @GetMapping("/list/{organizationId}")
@Operation(summary = "组织-服务集成-获取服务集成列表") @Operation(summary = "系统设置-组织-服务集成-获取服务集成列表")
@RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_READ) @RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_READ)
public List<ServiceIntegrationDTO> list(@PathVariable String organizationId) { public List<ServiceIntegrationDTO> list(@PathVariable String organizationId) {
return serviceIntegrationService.list(organizationId); return serviceIntegrationService.list(organizationId);
} }
@PostMapping("/add") @PostMapping("/add")
@Operation(summary = "组织-服务集成-创建服务集成") @Operation(summary = "系统设置-组织-服务集成-创建服务集成")
@RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_ADD) @RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_ADD)
@Log(type = OperationLogType.UPDATE, expression = "#msClass.addLog(#request)", msClass = ServiceIntegrationLogService.class) @Log(type = OperationLogType.UPDATE, expression = "#msClass.addLog(#request)", msClass = ServiceIntegrationLogService.class)
public ServiceIntegration add(@Validated({Created.class}) @RequestBody ServiceIntegrationUpdateRequest request) { public ServiceIntegration add(@Validated({Created.class}) @RequestBody ServiceIntegrationUpdateRequest request) {
@ -50,7 +50,7 @@ public class ServiceIntegrationController {
} }
@PostMapping("/update") @PostMapping("/update")
@Operation(summary = "组织-服务集成-更新服务集成") @Operation(summary = "系统设置-组织-服务集成-更新服务集成")
@RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_UPDATE)
@Log(type = OperationLogType.ADD, expression = "#msClass.updateLog(#request)", msClass = ServiceIntegrationLogService.class) @Log(type = OperationLogType.ADD, expression = "#msClass.updateLog(#request)", msClass = ServiceIntegrationLogService.class)
public ServiceIntegration update(@Validated({Updated.class}) @RequestBody ServiceIntegrationUpdateRequest request) { public ServiceIntegration update(@Validated({Updated.class}) @RequestBody ServiceIntegrationUpdateRequest request) {
@ -58,7 +58,7 @@ public class ServiceIntegrationController {
} }
@GetMapping("/delete/{id}") @GetMapping("/delete/{id}")
@Operation(summary = "组织-服务集成-删除服务集成") @Operation(summary = "系统设置-组织-服务集成-删除服务集成")
@RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_DELETE) @RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_DELETE)
@Log(type = OperationLogType.DELETE, expression = "#msClass.deleteLog(#id)", msClass = ServiceIntegrationLogService.class) @Log(type = OperationLogType.DELETE, expression = "#msClass.deleteLog(#id)", msClass = ServiceIntegrationLogService.class)
public void delete(@PathVariable String id) { public void delete(@PathVariable String id) {
@ -66,7 +66,7 @@ public class ServiceIntegrationController {
} }
@PostMapping("/validate/{pluginId}") @PostMapping("/validate/{pluginId}")
@Operation(summary = "组织-服务集成-校验服务集成信息") @Operation(summary = "系统设置-组织-服务集成-校验服务集成信息")
@RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_UPDATE)
public void validate(@PathVariable String pluginId, public void validate(@PathVariable String pluginId,
@Validated({Updated.class}) @Validated({Updated.class})
@ -78,14 +78,14 @@ public class ServiceIntegrationController {
} }
@GetMapping("/validate/{id}") @GetMapping("/validate/{id}")
@Operation(summary = "组织-服务集成-校验服务集成信息") @Operation(summary = "系统设置-组织-服务集成-校验服务集成信息")
@RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_UPDATE)
public void validate(@PathVariable String id) { public void validate(@PathVariable String id) {
serviceIntegrationService.validate(id); serviceIntegrationService.validate(id);
} }
@GetMapping("/script/{pluginId}") @GetMapping("/script/{pluginId}")
@Operation(summary = "组织-服务集成-获取前端配置脚本") @Operation(summary = "系统设置-组织-服务集成-获取前端配置脚本")
@RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_READ) @RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_READ)
public Object getPluginScript(@PathVariable String pluginId) { public Object getPluginScript(@PathVariable String pluginId) {
return serviceIntegrationService.getPluginScript(pluginId); return serviceIntegrationService.getPluginScript(pluginId);

View File

@ -19,7 +19,7 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
@RestController @RestController
@Tag(name = "系统参数") @Tag(name = "系统设置-系统-系统参数-基础设置")
@RequestMapping("/system/parameter") @RequestMapping("/system/parameter")
public class SystemParameterController { public class SystemParameterController {
@ -28,7 +28,7 @@ public class SystemParameterController {
@PostMapping("/save/base-info") @PostMapping("/save/base-info")
@Operation(summary = "系统参数-基础设置-基本信息-保存") @Operation(summary = "系统设置-系统-系统参数-基础设置-基本信息-保存")
@RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_BASE_READ_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_BASE_READ_UPDATE)
@Log(type = OperationLogType.UPDATE, expression = "#msClass.updateBaseLog(#systemParameter)", msClass = SystemParameterService.class) @Log(type = OperationLogType.UPDATE, expression = "#msClass.updateBaseLog(#systemParameter)", msClass = SystemParameterService.class)
public void saveBaseParameter(@Validated @RequestBody List<SystemParameter> systemParameter) { public void saveBaseParameter(@Validated @RequestBody List<SystemParameter> systemParameter) {
@ -37,7 +37,7 @@ public class SystemParameterController {
@GetMapping("/get/base-info") @GetMapping("/get/base-info")
@Operation(summary = "系统参数-基本设置-基本信息-获取") @Operation(summary = "系统设置-系统-系统参数-基本设置-基本信息-获取")
@RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_BASE_READ) @RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_BASE_READ)
public BaseSystemConfigDTO getBaseInfo() { public BaseSystemConfigDTO getBaseInfo() {
return systemParameterService.getBaseInfo(); return systemParameterService.getBaseInfo();
@ -45,7 +45,7 @@ public class SystemParameterController {
@GetMapping("/get/email-info") @GetMapping("/get/email-info")
@Operation(summary = "系统参数-基本设置-邮件设置-获取邮件信息") @Operation(summary = "系统设置-系统-系统参数-基本设置-邮件设置-获取邮件信息")
@RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_BASE_READ) @RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_BASE_READ)
public EMailInfoDto getEmailInfo() { public EMailInfoDto getEmailInfo() {
return systemParameterService.getEmailInfo(); return systemParameterService.getEmailInfo();
@ -53,7 +53,7 @@ public class SystemParameterController {
@PostMapping("/edit/email-info") @PostMapping("/edit/email-info")
@Operation(summary = "系统参数-基本设置-邮件设置-保存邮件信息") @Operation(summary = "系统设置-系统-系统参数-基本设置-邮件设置-保存邮件信息")
@RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_BASE_READ_UPDATE) @RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_BASE_READ_UPDATE)
@Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#systemParameter)", msClass = SystemParameterService.class) @Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#systemParameter)", msClass = SystemParameterService.class)
public void editEMailInfo(@Validated @RequestBody List<SystemParameter> systemParameter) { public void editEMailInfo(@Validated @RequestBody List<SystemParameter> systemParameter) {
@ -62,7 +62,7 @@ public class SystemParameterController {
@PostMapping("/test/email") @PostMapping("/test/email")
@Operation(summary = "系统参数-基本设置-邮件设置-测试连接") @Operation(summary = "系统设置-系统-系统参数-基本设置-邮件设置-测试连接")
@RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_BASE_READ) @RequiresPermissions(PermissionConstants.SYSTEM_PARAMETER_SETTING_BASE_READ)
public void testEmailConnection(@RequestBody HashMap<String, String> hashMap) { public void testEmailConnection(@RequestBody HashMap<String, String> hashMap) {
systemParameterService.testEmailConnection(hashMap); systemParameterService.testEmailConnection(hashMap);
@ -70,7 +70,7 @@ public class SystemParameterController {
@GetMapping("/save/base-url") @GetMapping("/save/base-url")
@Operation(summary = "系统参数-默认站点替换接口") @Operation(summary = "系统设置-系统-系统参数-默认站点替换接口")
public void saveBaseurl(@RequestParam("baseUrl") String baseUrl) { public void saveBaseurl(@RequestParam("baseUrl") String baseUrl) {
systemParameterService.saveBaseUrl(baseUrl); systemParameterService.saveBaseUrl(baseUrl);
} }