feat: 定时导出文件路径统一前缀,导出无分页检查
This commit is contained in:
@@ -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}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user