init: hgmj server initial commit

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 16:50:13 +08:00
co-authored by Claude Opus 4.7
commit 625e89c15d
1870 changed files with 254090 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
package userrecomod
import "91jd-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"`
}