fix
wangpengfei
2023-08-18 9a7e0a7da01a9f9625ceaca0c61a59c540c6438f
model/request/common.go
@@ -12,3 +12,17 @@
type GetByUserId struct {
   UserId string `json:"userId"` // 用户ID
}
func (p PageInfo) Check() bool {
   if p.Page <= 0 {
      return false
   }
   if p.PageSize <= 0 || p.PageSize > 500 {
      return false
   }
   return true
}
type CommonIds struct {
   Ids []int `json:"ids,omitempty" binding:"required"`
}