Optimize code
This commit is contained in:
@@ -22,8 +22,8 @@ import top.fatweb.api.vo.api.v1.avatar.AvatarBase64Vo
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Tag(name = "随机头像", description = "随机头像相关接口")
|
||||
@RestController
|
||||
@RequestMapping("/api/{apiVersion}/avatar")
|
||||
@RestController
|
||||
class AvatarController(
|
||||
private val avatarService: IAvatarService
|
||||
) {
|
||||
|
||||
@@ -20,8 +20,8 @@ import top.fatweb.api.vo.permission.base.GroupVo
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Tag(name = "用户组管理", description = "用户组管理相关接口")
|
||||
@RestController
|
||||
@RequestMapping("/system/group")
|
||||
@RestController
|
||||
class GroupController(
|
||||
val groupService: IGroupService
|
||||
) {
|
||||
|
||||
@@ -17,8 +17,8 @@ import top.fatweb.api.vo.permission.PowerSetVo
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Tag(name = "权限管理", description = "权限管理相关接口")
|
||||
@RestController
|
||||
@RequestMapping("/system/power")
|
||||
@RestController
|
||||
class PowerController(
|
||||
private val powerService: IPowerService
|
||||
) {
|
||||
|
||||
@@ -20,8 +20,8 @@ import top.fatweb.api.vo.permission.base.RoleVo
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Tag(name = "角色管理", description = "角色管理相关接口")
|
||||
@RestController
|
||||
@RequestMapping("/system/role")
|
||||
@RestController
|
||||
class RoleController(
|
||||
private val roleService: IRoleService
|
||||
) {
|
||||
|
||||
@@ -22,8 +22,8 @@ import top.fatweb.api.vo.permission.UserWithRoleInfoVo
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Tag(name = "用户管理", description = "用户管理相关接口")
|
||||
@RestController
|
||||
@RequestMapping("/system/user")
|
||||
@RestController
|
||||
class UserController(
|
||||
private val userService: IUserService
|
||||
) {
|
||||
|
||||
@@ -21,9 +21,9 @@ import top.fatweb.api.vo.system.SysLogVo
|
||||
* @author FatttSnake, fatttsnake@gmail.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/log")
|
||||
@Tag(name = "系统日志", description = "系统日志相关接口")
|
||||
@RequestMapping("/system/log")
|
||||
@RestController
|
||||
class SysLogController(
|
||||
private val sysLogService: ISysLogService
|
||||
) {
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.time.LocalDateTime
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Schema(description = "获取系统日志返回参数")
|
||||
class SysLogVo(
|
||||
data class SysLogVo(
|
||||
@JsonSerialize(using = ToStringSerializer::class)
|
||||
val id: Long?,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user