Optimize code

This commit is contained in:
2023-12-03 23:06:15 +08:00
parent e16914967a
commit d7c0b7376d
7 changed files with 8 additions and 8 deletions

View File

@@ -22,8 +22,8 @@ import top.fatweb.api.vo.api.v1.avatar.AvatarBase64Vo
* @since 1.0.0 * @since 1.0.0
*/ */
@Tag(name = "随机头像", description = "随机头像相关接口") @Tag(name = "随机头像", description = "随机头像相关接口")
@RestController
@RequestMapping("/api/{apiVersion}/avatar") @RequestMapping("/api/{apiVersion}/avatar")
@RestController
class AvatarController( class AvatarController(
private val avatarService: IAvatarService private val avatarService: IAvatarService
) { ) {

View File

@@ -20,8 +20,8 @@ import top.fatweb.api.vo.permission.base.GroupVo
* @since 1.0.0 * @since 1.0.0
*/ */
@Tag(name = "用户组管理", description = "用户组管理相关接口") @Tag(name = "用户组管理", description = "用户组管理相关接口")
@RestController
@RequestMapping("/system/group") @RequestMapping("/system/group")
@RestController
class GroupController( class GroupController(
val groupService: IGroupService val groupService: IGroupService
) { ) {

View File

@@ -17,8 +17,8 @@ import top.fatweb.api.vo.permission.PowerSetVo
* @since 1.0.0 * @since 1.0.0
*/ */
@Tag(name = "权限管理", description = "权限管理相关接口") @Tag(name = "权限管理", description = "权限管理相关接口")
@RestController
@RequestMapping("/system/power") @RequestMapping("/system/power")
@RestController
class PowerController( class PowerController(
private val powerService: IPowerService private val powerService: IPowerService
) { ) {

View File

@@ -20,8 +20,8 @@ import top.fatweb.api.vo.permission.base.RoleVo
* @since 1.0.0 * @since 1.0.0
*/ */
@Tag(name = "角色管理", description = "角色管理相关接口") @Tag(name = "角色管理", description = "角色管理相关接口")
@RestController
@RequestMapping("/system/role") @RequestMapping("/system/role")
@RestController
class RoleController( class RoleController(
private val roleService: IRoleService private val roleService: IRoleService
) { ) {

View File

@@ -22,8 +22,8 @@ import top.fatweb.api.vo.permission.UserWithRoleInfoVo
* @since 1.0.0 * @since 1.0.0
*/ */
@Tag(name = "用户管理", description = "用户管理相关接口") @Tag(name = "用户管理", description = "用户管理相关接口")
@RestController
@RequestMapping("/system/user") @RequestMapping("/system/user")
@RestController
class UserController( class UserController(
private val userService: IUserService private val userService: IUserService
) { ) {

View File

@@ -21,9 +21,9 @@ import top.fatweb.api.vo.system.SysLogVo
* @author FatttSnake, fatttsnake@gmail.com * @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0 * @since 1.0.0
*/ */
@RestController
@RequestMapping("/system/log")
@Tag(name = "系统日志", description = "系统日志相关接口") @Tag(name = "系统日志", description = "系统日志相关接口")
@RequestMapping("/system/log")
@RestController
class SysLogController( class SysLogController(
private val sysLogService: ISysLogService private val sysLogService: ISysLogService
) { ) {

View File

@@ -12,7 +12,7 @@ import java.time.LocalDateTime
* @since 1.0.0 * @since 1.0.0
*/ */
@Schema(description = "获取系统日志返回参数") @Schema(description = "获取系统日志返回参数")
class SysLogVo( data class SysLogVo(
@JsonSerialize(using = ToStringSerializer::class) @JsonSerialize(using = ToStringSerializer::class)
val id: Long?, val id: Long?,