feat: 定时导出文件路径统一前缀,导出无分页检查

This commit is contained in:
TsMask
2025-09-18 11:10:24 +08:00
parent 023dc114e0
commit 11e884174c
6 changed files with 99 additions and 97 deletions

View File

@@ -31,6 +31,13 @@ type Oauth2ClientController struct {
// GET /list
func (s Oauth2ClientController) List(c *gin.Context) {
query := reqctx.QueryMap(c)
// 分页检查
pageNum := parse.Number(query["pageNum"])
pageSize := parse.Number(query["pageSize"])
if pageNum == 0 || pageSize == 0 {
c.JSON(422, resp.CodeMsg(resp.CODE_PARAM_CHEACK, "bind err: pageNum or pageSize not is empty"))
return
}
rows, total := s.oauth2ClientService.FindByPage(query)
c.JSON(200, resp.OkData(map[string]any{"rows": rows, "total": total}))
}