Documentation
¶
Index ¶
- Variables
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetContent() string
- func (x *Comment) GetCreateDate() string
- func (x *Comment) GetId() int64
- func (x *Comment) GetUser() *User
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type CommentActionRequest
- func (*CommentActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommentActionRequest) GetActionType() int32
- func (x *CommentActionRequest) GetCommentId() int64
- func (x *CommentActionRequest) GetCommentText() string
- func (x *CommentActionRequest) GetToken() string
- func (x *CommentActionRequest) GetVideoId() int64
- func (*CommentActionRequest) ProtoMessage()
- func (x *CommentActionRequest) ProtoReflect() protoreflect.Message
- func (x *CommentActionRequest) Reset()
- func (x *CommentActionRequest) String() string
- type CommentActionResponse
- func (*CommentActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommentActionResponse) GetComment() *Comment
- func (x *CommentActionResponse) GetStatusCode() int32
- func (x *CommentActionResponse) GetStatusMsg() string
- func (*CommentActionResponse) ProtoMessage()
- func (x *CommentActionResponse) ProtoReflect() protoreflect.Message
- func (x *CommentActionResponse) Reset()
- func (x *CommentActionResponse) String() string
- type CommentListRequest
- func (*CommentListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommentListRequest) GetToken() string
- func (x *CommentListRequest) GetVideoId() int64
- func (*CommentListRequest) ProtoMessage()
- func (x *CommentListRequest) ProtoReflect() protoreflect.Message
- func (x *CommentListRequest) Reset()
- func (x *CommentListRequest) String() string
- type CommentListResponse
- func (*CommentListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommentListResponse) GetCommentList() []*Comment
- func (x *CommentListResponse) GetStatusCode() int32
- func (x *CommentListResponse) GetStatusMsg() string
- func (*CommentListResponse) ProtoMessage()
- func (x *CommentListResponse) ProtoReflect() protoreflect.Message
- func (x *CommentListResponse) Reset()
- func (x *CommentListResponse) String() string
- type FavoriteActionRequest
- func (*FavoriteActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteActionRequest) GetActionType() int32
- func (x *FavoriteActionRequest) GetToken() string
- func (x *FavoriteActionRequest) GetVideoId() int64
- func (*FavoriteActionRequest) ProtoMessage()
- func (x *FavoriteActionRequest) ProtoReflect() protoreflect.Message
- func (x *FavoriteActionRequest) Reset()
- func (x *FavoriteActionRequest) String() string
- type FavoriteActionResponse
- func (*FavoriteActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteActionResponse) GetStatusCode() int32
- func (x *FavoriteActionResponse) GetStatusMsg() string
- func (*FavoriteActionResponse) ProtoMessage()
- func (x *FavoriteActionResponse) ProtoReflect() protoreflect.Message
- func (x *FavoriteActionResponse) Reset()
- func (x *FavoriteActionResponse) String() string
- type FavoriteListRequest
- func (*FavoriteListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteListRequest) GetToken() string
- func (x *FavoriteListRequest) GetUserId() int64
- func (*FavoriteListRequest) ProtoMessage()
- func (x *FavoriteListRequest) ProtoReflect() protoreflect.Message
- func (x *FavoriteListRequest) Reset()
- func (x *FavoriteListRequest) String() string
- type FavoriteListResponse
- func (*FavoriteListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteListResponse) GetStatusCode() int32
- func (x *FavoriteListResponse) GetStatusMsg() string
- func (x *FavoriteListResponse) GetVideoList() []*Video
- func (*FavoriteListResponse) ProtoMessage()
- func (x *FavoriteListResponse) ProtoReflect() protoreflect.Message
- func (x *FavoriteListResponse) Reset()
- func (x *FavoriteListResponse) String() string
- type FeedRequest
- func (*FeedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FeedRequest) GetLatestTime() int64
- func (x *FeedRequest) GetToken() string
- func (*FeedRequest) ProtoMessage()
- func (x *FeedRequest) ProtoReflect() protoreflect.Message
- func (x *FeedRequest) Reset()
- func (x *FeedRequest) String() string
- type FeedResponse
- func (*FeedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FeedResponse) GetNextTime() int64
- func (x *FeedResponse) GetStatusCode() int32
- func (x *FeedResponse) GetStatusMsg() string
- func (x *FeedResponse) GetVideoList() []*Video
- func (*FeedResponse) ProtoMessage()
- func (x *FeedResponse) ProtoReflect() protoreflect.Message
- func (x *FeedResponse) Reset()
- func (x *FeedResponse) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetId() int64
- func (x *LoginResponse) GetStatusCode() int32
- func (x *LoginResponse) GetStatusMsg() string
- func (x *LoginResponse) GetToken() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type PublishActionRequest
- func (*PublishActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishActionRequest) GetData() []byte
- func (x *PublishActionRequest) GetTitle() string
- func (x *PublishActionRequest) GetToken() string
- func (*PublishActionRequest) ProtoMessage()
- func (x *PublishActionRequest) ProtoReflect() protoreflect.Message
- func (x *PublishActionRequest) Reset()
- func (x *PublishActionRequest) String() string
- type PublishActionResponse
- func (*PublishActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PublishActionResponse) GetStatusCode() int32
- func (x *PublishActionResponse) GetStatusMsg() string
- func (*PublishActionResponse) ProtoMessage()
- func (x *PublishActionResponse) ProtoReflect() protoreflect.Message
- func (x *PublishActionResponse) Reset()
- func (x *PublishActionResponse) String() string
- type PublishListRequest
- func (*PublishListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishListRequest) GetToken() string
- func (x *PublishListRequest) GetUserId() int64
- func (*PublishListRequest) ProtoMessage()
- func (x *PublishListRequest) ProtoReflect() protoreflect.Message
- func (x *PublishListRequest) Reset()
- func (x *PublishListRequest) String() string
- type PublishListResponse
- func (*PublishListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PublishListResponse) GetStatusCode() int32
- func (x *PublishListResponse) GetStatusMsg() string
- func (x *PublishListResponse) GetVideoList() []*Video
- func (*PublishListResponse) ProtoMessage()
- func (x *PublishListResponse) ProtoReflect() protoreflect.Message
- func (x *PublishListResponse) Reset()
- func (x *PublishListResponse) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetPassword() string
- func (x *RegisterRequest) GetUsername() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetId() int64
- func (x *RegisterResponse) GetStatusCode() int32
- func (x *RegisterResponse) GetStatusMsg() string
- func (x *RegisterResponse) GetToken() string
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatar() string
- func (x *User) GetBackgroundImage() string
- func (x *User) GetFavoriteCount() int64
- func (x *User) GetFollowCount() int64
- func (x *User) GetFollowerCount() int64
- func (x *User) GetId() int64
- func (x *User) GetIsFollow() bool
- func (x *User) GetName() string
- func (x *User) GetSignature() string
- func (x *User) GetTotalFavorited() int64
- func (x *User) GetWorkCount() int64
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserRequest
- type UserResponse
- func (*UserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserResponse) GetStatusCode() int32
- func (x *UserResponse) GetStatusMsg() string
- func (x *UserResponse) GetUser() *User
- func (*UserResponse) ProtoMessage()
- func (x *UserResponse) ProtoReflect() protoreflect.Message
- func (x *UserResponse) Reset()
- func (x *UserResponse) String() string
- type Video
- func (*Video) Descriptor() ([]byte, []int)deprecated
- func (x *Video) GetAuthor() *User
- func (x *Video) GetCommentCount() int64
- func (x *Video) GetCoverUrl() string
- func (x *Video) GetFavoriteCount() int64
- func (x *Video) GetId() int64
- func (x *Video) GetIsFavorite() bool
- func (x *Video) GetPlayUrl() string
- func (x *Video) GetTitle() string
- func (*Video) ProtoMessage()
- func (x *Video) ProtoReflect() protoreflect.Message
- func (x *Video) Reset()
- func (x *Video) String() string
Constants ¶
This section is empty.
Variables ¶
var File_comment_proto protoreflect.FileDescriptor
var File_favorite_proto protoreflect.FileDescriptor
var File_feed_proto protoreflect.FileDescriptor
var File_publish_proto protoreflect.FileDescriptor
var File_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct {
Id *int64 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` // 视频评论id
User *User `protobuf:"bytes,2,req,name=user" json:"user,omitempty"` // 评论用户信息
Content *string `protobuf:"bytes,3,req,name=content" json:"content,omitempty"` // 评论内容
CreateDate *string `protobuf:"bytes,4,req,name=create_date,json=createDate" json:"create_date,omitempty"` // 评论发布日期,格式 mm-dd
// contains filtered or unexported fields
}
func (*Comment) Descriptor
deprecated
func (*Comment) GetContent ¶
func (*Comment) GetCreateDate ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type CommentActionRequest ¶
type CommentActionRequest struct {
Token *string `protobuf:"bytes,1,req,name=token" json:"token,omitempty"` // 用户鉴权token
VideoId *int64 `protobuf:"varint,2,req,name=video_id,json=videoId" json:"video_id,omitempty"` // 视频id
ActionType *int32 `protobuf:"varint,3,req,name=action_type,json=actionType" json:"action_type,omitempty"` // 1-发布评论,2-删除评论
CommentText *string `protobuf:"bytes,4,opt,name=comment_text,json=commentText" json:"comment_text,omitempty"` // 用户填写的评论内容,在action_type=1的时候使用
CommentId *int64 `protobuf:"varint,5,opt,name=comment_id,json=commentId" json:"comment_id,omitempty"` // 要删除的评论id,在action_type=2的时候使用
// contains filtered or unexported fields
}
func (*CommentActionRequest) Descriptor
deprecated
func (*CommentActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommentActionRequest.ProtoReflect.Descriptor instead.
func (*CommentActionRequest) GetActionType ¶
func (x *CommentActionRequest) GetActionType() int32
func (*CommentActionRequest) GetCommentId ¶
func (x *CommentActionRequest) GetCommentId() int64
func (*CommentActionRequest) GetCommentText ¶
func (x *CommentActionRequest) GetCommentText() string
func (*CommentActionRequest) GetToken ¶
func (x *CommentActionRequest) GetToken() string
func (*CommentActionRequest) GetVideoId ¶
func (x *CommentActionRequest) GetVideoId() int64
func (*CommentActionRequest) ProtoMessage ¶
func (*CommentActionRequest) ProtoMessage()
func (*CommentActionRequest) ProtoReflect ¶
func (x *CommentActionRequest) ProtoReflect() protoreflect.Message
func (*CommentActionRequest) Reset ¶
func (x *CommentActionRequest) Reset()
func (*CommentActionRequest) String ¶
func (x *CommentActionRequest) String() string
type CommentActionResponse ¶
type CommentActionResponse struct {
StatusCode *int32 `protobuf:"varint,1,req,name=status_code,json=statusCode" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败
StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty"` // 返回状态描述
Comment *Comment `protobuf:"bytes,3,opt,name=comment" json:"comment,omitempty"` // 评论成功返回评论内容,不需要重新拉取整个列表
// contains filtered or unexported fields
}
func (*CommentActionResponse) Descriptor
deprecated
func (*CommentActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommentActionResponse.ProtoReflect.Descriptor instead.
func (*CommentActionResponse) GetComment ¶
func (x *CommentActionResponse) GetComment() *Comment
func (*CommentActionResponse) GetStatusCode ¶
func (x *CommentActionResponse) GetStatusCode() int32
func (*CommentActionResponse) GetStatusMsg ¶
func (x *CommentActionResponse) GetStatusMsg() string
func (*CommentActionResponse) ProtoMessage ¶
func (*CommentActionResponse) ProtoMessage()
func (*CommentActionResponse) ProtoReflect ¶
func (x *CommentActionResponse) ProtoReflect() protoreflect.Message
func (*CommentActionResponse) Reset ¶
func (x *CommentActionResponse) Reset()
func (*CommentActionResponse) String ¶
func (x *CommentActionResponse) String() string
type CommentListRequest ¶
type CommentListRequest struct {
Token *string `protobuf:"bytes,1,req,name=token" json:"token,omitempty"` // 用户鉴权token
VideoId *int64 `protobuf:"varint,2,req,name=video_id,json=videoId" json:"video_id,omitempty"` // 视频id
// contains filtered or unexported fields
}
func (*CommentListRequest) Descriptor
deprecated
func (*CommentListRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommentListRequest.ProtoReflect.Descriptor instead.
func (*CommentListRequest) GetToken ¶
func (x *CommentListRequest) GetToken() string
func (*CommentListRequest) GetVideoId ¶
func (x *CommentListRequest) GetVideoId() int64
func (*CommentListRequest) ProtoMessage ¶
func (*CommentListRequest) ProtoMessage()
func (*CommentListRequest) ProtoReflect ¶
func (x *CommentListRequest) ProtoReflect() protoreflect.Message
func (*CommentListRequest) Reset ¶
func (x *CommentListRequest) Reset()
func (*CommentListRequest) String ¶
func (x *CommentListRequest) String() string
type CommentListResponse ¶
type CommentListResponse struct {
StatusCode *int32 `protobuf:"varint,1,req,name=status_code,json=statusCode" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败
StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty"` // 返回状态描述
CommentList []*Comment `protobuf:"bytes,3,rep,name=comment_list,json=commentList" json:"comment_list,omitempty"` // 评论列表
// contains filtered or unexported fields
}
func (*CommentListResponse) Descriptor
deprecated
func (*CommentListResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommentListResponse.ProtoReflect.Descriptor instead.
func (*CommentListResponse) GetCommentList ¶
func (x *CommentListResponse) GetCommentList() []*Comment
func (*CommentListResponse) GetStatusCode ¶
func (x *CommentListResponse) GetStatusCode() int32
func (*CommentListResponse) GetStatusMsg ¶
func (x *CommentListResponse) GetStatusMsg() string
func (*CommentListResponse) ProtoMessage ¶
func (*CommentListResponse) ProtoMessage()
func (*CommentListResponse) ProtoReflect ¶
func (x *CommentListResponse) ProtoReflect() protoreflect.Message
func (*CommentListResponse) Reset ¶
func (x *CommentListResponse) Reset()
func (*CommentListResponse) String ¶
func (x *CommentListResponse) String() string
type FavoriteActionRequest ¶
type FavoriteActionRequest struct {
Token *string `protobuf:"bytes,1,req,name=token" json:"token,omitempty"` // 用户鉴权token
VideoId *int64 `protobuf:"varint,2,req,name=video_id,json=videoId" json:"video_id,omitempty"` // 视频id
ActionType *int32 `protobuf:"varint,3,req,name=action_type,json=actionType" json:"action_type,omitempty"` // 1-点赞,2-取消点赞
// contains filtered or unexported fields
}
func (*FavoriteActionRequest) Descriptor
deprecated
func (*FavoriteActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteActionRequest.ProtoReflect.Descriptor instead.
func (*FavoriteActionRequest) GetActionType ¶
func (x *FavoriteActionRequest) GetActionType() int32
func (*FavoriteActionRequest) GetToken ¶
func (x *FavoriteActionRequest) GetToken() string
func (*FavoriteActionRequest) GetVideoId ¶
func (x *FavoriteActionRequest) GetVideoId() int64
func (*FavoriteActionRequest) ProtoMessage ¶
func (*FavoriteActionRequest) ProtoMessage()
func (*FavoriteActionRequest) ProtoReflect ¶
func (x *FavoriteActionRequest) ProtoReflect() protoreflect.Message
func (*FavoriteActionRequest) Reset ¶
func (x *FavoriteActionRequest) Reset()
func (*FavoriteActionRequest) String ¶
func (x *FavoriteActionRequest) String() string
type FavoriteActionResponse ¶
type FavoriteActionResponse struct {
StatusCode *int32 `protobuf:"varint,1,req,name=status_code,json=statusCode" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败
StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty"` // 返回状态描述
// contains filtered or unexported fields
}
func (*FavoriteActionResponse) Descriptor
deprecated
func (*FavoriteActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteActionResponse.ProtoReflect.Descriptor instead.
func (*FavoriteActionResponse) GetStatusCode ¶
func (x *FavoriteActionResponse) GetStatusCode() int32
func (*FavoriteActionResponse) GetStatusMsg ¶
func (x *FavoriteActionResponse) GetStatusMsg() string
func (*FavoriteActionResponse) ProtoMessage ¶
func (*FavoriteActionResponse) ProtoMessage()
func (*FavoriteActionResponse) ProtoReflect ¶
func (x *FavoriteActionResponse) ProtoReflect() protoreflect.Message
func (*FavoriteActionResponse) Reset ¶
func (x *FavoriteActionResponse) Reset()
func (*FavoriteActionResponse) String ¶
func (x *FavoriteActionResponse) String() string
type FavoriteListRequest ¶
type FavoriteListRequest struct {
UserId *int64 `protobuf:"varint,1,req,name=user_id,json=userId" json:"user_id,omitempty"` // 用户id
Token *string `protobuf:"bytes,2,req,name=token" json:"token,omitempty"` // 用户鉴权token
// contains filtered or unexported fields
}
func (*FavoriteListRequest) Descriptor
deprecated
func (*FavoriteListRequest) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteListRequest.ProtoReflect.Descriptor instead.
func (*FavoriteListRequest) GetToken ¶
func (x *FavoriteListRequest) GetToken() string
func (*FavoriteListRequest) GetUserId ¶
func (x *FavoriteListRequest) GetUserId() int64
func (*FavoriteListRequest) ProtoMessage ¶
func (*FavoriteListRequest) ProtoMessage()
func (*FavoriteListRequest) ProtoReflect ¶
func (x *FavoriteListRequest) ProtoReflect() protoreflect.Message
func (*FavoriteListRequest) Reset ¶
func (x *FavoriteListRequest) Reset()
func (*FavoriteListRequest) String ¶
func (x *FavoriteListRequest) String() string
type FavoriteListResponse ¶
type FavoriteListResponse struct {
StatusCode *int32 `protobuf:"varint,1,req,name=status_code,json=statusCode" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败
StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty"` // 返回状态描述
VideoList []*Video `protobuf:"bytes,3,rep,name=video_list,json=videoList" json:"video_list,omitempty"` // 用户点赞视频列表
// contains filtered or unexported fields
}
func (*FavoriteListResponse) Descriptor
deprecated
func (*FavoriteListResponse) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteListResponse.ProtoReflect.Descriptor instead.
func (*FavoriteListResponse) GetStatusCode ¶
func (x *FavoriteListResponse) GetStatusCode() int32
func (*FavoriteListResponse) GetStatusMsg ¶
func (x *FavoriteListResponse) GetStatusMsg() string
func (*FavoriteListResponse) GetVideoList ¶
func (x *FavoriteListResponse) GetVideoList() []*Video
func (*FavoriteListResponse) ProtoMessage ¶
func (*FavoriteListResponse) ProtoMessage()
func (*FavoriteListResponse) ProtoReflect ¶
func (x *FavoriteListResponse) ProtoReflect() protoreflect.Message
func (*FavoriteListResponse) Reset ¶
func (x *FavoriteListResponse) Reset()
func (*FavoriteListResponse) String ¶
func (x *FavoriteListResponse) String() string
type FeedRequest ¶
type FeedRequest struct {
LatestTime *int64 `protobuf:"varint,1,opt,name=latest_time,json=latestTime" json:"latest_time,omitempty"` // 可选参数,限制返回视频的最新投稿时间戳,精确到秒,不填表示当前时间
Token *string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"` // 可选参数,登录用户设置
// contains filtered or unexported fields
}
func (*FeedRequest) Descriptor
deprecated
func (*FeedRequest) Descriptor() ([]byte, []int)
Deprecated: Use FeedRequest.ProtoReflect.Descriptor instead.
func (*FeedRequest) GetLatestTime ¶
func (x *FeedRequest) GetLatestTime() int64
func (*FeedRequest) GetToken ¶
func (x *FeedRequest) GetToken() string
func (*FeedRequest) ProtoMessage ¶
func (*FeedRequest) ProtoMessage()
func (*FeedRequest) ProtoReflect ¶
func (x *FeedRequest) ProtoReflect() protoreflect.Message
func (*FeedRequest) Reset ¶
func (x *FeedRequest) Reset()
func (*FeedRequest) String ¶
func (x *FeedRequest) String() string
type FeedResponse ¶
type FeedResponse struct {
StatusCode *int32 `protobuf:"varint,1,req,name=status_code,json=statusCode" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败
StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty"` // 返回状态描述
VideoList []*Video `protobuf:"bytes,3,rep,name=video_list,json=videoList" json:"video_list,omitempty"` // 视频列表
NextTime *int64 `protobuf:"varint,4,opt,name=next_time,json=nextTime" json:"next_time,omitempty"` // 本次返回的视频中,发布最早的时间,作为下次请求时的latest_time
// contains filtered or unexported fields
}
func (*FeedResponse) Descriptor
deprecated
func (*FeedResponse) Descriptor() ([]byte, []int)
Deprecated: Use FeedResponse.ProtoReflect.Descriptor instead.
func (*FeedResponse) GetNextTime ¶
func (x *FeedResponse) GetNextTime() int64
func (*FeedResponse) GetStatusCode ¶
func (x *FeedResponse) GetStatusCode() int32
func (*FeedResponse) GetStatusMsg ¶
func (x *FeedResponse) GetStatusMsg() string
func (*FeedResponse) GetVideoList ¶
func (x *FeedResponse) GetVideoList() []*Video
func (*FeedResponse) ProtoMessage ¶
func (*FeedResponse) ProtoMessage()
func (*FeedResponse) ProtoReflect ¶
func (x *FeedResponse) ProtoReflect() protoreflect.Message
func (*FeedResponse) Reset ¶
func (x *FeedResponse) Reset()
func (*FeedResponse) String ¶
func (x *FeedResponse) String() string
type LoginRequest ¶
type LoginRequest struct {
Username *string `protobuf:"bytes,1,req,name=username" json:"username,omitempty"` // 登录用户名
Password *string `protobuf:"bytes,2,req,name=password" json:"password,omitempty"` // 登录密码
// contains filtered or unexported fields
}
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct {
StatusCode *int32 `protobuf:"varint,1,req,name=status_code,json=statusCode" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败
StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty"` // 返回状态描述
Id *int64 `protobuf:"varint,3,req,name=id" json:"id,omitempty"` // 用户id
Token *string `protobuf:"bytes,4,req,name=token" json:"token,omitempty"` // 用户鉴权token
// contains filtered or unexported fields
}
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetId ¶
func (x *LoginResponse) GetId() int64
func (*LoginResponse) GetStatusCode ¶
func (x *LoginResponse) GetStatusCode() int32
func (*LoginResponse) GetStatusMsg ¶
func (x *LoginResponse) GetStatusMsg() string
func (*LoginResponse) GetToken ¶
func (x *LoginResponse) GetToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type PublishActionRequest ¶
type PublishActionRequest struct {
Token *string `protobuf:"bytes,1,req,name=token" json:"token,omitempty"` // 用户鉴权token
Data []byte `protobuf:"bytes,2,req,name=data" json:"data,omitempty"` // 视频数据
Title *string `protobuf:"bytes,3,req,name=title" json:"title,omitempty"` // 视频标题
// contains filtered or unexported fields
}
func (*PublishActionRequest) Descriptor
deprecated
func (*PublishActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishActionRequest.ProtoReflect.Descriptor instead.
func (*PublishActionRequest) GetData ¶
func (x *PublishActionRequest) GetData() []byte
func (*PublishActionRequest) GetTitle ¶
func (x *PublishActionRequest) GetTitle() string
func (*PublishActionRequest) GetToken ¶
func (x *PublishActionRequest) GetToken() string
func (*PublishActionRequest) ProtoMessage ¶
func (*PublishActionRequest) ProtoMessage()
func (*PublishActionRequest) ProtoReflect ¶
func (x *PublishActionRequest) ProtoReflect() protoreflect.Message
func (*PublishActionRequest) Reset ¶
func (x *PublishActionRequest) Reset()
func (*PublishActionRequest) String ¶
func (x *PublishActionRequest) String() string
type PublishActionResponse ¶
type PublishActionResponse struct {
StatusCode *int32 `protobuf:"varint,1,req,name=status_code,json=statusCode" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败
StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty"` // 返回状态描述
// contains filtered or unexported fields
}
func (*PublishActionResponse) Descriptor
deprecated
func (*PublishActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublishActionResponse.ProtoReflect.Descriptor instead.
func (*PublishActionResponse) GetStatusCode ¶
func (x *PublishActionResponse) GetStatusCode() int32
func (*PublishActionResponse) GetStatusMsg ¶
func (x *PublishActionResponse) GetStatusMsg() string
func (*PublishActionResponse) ProtoMessage ¶
func (*PublishActionResponse) ProtoMessage()
func (*PublishActionResponse) ProtoReflect ¶
func (x *PublishActionResponse) ProtoReflect() protoreflect.Message
func (*PublishActionResponse) Reset ¶
func (x *PublishActionResponse) Reset()
func (*PublishActionResponse) String ¶
func (x *PublishActionResponse) String() string
type PublishListRequest ¶
type PublishListRequest struct {
UserId *int64 `protobuf:"varint,1,req,name=user_id,json=userId" json:"user_id,omitempty"` // 用户id
Token *string `protobuf:"bytes,2,req,name=token" json:"token,omitempty"` // 用户鉴权token
// contains filtered or unexported fields
}
func (*PublishListRequest) Descriptor
deprecated
func (*PublishListRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishListRequest.ProtoReflect.Descriptor instead.
func (*PublishListRequest) GetToken ¶
func (x *PublishListRequest) GetToken() string
func (*PublishListRequest) GetUserId ¶
func (x *PublishListRequest) GetUserId() int64
func (*PublishListRequest) ProtoMessage ¶
func (*PublishListRequest) ProtoMessage()
func (*PublishListRequest) ProtoReflect ¶
func (x *PublishListRequest) ProtoReflect() protoreflect.Message
func (*PublishListRequest) Reset ¶
func (x *PublishListRequest) Reset()
func (*PublishListRequest) String ¶
func (x *PublishListRequest) String() string
type PublishListResponse ¶
type PublishListResponse struct {
StatusCode *int32 `protobuf:"varint,1,req,name=status_code,json=statusCode" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败
StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty"` // 返回状态描述
VideoList []*Video `protobuf:"bytes,3,rep,name=video_list,json=videoList" json:"video_list,omitempty"` // 用户发布的视频列表
// contains filtered or unexported fields
}
func (*PublishListResponse) Descriptor
deprecated
func (*PublishListResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublishListResponse.ProtoReflect.Descriptor instead.
func (*PublishListResponse) GetStatusCode ¶
func (x *PublishListResponse) GetStatusCode() int32
func (*PublishListResponse) GetStatusMsg ¶
func (x *PublishListResponse) GetStatusMsg() string
func (*PublishListResponse) GetVideoList ¶
func (x *PublishListResponse) GetVideoList() []*Video
func (*PublishListResponse) ProtoMessage ¶
func (*PublishListResponse) ProtoMessage()
func (*PublishListResponse) ProtoReflect ¶
func (x *PublishListResponse) ProtoReflect() protoreflect.Message
func (*PublishListResponse) Reset ¶
func (x *PublishListResponse) Reset()
func (*PublishListResponse) String ¶
func (x *PublishListResponse) String() string
type RegisterRequest ¶
type RegisterRequest struct {
Username *string `protobuf:"bytes,1,req,name=username" json:"username,omitempty"` // 注册用户名,最长32个字符
Password *string `protobuf:"bytes,2,req,name=password" json:"password,omitempty"` // 密码,最长32个字符
// contains filtered or unexported fields
}
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetUsername ¶
func (x *RegisterRequest) GetUsername() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct {
StatusCode *int32 `protobuf:"varint,1,req,name=status_code,json=statusCode" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败
StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty"` // 返回状态描述
Id *int64 `protobuf:"varint,3,req,name=id" json:"id,omitempty"` // 用户id
Token *string `protobuf:"bytes,4,req,name=token" json:"token,omitempty"` // 用户鉴权token
// contains filtered or unexported fields
}
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetId ¶
func (x *RegisterResponse) GetId() int64
func (*RegisterResponse) GetStatusCode ¶
func (x *RegisterResponse) GetStatusCode() int32
func (*RegisterResponse) GetStatusMsg ¶
func (x *RegisterResponse) GetStatusMsg() string
func (*RegisterResponse) GetToken ¶
func (x *RegisterResponse) GetToken() string
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type User ¶
type User struct {
Id *int64 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` // 用户id
Name *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"` // 用户名称
FollowCount *int64 `protobuf:"varint,3,opt,name=follow_count,json=followCount" json:"follow_count,omitempty"` // 关注总数
FollowerCount *int64 `protobuf:"varint,4,opt,name=follower_count,json=followerCount" json:"follower_count,omitempty"` // 粉丝总数
IsFollow *bool `protobuf:"varint,5,req,name=is_follow,json=isFollow" json:"is_follow,omitempty"` // true-已关注,false-未关注
Avatar *string `protobuf:"bytes,6,opt,name=avatar" json:"avatar,omitempty"` //用户头像
BackgroundImage *string `protobuf:"bytes,7,opt,name=background_image,json=backgroundImage" json:"background_image,omitempty"` //用户个人页顶部大图
Signature *string `protobuf:"bytes,8,opt,name=signature" json:"signature,omitempty"` //个人简介
TotalFavorited *int64 `protobuf:"varint,9,opt,name=total_favorited,json=totalFavorited" json:"total_favorited,omitempty"` //获赞数量
WorkCount *int64 `protobuf:"varint,10,opt,name=work_count,json=workCount" json:"work_count,omitempty"` //作品数量
FavoriteCount *int64 `protobuf:"varint,11,opt,name=favorite_count,json=favoriteCount" json:"favorite_count,omitempty"` //点赞数量
// contains filtered or unexported fields
}
func (*User) Descriptor
deprecated
func (*User) GetBackgroundImage ¶
func (*User) GetFavoriteCount ¶
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
func (*User) GetSignature ¶
func (*User) GetTotalFavorited ¶
func (*User) GetWorkCount ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserRequest ¶
type UserRequest struct {
Id *int64 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` // 用户id
Token *string `protobuf:"bytes,2,req,name=token" json:"token,omitempty"` // 用户鉴权token
// contains filtered or unexported fields
}
func (*UserRequest) Descriptor
deprecated
func (*UserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserRequest.ProtoReflect.Descriptor instead.
func (*UserRequest) GetId ¶
func (x *UserRequest) GetId() int64
func (*UserRequest) GetToken ¶
func (x *UserRequest) GetToken() string
func (*UserRequest) ProtoMessage ¶
func (*UserRequest) ProtoMessage()
func (*UserRequest) ProtoReflect ¶
func (x *UserRequest) ProtoReflect() protoreflect.Message
func (*UserRequest) Reset ¶
func (x *UserRequest) Reset()
func (*UserRequest) String ¶
func (x *UserRequest) String() string
type UserResponse ¶
type UserResponse struct {
StatusCode *int32 `protobuf:"varint,1,req,name=status_code,json=statusCode" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败
StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty"` // 返回状态描述
User *User `protobuf:"bytes,3,req,name=user" json:"user,omitempty"` // 用户信息
// contains filtered or unexported fields
}
func (*UserResponse) Descriptor
deprecated
func (*UserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.
func (*UserResponse) GetStatusCode ¶
func (x *UserResponse) GetStatusCode() int32
func (*UserResponse) GetStatusMsg ¶
func (x *UserResponse) GetStatusMsg() string
func (*UserResponse) GetUser ¶
func (x *UserResponse) GetUser() *User
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) ProtoReflect ¶
func (x *UserResponse) ProtoReflect() protoreflect.Message
func (*UserResponse) Reset ¶
func (x *UserResponse) Reset()
func (*UserResponse) String ¶
func (x *UserResponse) String() string
type Video ¶
type Video struct {
Id *int64 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` // 视频唯一标识
Author *User `protobuf:"bytes,2,req,name=author" json:"author,omitempty"` // 视频作者信息
PlayUrl *string `protobuf:"bytes,3,req,name=play_url,json=playUrl" json:"play_url,omitempty"` // 视频播放地址
CoverUrl *string `protobuf:"bytes,4,req,name=cover_url,json=coverUrl" json:"cover_url,omitempty"` // 视频封面地址
FavoriteCount *int64 `protobuf:"varint,5,req,name=favorite_count,json=favoriteCount" json:"favorite_count,omitempty"` // 视频的点赞总数
CommentCount *int64 `protobuf:"varint,6,req,name=comment_count,json=commentCount" json:"comment_count,omitempty"` // 视频的评论总数
IsFavorite *bool `protobuf:"varint,7,req,name=is_favorite,json=isFavorite" json:"is_favorite,omitempty"` // true-已点赞,false-未点赞
Title *string `protobuf:"bytes,8,req,name=title" json:"title,omitempty"` // 视频标题
// contains filtered or unexported fields
}
func (*Video) Descriptor
deprecated
func (*Video) GetCommentCount ¶
func (*Video) GetCoverUrl ¶
func (*Video) GetFavoriteCount ¶
func (*Video) GetIsFavorite ¶
func (*Video) GetPlayUrl ¶
func (*Video) ProtoMessage ¶
func (*Video) ProtoMessage()
func (*Video) ProtoReflect ¶
func (x *Video) ProtoReflect() protoreflect.Message