From d1dc1118b140538be55d7ef74ac7d00477a3ba6f Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Mon, 10 Jul 2023 18:02:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BE=E5=AF=B9=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv/invite_cv/invite_apply.go | 1 + domain/model/invite_m/invite_apply.go | 1 + route/invite_r/party_invite.go | 1 + 3 files changed, 3 insertions(+) diff --git a/cv/invite_cv/invite_apply.go b/cv/invite_cv/invite_apply.go index f658e1e..4ee166d 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 d7389f6..b20a864 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 eff5981..244ac61 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, }) } -- 2.22.0