Add doc
This commit is contained in:
@@ -5,6 +5,12 @@ import jakarta.servlet.http.HttpServletRequest
|
||||
import org.springframework.web.bind.annotation.RequestMapping
|
||||
import org.springframework.web.bind.annotation.RestController
|
||||
|
||||
/**
|
||||
* Exception controller
|
||||
*
|
||||
* @author FatttSnake
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Hidden
|
||||
@RestController
|
||||
@RequestMapping("/error")
|
||||
|
||||
@@ -15,6 +15,12 @@ import top.fatweb.api.param.authentication.LoginParam
|
||||
import top.fatweb.api.service.permission.IAuthenticationService
|
||||
import top.fatweb.api.util.WebUtil
|
||||
|
||||
/**
|
||||
* Authentication controller
|
||||
*
|
||||
* @author FatttSnake
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Tag(name = "身份认证", description = "身份认证相关接口")
|
||||
@RestController
|
||||
class AuthenticationController(
|
||||
|
||||
@@ -13,12 +13,10 @@ import top.fatweb.api.vo.permission.GroupVo
|
||||
import top.fatweb.api.vo.permission.GroupWithRoleVo
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 用户组表 前端控制器
|
||||
* </p>
|
||||
* Group controller
|
||||
*
|
||||
* @author FatttSnake
|
||||
* @since 2023-11-09
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Tag(name = "用户组管理", description = "用户组管理相关接口")
|
||||
@RestController
|
||||
|
||||
@@ -9,7 +9,10 @@ import top.fatweb.api.entity.common.ResponseResult
|
||||
import top.fatweb.api.service.permission.IPowerService
|
||||
|
||||
/**
|
||||
* 权限 前端控制器
|
||||
* Power controller
|
||||
*
|
||||
* @author FatttSnake
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Tag(name = "权限管理", description = "权限管理相关接口")
|
||||
@RestController
|
||||
|
||||
@@ -13,10 +13,10 @@ import top.fatweb.api.vo.permission.RoleVo
|
||||
import top.fatweb.api.vo.permission.RoleWithPowerVo
|
||||
|
||||
/**
|
||||
* 角色表 前端控制器
|
||||
* Role controller
|
||||
*
|
||||
* @author FatttSnake
|
||||
* @since 2023-11-09
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Tag(name = "角色管理", description = "角色管理相关接口")
|
||||
@RestController
|
||||
|
||||
@@ -12,12 +12,10 @@ import top.fatweb.api.vo.permission.UserWithPowerInfoVo
|
||||
import top.fatweb.api.vo.permission.UserWithRoleInfoVo
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 用户表 前端控制器
|
||||
* </p>
|
||||
* User controller
|
||||
*
|
||||
* @author FatttSnake
|
||||
* @since 2023-10-04
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Tag(name = "用户管理", description = "用户管理相关接口")
|
||||
@RestController
|
||||
|
||||
@@ -12,15 +12,13 @@ import top.fatweb.api.entity.common.ResponseResult
|
||||
import top.fatweb.api.param.system.SysLogGetParam
|
||||
import top.fatweb.api.service.system.ISysLogService
|
||||
import top.fatweb.api.vo.PageVo
|
||||
import top.fatweb.api.vo.system.SysLogGetVo
|
||||
import top.fatweb.api.vo.system.SysLogVo
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 系统日志表 前端控制器
|
||||
* </p>
|
||||
* System log controller
|
||||
*
|
||||
* @author FatttSnake
|
||||
* @since 2023-10-18
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/log")
|
||||
@@ -30,7 +28,7 @@ class SysLogController(
|
||||
) {
|
||||
@Operation(summary = "获取")
|
||||
@GetMapping
|
||||
fun get(@Valid sysLogGetParam: SysLogGetParam?): ResponseResult<PageVo<SysLogGetVo>> {
|
||||
fun get(@Valid sysLogGetParam: SysLogGetParam?): ResponseResult<PageVo<SysLogVo>> {
|
||||
return ResponseResult.success(
|
||||
ResponseCode.DATABASE_SELECT_SUCCESS, data = SysLogConverter.sysLogPageToSysLogPageVo(
|
||||
sysLogService.getPage(sysLogGetParam)
|
||||
|
||||
Reference in New Issue
Block a user