feat: 接口名称修改

This commit is contained in:
bunny 2024-10-16 16:57:03 +08:00
parent 05496e16a8
commit 7fb81488f9
15 changed files with 25 additions and 21 deletions

View File

@ -15,6 +15,10 @@ import lombok.NoArgsConstructor;
@Schema(name = "PowerAddDto对象", title = "权限", description = "权限管理") @Schema(name = "PowerAddDto对象", title = "权限", description = "权限管理")
public class PowerAddDto { public class PowerAddDto {
@Schema(name = "id", title = "主键")
@NotNull(message = "id不能为空")
private Long id;
@Schema(name = "parentId", title = "父级id") @Schema(name = "parentId", title = "父级id")
private Long parentId; private Long parentId;

View File

@ -22,7 +22,7 @@ import java.util.List;
/** /**
* <p> * <p>
* 部门 前端控制器 * 部门 前端控制器
* </p> * </p>
* *
* @author Bunny * @author Bunny

View File

@ -24,7 +24,7 @@ import java.util.Map;
/** /**
* <p> * <p>
* 邮箱用户发送配置 前端控制器 * 邮箱用户发送配置 前端控制器
* </p> * </p>
* *
* @author Bunny * @author Bunny

View File

@ -34,7 +34,7 @@ import java.util.Set;
* @author Bunny * @author Bunny
* @since 2024-10-09 16:28:01 * @since 2024-10-09 16:28:01
*/ */
@Tag(name = "系统文件表", description = "系统文件相关接口") @Tag(name = "系统文件表", description = "系统文件相关接口")
@RestController @RestController
@RequestMapping("admin/files") @RequestMapping("admin/files")
public class FilesController { public class FilesController {
@ -42,7 +42,7 @@ public class FilesController {
@Autowired @Autowired
private FilesService filesService; private FilesService filesService;
@Operation(summary = "分页查询系统文件", description = "分页查询系统文件") @Operation(summary = "分页查询系统文件", description = "分页查询系统文件")
@GetMapping("getFilesList/{page}/{limit}") @GetMapping("getFilesList/{page}/{limit}")
public Mono<Result<PageResult<FilesVo>>> getFilesList( public Mono<Result<PageResult<FilesVo>>> getFilesList(
@Parameter(name = "page", description = "当前页", required = true) @Parameter(name = "page", description = "当前页", required = true)
@ -83,14 +83,14 @@ public class FilesController {
return filesService.downloadFilesByFilepath(filepath); return filesService.downloadFilesByFilepath(filepath);
} }
@Operation(summary = "更新系统文件", description = "更新系统文件") @Operation(summary = "更新系统文件", description = "更新系统文件")
@PutMapping("updateFiles") @PutMapping("updateFiles")
public Result<String> updateFiles(@Valid FilesUpdateDto dto) { public Result<String> updateFiles(@Valid FilesUpdateDto dto) {
filesService.updateFiles(dto); filesService.updateFiles(dto);
return Result.success(ResultCodeEnum.UPDATE_SUCCESS); return Result.success(ResultCodeEnum.UPDATE_SUCCESS);
} }
@Operation(summary = "添加系统文件", description = "添加系统文件") @Operation(summary = "添加系统文件", description = "添加系统文件")
@PostMapping("addFiles") @PostMapping("addFiles")
public Mono<Result<String>> addFiles(@Valid FilesAddDto dto) { public Mono<Result<String>> addFiles(@Valid FilesAddDto dto) {
filesService.addFiles(dto); filesService.addFiles(dto);
@ -104,7 +104,7 @@ public class FilesController {
return Result.success(vo, ResultCodeEnum.SUCCESS_UPLOAD); return Result.success(vo, ResultCodeEnum.SUCCESS_UPLOAD);
} }
@Operation(summary = "删除系统文件", description = "删除系统文件") @Operation(summary = "删除系统文件", description = "删除系统文件")
@DeleteMapping("deleteFiles") @DeleteMapping("deleteFiles")
public Result<String> deleteFiles(@RequestBody List<Long> ids) { public Result<String> deleteFiles(@RequestBody List<Long> ids) {
filesService.deleteFiles(ids); filesService.deleteFiles(ids);

View File

@ -23,7 +23,7 @@ import java.util.Map;
/** /**
* <p> * <p>
* 多语言 前端控制器 * 多语言 前端控制器
* </p> * </p>
* *
* @author Bunny * @author Bunny
@ -44,7 +44,7 @@ public class I18nController {
return Mono.just(Result.success(vo)); return Mono.just(Result.success(vo));
} }
@Operation(summary = "获取管理多语言列", description = "获取管理多语言列") @Operation(summary = "获取管理多语言列", description = "获取管理多语言列")
@GetMapping("getI18nList/{page}/{limit}") @GetMapping("getI18nList/{page}/{limit}")
public Mono<Result<PageResult<I18nVo>>> getI18nList( public Mono<Result<PageResult<I18nVo>>> getI18nList(
@Parameter(name = "page", description = "当前页", required = true) @Parameter(name = "page", description = "当前页", required = true)

View File

@ -17,7 +17,7 @@ import java.util.List;
/** /**
* <p> * <p>
* 多语言类型 前端控制器 * 多语言类型 前端控制器
* </p> * </p>
* *
* @author Bunny * @author Bunny

View File

@ -49,7 +49,7 @@ public class MenuIconController {
return Mono.just(Result.success(pageResult)); return Mono.just(Result.success(pageResult));
} }
@Operation(summary = "获取查询图标名称列", description = "获取查询图标名称列") @Operation(summary = "获取查询图标名称列", description = "获取查询图标名称列")
@GetMapping("getIconNameList") @GetMapping("getIconNameList")
public Mono<Result<List<MenuIconVo>>> getIconNameList(String iconName) { public Mono<Result<List<MenuIconVo>>> getIconNameList(String iconName) {
List<MenuIconVo> voList = menuIconService.getIconNameList(iconName); List<MenuIconVo> voList = menuIconService.getIconNameList(iconName);

View File

@ -23,7 +23,7 @@ import java.util.List;
/** /**
* <p> * <p>
* 权限 前端控制器 * 权限 前端控制器
* </p> * </p>
* *
* @author Bunny * @author Bunny

View File

@ -22,7 +22,7 @@ import java.util.List;
/** /**
* <p> * <p>
* 角色 前端控制器 * 角色 前端控制器
* </p> * </p>
* *
* @author Bunny * @author Bunny

View File

@ -28,7 +28,7 @@ public class RolePowerController {
@Autowired @Autowired
private RolePowerService rolePowerService; private RolePowerService rolePowerService;
@Operation(summary = "根据角色id获取权限内容", description = "角色列获取已选择的权限") @Operation(summary = "根据角色id获取权限内容", description = "角色列获取已选择的权限")
@GetMapping("getPowerListByRoleId") @GetMapping("getPowerListByRoleId")
public Mono<Result<List<String>>> getPowerListByRoleId(Long id) { public Mono<Result<List<String>>> getPowerListByRoleId(Long id) {
List<String> voList = rolePowerService.getPowerListByRoleId(id); List<String> voList = rolePowerService.getPowerListByRoleId(id);

View File

@ -23,7 +23,7 @@ import java.util.List;
/** /**
* <p> * <p>
* 系统菜单 前端控制器 * 系统菜单 前端控制器
* </p> * </p>
* *
* @author Bunny * @author Bunny
@ -44,7 +44,7 @@ public class RouterController {
return Mono.just(Result.success(voList)); return Mono.just(Result.success(voList));
} }
@Operation(summary = "分页管理菜单列", description = "分页管理菜单列") @Operation(summary = "分页管理菜单列", description = "分页管理菜单列")
@GetMapping("getMenusList/{page}/{limit}") @GetMapping("getMenusList/{page}/{limit}")
public Mono<Result<PageResult<RouterManageVo>>> getMenusByPage( public Mono<Result<PageResult<RouterManageVo>>> getMenusByPage(
@Parameter(name = "page", description = "当前页", required = true) @Parameter(name = "page", description = "当前页", required = true)
@ -58,7 +58,7 @@ public class RouterController {
return Mono.just(Result.success(voPageResult)); return Mono.just(Result.success(voPageResult));
} }
@Operation(summary = "管理菜单列", description = "管理菜单列") @Operation(summary = "管理菜单列", description = "管理菜单列")
@GetMapping("getMenusList") @GetMapping("getMenusList")
public Mono<Result<List<RouterManageVo>>> getMenusList(RouterManageDto dto) { public Mono<Result<List<RouterManageVo>>> getMenusList(RouterManageDto dto) {
List<RouterManageVo> voPageResult = routerService.getMenusList(dto); List<RouterManageVo> voPageResult = routerService.getMenusList(dto);

View File

@ -23,7 +23,7 @@ import java.util.Map;
/** /**
* <p> * <p>
* Schedulers视图 前端控制器 * Schedulers视图 前端控制器
* </p> * </p>
* *
* @author Bunny * @author Bunny

View File

@ -22,7 +22,7 @@ import java.util.List;
/** /**
* <p> * <p>
* 任务调度分组 前端控制器 * 任务调度分组 前端控制器
* </p> * </p>
* *
* @author Bunny * @author Bunny

View File

@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.RestController;
/** /**
* <p> * <p>
* 部门用户关系 前端控制器 * 部门用户关系 前端控制器
* </p> * </p>
* *
* @author Bunny * @author Bunny

View File

@ -27,7 +27,7 @@ public class UserRoleController {
@Autowired @Autowired
private UserRoleService userRoleService; private UserRoleService userRoleService;
@Operation(summary = "根据用户id获取角色列", description = "根据用户id获取角色列") @Operation(summary = "根据用户id获取角色列", description = "根据用户id获取角色列")
@GetMapping("getRoleListByUserId") @GetMapping("getRoleListByUserId")
public Mono<Result<List<String>>> getRoleListByUserId(Long userId) { public Mono<Result<List<String>>> getRoleListByUserId(Long userId) {
List<String> roleVoList = userRoleService.getRoleListByUserId(userId); List<String> roleVoList = userRoleService.getRoleListByUserId(userId);