@@ -0,0 +1,34 @@
|
||||
package userrecomod
|
||||
|
||||
import "91porn-server/models/commod"
|
||||
|
||||
// RecoListReq 推荐用户查询
|
||||
type RecoListReq struct {
|
||||
commod.Page
|
||||
}
|
||||
|
||||
// RecoListResp 推荐用户应答
|
||||
type RecoListResp struct {
|
||||
Infos []UserReco `json:"infos"`
|
||||
Total int64 `json:"total"`
|
||||
}
|
||||
|
||||
// RecoModifyReq 推荐用户修改
|
||||
type RecoModifyReq struct {
|
||||
ID string `form:"id" json:"id"`
|
||||
UID *uint64 `form:"uid" json:"uid"`
|
||||
SortKey *int `form:"sortKey" json:"sortKey"`
|
||||
Active *bool `form:"active" json:"active"`
|
||||
}
|
||||
|
||||
// RecoAddReq 推荐用户新增
|
||||
type RecoAddReq struct {
|
||||
UID uint64 `form:"uid" json:"uid"` //推荐用户id
|
||||
SortKey int `form:"sortKey" json:"sortKey"` //排序
|
||||
Active bool `form:"active" json:"active"` //激活状态
|
||||
}
|
||||
|
||||
// RecoDelReq 推荐用户删除
|
||||
type RecoDelReq struct {
|
||||
ID string `form:"id" json:"id"`
|
||||
}
|
||||
Reference in New Issue
Block a user