You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
751 lines
25 KiB
751 lines
25 KiB
2 months ago
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// protoc-gen-go v1.28.1
|
||
|
// protoc v3.12.4
|
||
|
// source: entity.proto
|
||
|
|
||
|
package entity
|
||
|
|
||
|
import (
|
||
|
context "context"
|
||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
|
reflect "reflect"
|
||
|
sync "sync"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
// Verify that this generated code is sufficiently up-to-date.
|
||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
|
)
|
||
|
|
||
|
type BaseResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
|
||
|
StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3" json:"status_msg,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *BaseResponse) Reset() {
|
||
|
*x = BaseResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_entity_proto_msgTypes[0]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *BaseResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*BaseResponse) ProtoMessage() {}
|
||
|
|
||
|
func (x *BaseResponse) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_entity_proto_msgTypes[0]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use BaseResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*BaseResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_entity_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
func (x *BaseResponse) GetStatusCode() int32 {
|
||
|
if x != nil {
|
||
|
return x.StatusCode
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *BaseResponse) GetStatusMsg() string {
|
||
|
if x != nil {
|
||
|
return x.StatusMsg
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type Comment struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 视频评论id
|
||
|
User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // 评论用户信息
|
||
|
Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // 评论内容
|
||
|
CreateDate string `protobuf:"bytes,4,opt,name=create_date,json=createDate,proto3" json:"create_date,omitempty"` // 评论发布日期,格式 mm-dd
|
||
|
LikeCount int64 `protobuf:"varint,5,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"` // 该评论的点赞数
|
||
|
TeaseCount int64 `protobuf:"varint,6,opt,name=tease_count,json=teaseCount,proto3" json:"tease_count,omitempty"` // 该评论diss数量
|
||
|
}
|
||
|
|
||
|
func (x *Comment) Reset() {
|
||
|
*x = Comment{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_entity_proto_msgTypes[1]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *Comment) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*Comment) ProtoMessage() {}
|
||
|
|
||
|
func (x *Comment) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_entity_proto_msgTypes[1]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use Comment.ProtoReflect.Descriptor instead.
|
||
|
func (*Comment) Descriptor() ([]byte, []int) {
|
||
|
return file_entity_proto_rawDescGZIP(), []int{1}
|
||
|
}
|
||
|
|
||
|
func (x *Comment) GetId() int64 {
|
||
|
if x != nil {
|
||
|
return x.Id
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Comment) GetUser() *User {
|
||
|
if x != nil {
|
||
|
return x.User
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *Comment) GetContent() string {
|
||
|
if x != nil {
|
||
|
return x.Content
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Comment) GetCreateDate() string {
|
||
|
if x != nil {
|
||
|
return x.CreateDate
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Comment) GetLikeCount() int64 {
|
||
|
if x != nil {
|
||
|
return x.LikeCount
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Comment) GetTeaseCount() int64 {
|
||
|
if x != nil {
|
||
|
return x.TeaseCount
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
type FriendUser struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
||
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 和该好友的最新聊天消息
|
||
|
MsgType int64 `protobuf:"varint,3,opt,name=msgType,proto3" json:"msgType,omitempty"` // message消息的类型,0 => 当前请求用户接收的消息, 1 => 当前请求用户发送的消息(用于聊天框显示一条信息)
|
||
|
}
|
||
|
|
||
|
func (x *FriendUser) Reset() {
|
||
|
*x = FriendUser{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_entity_proto_msgTypes[2]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *FriendUser) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*FriendUser) ProtoMessage() {}
|
||
|
|
||
|
func (x *FriendUser) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_entity_proto_msgTypes[2]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use FriendUser.ProtoReflect.Descriptor instead.
|
||
|
func (*FriendUser) Descriptor() ([]byte, []int) {
|
||
|
return file_entity_proto_rawDescGZIP(), []int{2}
|
||
|
}
|
||
|
|
||
|
func (x *FriendUser) GetUser() *User {
|
||
|
if x != nil {
|
||
|
return x.User
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *FriendUser) GetMessage() string {
|
||
|
if x != nil {
|
||
|
return x.Message
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *FriendUser) GetMsgType() int64 {
|
||
|
if x != nil {
|
||
|
return x.MsgType
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
type Message struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id
|
||
|
ToUserId int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // 该消息接收者的id
|
||
|
FromUserId int64 `protobuf:"varint,3,opt,name=from_user_id,json=fromUserId,proto3" json:"from_user_id,omitempty"` // 该消息发送者的id
|
||
|
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // 消息内容
|
||
|
CreateTime int64 `protobuf:"varint,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 消息创建时间
|
||
|
}
|
||
|
|
||
|
func (x *Message) Reset() {
|
||
|
*x = Message{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_entity_proto_msgTypes[3]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *Message) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*Message) ProtoMessage() {}
|
||
|
|
||
|
func (x *Message) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_entity_proto_msgTypes[3]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use Message.ProtoReflect.Descriptor instead.
|
||
|
func (*Message) Descriptor() ([]byte, []int) {
|
||
|
return file_entity_proto_rawDescGZIP(), []int{3}
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetId() int64 {
|
||
|
if x != nil {
|
||
|
return x.Id
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetToUserId() int64 {
|
||
|
if x != nil {
|
||
|
return x.ToUserId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetFromUserId() int64 {
|
||
|
if x != nil {
|
||
|
return x.FromUserId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetContent() string {
|
||
|
if x != nil {
|
||
|
return x.Content
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetCreateTime() int64 {
|
||
|
if x != nil {
|
||
|
return x.CreateTime
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
type User struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户id
|
||
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 用户名称
|
||
|
FollowCount int64 `protobuf:"varint,3,opt,name=follow_count,json=followCount,proto3" json:"follow_count,omitempty"` // 关注总数
|
||
|
FollowerCount int64 `protobuf:"varint,4,opt,name=follower_count,json=followerCount,proto3" json:"follower_count,omitempty"` // 粉丝总数
|
||
|
IsFollow bool `protobuf:"varint,5,opt,name=is_follow,json=isFollow,proto3" json:"is_follow,omitempty"` // true-已关注,false-未关注
|
||
|
Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` // 用户头像Url
|
||
|
BackgroundImage string `protobuf:"bytes,7,opt,name=background_image,json=backgroundImage,proto3" json:"background_image,omitempty"` // 用户个人页顶部大图
|
||
|
Signature string `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"` // 个人简介
|
||
|
TotalFavorited int64 `protobuf:"varint,9,opt,name=total_favorited,json=totalFavorited,proto3" json:"total_favorited,omitempty"` // 获赞数量
|
||
|
WorkCount int64 `protobuf:"varint,10,opt,name=work_count,json=workCount,proto3" json:"work_count,omitempty"` // 作品数量
|
||
|
FavoriteCount int64 `protobuf:"varint,11,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` // 点赞数量
|
||
|
}
|
||
|
|
||
|
func (x *User) Reset() {
|
||
|
*x = User{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_entity_proto_msgTypes[4]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *User) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*User) ProtoMessage() {}
|
||
|
|
||
|
func (x *User) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_entity_proto_msgTypes[4]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use User.ProtoReflect.Descriptor instead.
|
||
|
func (*User) Descriptor() ([]byte, []int) {
|
||
|
return file_entity_proto_rawDescGZIP(), []int{4}
|
||
|
}
|
||
|
|
||
|
func (x *User) GetId() int64 {
|
||
|
if x != nil {
|
||
|
return x.Id
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *User) GetName() string {
|
||
|
if x != nil {
|
||
|
return x.Name
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *User) GetFollowCount() int64 {
|
||
|
if x != nil {
|
||
|
return x.FollowCount
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *User) GetFollowerCount() int64 {
|
||
|
if x != nil {
|
||
|
return x.FollowerCount
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *User) GetIsFollow() bool {
|
||
|
if x != nil {
|
||
|
return x.IsFollow
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func (x *User) GetAvatar() string {
|
||
|
if x != nil {
|
||
|
return x.Avatar
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *User) GetBackgroundImage() string {
|
||
|
if x != nil {
|
||
|
return x.BackgroundImage
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *User) GetSignature() string {
|
||
|
if x != nil {
|
||
|
return x.Signature
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *User) GetTotalFavorited() int64 {
|
||
|
if x != nil {
|
||
|
return x.TotalFavorited
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *User) GetWorkCount() int64 {
|
||
|
if x != nil {
|
||
|
return x.WorkCount
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *User) GetFavoriteCount() int64 {
|
||
|
if x != nil {
|
||
|
return x.FavoriteCount
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
type Video struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 视频唯一标识
|
||
|
Author *User `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` // 视频作者信息
|
||
|
PlayUrl string `protobuf:"bytes,3,opt,name=play_url,json=playUrl,proto3" json:"play_url,omitempty"` // 视频播放地址
|
||
|
CoverUrl string `protobuf:"bytes,4,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` // 视频封面地址
|
||
|
FavoriteCount int64 `protobuf:"varint,5,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` // 视频的点赞总数
|
||
|
CommentCount int64 `protobuf:"varint,6,opt,name=comment_count,json=commentCount,proto3" json:"comment_count,omitempty"` // 视频的评论总数
|
||
|
IsFavorite bool `protobuf:"varint,7,opt,name=is_favorite,json=isFavorite,proto3" json:"is_favorite,omitempty"` // true-已点赞,false-未点赞
|
||
|
Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` // 视频标题
|
||
|
}
|
||
|
|
||
|
func (x *Video) Reset() {
|
||
|
*x = Video{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_entity_proto_msgTypes[5]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *Video) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*Video) ProtoMessage() {}
|
||
|
|
||
|
func (x *Video) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_entity_proto_msgTypes[5]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use Video.ProtoReflect.Descriptor instead.
|
||
|
func (*Video) Descriptor() ([]byte, []int) {
|
||
|
return file_entity_proto_rawDescGZIP(), []int{5}
|
||
|
}
|
||
|
|
||
|
func (x *Video) GetId() int64 {
|
||
|
if x != nil {
|
||
|
return x.Id
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Video) GetAuthor() *User {
|
||
|
if x != nil {
|
||
|
return x.Author
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *Video) GetPlayUrl() string {
|
||
|
if x != nil {
|
||
|
return x.PlayUrl
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Video) GetCoverUrl() string {
|
||
|
if x != nil {
|
||
|
return x.CoverUrl
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Video) GetFavoriteCount() int64 {
|
||
|
if x != nil {
|
||
|
return x.FavoriteCount
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Video) GetCommentCount() int64 {
|
||
|
if x != nil {
|
||
|
return x.CommentCount
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Video) GetIsFavorite() bool {
|
||
|
if x != nil {
|
||
|
return x.IsFavorite
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func (x *Video) GetTitle() string {
|
||
|
if x != nil {
|
||
|
return x.Title
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
var File_entity_proto protoreflect.FileDescriptor
|
||
|
|
||
|
var file_entity_proto_rawDesc = []byte{
|
||
|
0x0a, 0x0c, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
|
||
|
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x4e, 0x0a, 0x0c, 0x42, 0x61, 0x73, 0x65, 0x52, 0x65,
|
||
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
|
||
|
0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x73, 0x74, 0x61,
|
||
|
0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75,
|
||
|
0x73, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61,
|
||
|
0x74, 0x75, 0x73, 0x4d, 0x73, 0x67, 0x22, 0xb6, 0x01, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65,
|
||
|
0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02,
|
||
|
0x69, 0x64, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
||
|
0x32, 0x0c, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04,
|
||
|
0x75, 0x73, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18,
|
||
|
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1f,
|
||
|
0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20,
|
||
|
0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12,
|
||
|
0x1d, 0x0a, 0x0a, 0x6c, 0x69, 0x6b, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20,
|
||
|
0x01, 0x28, 0x03, 0x52, 0x09, 0x6c, 0x69, 0x6b, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f,
|
||
|
0x0a, 0x0b, 0x74, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20,
|
||
|
0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x65, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22,
|
||
|
0x62, 0x0a, 0x0a, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x12, 0x20, 0x0a,
|
||
|
0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x65, 0x6e,
|
||
|
0x74, 0x69, 0x74, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12,
|
||
|
0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||
|
0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67,
|
||
|
0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54,
|
||
|
0x79, 0x70, 0x65, 0x22, 0x94, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
|
||
|
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12,
|
||
|
0x1c, 0x0a, 0x0a, 0x74, 0x6f, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
|
||
|
0x01, 0x28, 0x03, 0x52, 0x08, 0x74, 0x6f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a,
|
||
|
0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,
|
||
|
0x01, 0x28, 0x03, 0x52, 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
|
||
|
0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
||
|
0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x72, 0x65,
|
||
|
0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a,
|
||
|
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xe1, 0x02, 0x0a, 0x04, 0x55,
|
||
|
0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||
|
0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||
|
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x6f, 0x6c, 0x6c, 0x6f,
|
||
|
0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x66,
|
||
|
0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x66, 0x6f,
|
||
|
0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01,
|
||
|
0x28, 0x03, 0x52, 0x0d, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e,
|
||
|
0x74, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x05,
|
||
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x12, 0x16,
|
||
|
0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
|
||
|
0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72,
|
||
|
0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
|
||
|
0x52, 0x0f, 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x49, 0x6d, 0x61, 0x67,
|
||
|
0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x08,
|
||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12,
|
||
|
0x27, 0x0a, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x66, 0x61, 0x76, 0x6f, 0x72, 0x69, 0x74,
|
||
|
0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46,
|
||
|
0x61, 0x76, 0x6f, 0x72, 0x69, 0x74, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x77, 0x6f, 0x72, 0x6b,
|
||
|
0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x77, 0x6f,
|
||
|
0x72, 0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x66, 0x61, 0x76, 0x6f, 0x72,
|
||
|
0x69, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||
|
0x0d, 0x66, 0x61, 0x76, 0x6f, 0x72, 0x69, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xf8,
|
||
|
0x01, 0x0a, 0x05, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
||
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x24, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68,
|
||
|
0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74,
|
||
|
0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x19,
|
||
|
0x0a, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
||
|
0x52, 0x07, 0x70, 0x6c, 0x61, 0x79, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x76,
|
||
|
0x65, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f,
|
||
|
0x76, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x66, 0x61, 0x76, 0x6f, 0x72, 0x69,
|
||
|
0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d,
|
||
|
0x66, 0x61, 0x76, 0x6f, 0x72, 0x69, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a,
|
||
|
0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06,
|
||
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x75,
|
||
|
0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x66, 0x61, 0x76, 0x6f, 0x72, 0x69, 0x74,
|
||
|
0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x46, 0x61, 0x76, 0x6f, 0x72,
|
||
|
0x69, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01,
|
||
|
0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74,
|
||
|
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x72, 0x65, 0x6d, 0x62, 0x6c, 0x69, 0x6e,
|
||
|
0x67, 0x56, 0x35, 0x2f, 0x44, 0x6f, 0x75, 0x54, 0x6f, 0x6b, 0x2f, 0x6b, 0x69, 0x74, 0x65, 0x78,
|
||
|
0x5f, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||
|
0x74, 0x6f, 0x33,
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
file_entity_proto_rawDescOnce sync.Once
|
||
|
file_entity_proto_rawDescData = file_entity_proto_rawDesc
|
||
|
)
|
||
|
|
||
|
func file_entity_proto_rawDescGZIP() []byte {
|
||
|
file_entity_proto_rawDescOnce.Do(func() {
|
||
|
file_entity_proto_rawDescData = protoimpl.X.CompressGZIP(file_entity_proto_rawDescData)
|
||
|
})
|
||
|
return file_entity_proto_rawDescData
|
||
|
}
|
||
|
|
||
|
var file_entity_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||
|
var file_entity_proto_goTypes = []interface{}{
|
||
|
(*BaseResponse)(nil), // 0: entity.BaseResponse
|
||
|
(*Comment)(nil), // 1: entity.Comment
|
||
|
(*FriendUser)(nil), // 2: entity.FriendUser
|
||
|
(*Message)(nil), // 3: entity.Message
|
||
|
(*User)(nil), // 4: entity.User
|
||
|
(*Video)(nil), // 5: entity.Video
|
||
|
}
|
||
|
var file_entity_proto_depIdxs = []int32{
|
||
|
4, // 0: entity.Comment.user:type_name -> entity.User
|
||
|
4, // 1: entity.FriendUser.user:type_name -> entity.User
|
||
|
4, // 2: entity.Video.author:type_name -> entity.User
|
||
|
3, // [3:3] is the sub-list for method output_type
|
||
|
3, // [3:3] is the sub-list for method input_type
|
||
|
3, // [3:3] is the sub-list for extension type_name
|
||
|
3, // [3:3] is the sub-list for extension extendee
|
||
|
0, // [0:3] is the sub-list for field type_name
|
||
|
}
|
||
|
|
||
|
func init() { file_entity_proto_init() }
|
||
|
func file_entity_proto_init() {
|
||
|
if File_entity_proto != nil {
|
||
|
return
|
||
|
}
|
||
|
if !protoimpl.UnsafeEnabled {
|
||
|
file_entity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*BaseResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_entity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*Comment); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_entity_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*FriendUser); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_entity_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*Message); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_entity_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*User); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_entity_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*Video); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
type x struct{}
|
||
|
out := protoimpl.TypeBuilder{
|
||
|
File: protoimpl.DescBuilder{
|
||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
|
RawDescriptor: file_entity_proto_rawDesc,
|
||
|
NumEnums: 0,
|
||
|
NumMessages: 6,
|
||
|
NumExtensions: 0,
|
||
|
NumServices: 0,
|
||
|
},
|
||
|
GoTypes: file_entity_proto_goTypes,
|
||
|
DependencyIndexes: file_entity_proto_depIdxs,
|
||
|
MessageInfos: file_entity_proto_msgTypes,
|
||
|
}.Build()
|
||
|
File_entity_proto = out.File
|
||
|
file_entity_proto_rawDesc = nil
|
||
|
file_entity_proto_goTypes = nil
|
||
|
file_entity_proto_depIdxs = nil
|
||
|
}
|
||
|
|
||
|
var _ context.Context
|