feat-20231230-001-Robin #25

Merged
chenhao merged 22 commits from feat-20231230-001-Robin into test 2023-12-30 19:49:54 +08:00
3 changed files with 9 additions and 2 deletions
Showing only changes of commit 64f506cab4 - Show all commits

View File

@ -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
}

View File

@ -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
}

View File

@ -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"` // 删除标记