diff --git a/cv/invite_cv/invite_apply.go b/cv/invite_cv/invite_apply.go index f658e1ef145265426bdf573212f182fee9ffa749..4ee166df392116b5dbfe967ad192aaf2517b3f45 100644 --- a/cv/invite_cv/invite_apply.go +++ b/cv/invite_cv/invite_apply.go @@ -26,6 +26,7 @@ type InviteApply struct { Status uint8 `json:"status"` // 状态0.未审核1.已通过2.已拒绝 Avatar string `json:"avatar"` ExternalId string `json:"externalId"` + Reason int `json:"reason"` // 1.已申请2.待审核3.已通过4.已拒绝" } type InviteApplyNumRes struct { diff --git a/domain/model/invite_m/invite_apply.go b/domain/model/invite_m/invite_apply.go index d7389f60cf6eb0a1abc0199eaa05d2dc387285b4..b20a864330280e931362d0fae0a220d770e0aad5 100644 --- a/domain/model/invite_m/invite_apply.go +++ b/domain/model/invite_m/invite_apply.go @@ -18,6 +18,7 @@ type InviteApply struct { VideoUrl string `json:"video_url"` Level string `json:"level"` 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 { diff --git a/route/invite_r/party_invite.go b/route/invite_r/party_invite.go index eff59815e565c20201d99eb8caf95999553cb801..244ac61f2ac11a21e368d2c16b3218527119336a 100644 --- a/route/invite_r/party_invite.go +++ b/route/invite_r/party_invite.go @@ -214,6 +214,7 @@ func InviteApplyList(c *gin.Context) (*mycontext.MyContext, error) { Status: v.Status, Avatar: users[v.NewUserId].Avatar, ExternalId: users[v.NewUserId].ExternalId, + Reason: v.Reason, }) }