Commit d1dc1118 authored by chenweijian's avatar chenweijian

派对申请

parent 4979bec2
...@@ -26,6 +26,7 @@ type InviteApply struct { ...@@ -26,6 +26,7 @@ type InviteApply struct {
Status uint8 `json:"status"` // 状态0.未审核1.已通过2.已拒绝 Status uint8 `json:"status"` // 状态0.未审核1.已通过2.已拒绝
Avatar string `json:"avatar"` Avatar string `json:"avatar"`
ExternalId string `json:"externalId"` ExternalId string `json:"externalId"`
Reason int `json:"reason"` // 1.已申请2.待审核3.已通过4.已拒绝"
} }
type InviteApplyNumRes struct { type InviteApplyNumRes struct {
......
...@@ -18,6 +18,7 @@ type InviteApply struct { ...@@ -18,6 +18,7 @@ type InviteApply struct {
VideoUrl string `json:"video_url"` VideoUrl string `json:"video_url"`
Level string `json:"level"` Level string `json:"level"`
CreatedTime time.Time `json:"created_time"` CreatedTime time.Time `json:"created_time"`
Reason int `json:"reason"` // 1.已申请2.待审核3.已通过4.已拒绝"
} }
func CreateInviteApply(model *domain.Model, userId, newUserId uint64, platform, platformId, recharge, videoUrl string) error { func CreateInviteApply(model *domain.Model, userId, newUserId uint64, platform, platformId, recharge, videoUrl string) error {
......
...@@ -214,6 +214,7 @@ func InviteApplyList(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -214,6 +214,7 @@ func InviteApplyList(c *gin.Context) (*mycontext.MyContext, error) {
Status: v.Status, Status: v.Status,
Avatar: users[v.NewUserId].Avatar, Avatar: users[v.NewUserId].Avatar,
ExternalId: users[v.NewUserId].ExternalId, ExternalId: users[v.NewUserId].ExternalId,
Reason: v.Reason,
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment