mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-04-23 19:44:29 +08:00
完成移动端邀请页面功能
This commit is contained in:
@@ -5,6 +5,7 @@ type InviteLog struct {
|
||||
InviterId uint `json:"inviter_id"`
|
||||
UserId uint `json:"user_id"`
|
||||
Username string `json:"username"`
|
||||
Avatar string `json:"avatar"`
|
||||
InviteCode string `json:"invite_code"`
|
||||
Remark string `json:"remark"`
|
||||
CreatedAt int64 `json:"created_at"`
|
||||
|
||||
9
api/store/vo/invite_stats.go
Normal file
9
api/store/vo/invite_stats.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package vo
|
||||
|
||||
type InviteStats struct {
|
||||
InviteCount int `json:"invite_count"` // 累计邀请数
|
||||
RewardTotal int `json:"reward_total"` // 获得奖励总数
|
||||
TodayInvite int `json:"today_invite"` // 今日邀请数
|
||||
InviteCode string `json:"invite_code"` // 邀请码
|
||||
InviteLink string `json:"invite_link"` // 邀请链接
|
||||
}
|
||||
10
api/store/vo/reward_rule.go
Normal file
10
api/store/vo/reward_rule.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package vo
|
||||
|
||||
type RewardRule struct {
|
||||
Id int `json:"id"` // 规则ID
|
||||
Title string `json:"title"` // 规则标题
|
||||
Desc string `json:"desc"` // 规则描述
|
||||
Icon string `json:"icon"` // 图标类名
|
||||
Color string `json:"color"` // 图标颜色
|
||||
Reward int `json:"reward"` // 奖励算力
|
||||
}
|
||||
Reference in New Issue
Block a user