IP接口
This commit is contained in:
25
utils/model/req/universal.go
Normal file
25
utils/model/req/universal.go
Normal file
@ -0,0 +1,25 @@
|
||||
package req
|
||||
|
||||
// KeywordQuery 关键字查询
|
||||
type KeywordQuery struct {
|
||||
Keyword string `form:"keyword"`
|
||||
}
|
||||
|
||||
// PageQuery 获取数据(需要分页)
|
||||
type PageQuery struct {
|
||||
PageSize int `form:"page_size"`
|
||||
PageNum int `form:"page_num"`
|
||||
Keyword string `form:"keyword"`
|
||||
}
|
||||
|
||||
// SoftDelete 软删除请求(批量)
|
||||
type SoftDelete struct {
|
||||
Ids []int `json:"ids"`
|
||||
IsDelete *int8 `json:"is_delete" validate:"required,min=0,max=1"` // 软删除到回收站, 没有的字段不使用
|
||||
}
|
||||
|
||||
// UpdateReview 修改审核(批量)
|
||||
type UpdateReview struct {
|
||||
Ids []int `json:"ids"`
|
||||
IsReview *int8 `json:"is_review" validate:"required,min=0,max=1"`
|
||||
}
|
Reference in New Issue
Block a user