diff --git a/api/proto/streamer/proto/streamer_vo_api.go b/api/proto/streamer/proto/streamer_vo_api.go index 97c799a1..2b4c714f 100644 --- a/api/proto/streamer/proto/streamer_vo_api.go +++ b/api/proto/streamer/proto/streamer_vo_api.go @@ -1,9 +1,10 @@ package proto import ( - goproto "google.golang.org/protobuf/proto" streamerlinkproto "service/api/proto/streamerlink/proto" "service/dbstruct" + + goproto "google.golang.org/protobuf/proto" ) // 查询VO类 @@ -32,6 +33,7 @@ type ApiListExtVO struct { Fans *int64 `json:"fans" bson:"fans"` // 全网粉丝 WxPrice *int64 `json:"wx_price" bson:"wx_price"` // 微信价格 AutoResponseMessage *string `json:"auto_response_message" bson:"auto_response_message"` // 自动回复消息 + Inviters *[]int64 `json:"inviters" bson:"inviters"` // 邀请人 Ct *int64 `json:"ct" bson:"ct"` // 创建时间 Ut *int64 `json:"ut" bson:"ut"` // 更新时间 @@ -63,6 +65,7 @@ func (vo *ApiListExtVO) CopyStreamer(streamer *dbstruct.Streamer) { vo.Tag = streamer.Tag vo.Fans = streamer.Fans vo.AutoResponseMessage = streamer.AutoResponseMessage + vo.Inviters = streamer.Inviters vo.Ct = streamer.Ct vo.Ut = streamer.Ut } diff --git a/api/proto/streamer/proto/streamer_vo_op.go b/api/proto/streamer/proto/streamer_vo_op.go index ea8e488c..299eda93 100644 --- a/api/proto/streamer/proto/streamer_vo_op.go +++ b/api/proto/streamer/proto/streamer_vo_op.go @@ -1,9 +1,10 @@ package proto import ( - goproto "google.golang.org/protobuf/proto" streamerlinkproto "service/api/proto/streamerlink/proto" "service/dbstruct" + + goproto "google.golang.org/protobuf/proto" ) type StreamerExtVO interface { @@ -39,6 +40,7 @@ type OpListExtVO struct { Fans *int64 `json:"fans" bson:"fans"` // 全网粉丝 WxPrice *int64 `json:"wx_price" bson:"wx_price"` // 微信价格 AutoResponseMessage *string `json:"auto_response_message" bson:"auto_response_message"` // 自动回复消息 + Inviters *[]int64 `json:"inviters" bson:"inviters"` // 邀请人 Ct *int64 `json:"ct" bson:"ct"` // 创建时间 Ut *int64 `json:"ut" bson:"ut"` // 更新时间 @@ -70,6 +72,7 @@ func (vo *OpListExtVO) CopyStreamer(streamer *dbstruct.Streamer) { vo.Tag = streamer.Tag vo.Fans = streamer.Fans vo.AutoResponseMessage = streamer.AutoResponseMessage + vo.Inviters = streamer.Inviters vo.Ct = streamer.Ct vo.Ut = streamer.Ut } diff --git a/dbstruct/streamer.go b/dbstruct/streamer.go index 407c850b..ffd3f9d7 100644 --- a/dbstruct/streamer.go +++ b/dbstruct/streamer.go @@ -16,6 +16,7 @@ type Streamer struct { Tag *[]string `json:"tag" bson:"tag"` // 主播标签 Fans *int64 `json:"fans" bson:"fans"` // 全网粉丝 AutoResponseMessage *string `json:"auto_response_message" bson:"auto_response_message"` // 自动回复消息 + Inviters *[]int64 `json:"inviters" bson:"inviters"` // 邀请人 Ct *int64 `json:"ct" bson:"ct"` // 创建时间 Ut *int64 `json:"ut" bson:"ut"` // 更新时间 DelFlag *int64 `json:"del_flag" bson:"del_flag"` // 删除标记