Documentation
¶
Index ¶
- Variables
- type BaseResp
- func (*BaseResp) Descriptor() ([]byte, []int)deprecated
- func (x *BaseResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *BaseResp) FastWrite(buf []byte) (offset int)
- func (x *BaseResp) GetServiceTime() int64
- func (x *BaseResp) GetStatusCode() int32
- func (x *BaseResp) GetStatusMessage() string
- func (*BaseResp) ProtoMessage()
- func (x *BaseResp) ProtoReflect() protoreflect.Message
- func (x *BaseResp) Reset()
- func (x *BaseResp) Size() (n int)
- func (x *BaseResp) String() string
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *Comment) FastWrite(buf []byte) (offset int)
- func (x *Comment) GetContent() string
- func (x *Comment) GetCreateDate() string
- func (x *Comment) GetId() int64
- func (x *Comment) GetLikeCount() int64
- func (x *Comment) GetTeaseCount() int64
- func (x *Comment) GetUser() *User
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) Size() (n int)
- func (x *Comment) String() string
- type CommentListRequest
- func (*CommentListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommentListRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *CommentListRequest) FastWrite(buf []byte) (offset int)
- 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) Size() (n int)
- func (x *CommentListRequest) String() string
- type CommentListResponse
- func (*CommentListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommentListResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *CommentListResponse) FastWrite(buf []byte) (offset int)
- func (x *CommentListResponse) GetBaseResp() *BaseResp
- func (x *CommentListResponse) GetCommentList() []*Comment
- func (*CommentListResponse) ProtoMessage()
- func (x *CommentListResponse) ProtoReflect() protoreflect.Message
- func (x *CommentListResponse) Reset()
- func (x *CommentListResponse) Size() (n int)
- func (x *CommentListResponse) String() string
- type CommentService
- type CreateCommentRequest
- func (*CreateCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCommentRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *CreateCommentRequest) FastWrite(buf []byte) (offset int)
- func (x *CreateCommentRequest) GetCommentText() string
- func (x *CreateCommentRequest) GetToken() string
- func (x *CreateCommentRequest) GetVideoId() int64
- func (*CreateCommentRequest) ProtoMessage()
- func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCommentRequest) Reset()
- func (x *CreateCommentRequest) Size() (n int)
- func (x *CreateCommentRequest) String() string
- type CreateCommentResponse
- func (*CreateCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCommentResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *CreateCommentResponse) FastWrite(buf []byte) (offset int)
- func (x *CreateCommentResponse) GetBaseResp() *BaseResp
- func (x *CreateCommentResponse) GetComment() *Comment
- func (*CreateCommentResponse) ProtoMessage()
- func (x *CreateCommentResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCommentResponse) Reset()
- func (x *CreateCommentResponse) Size() (n int)
- func (x *CreateCommentResponse) String() string
- type DeleteCommentRequest
- func (*DeleteCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCommentRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DeleteCommentRequest) FastWrite(buf []byte) (offset int)
- func (x *DeleteCommentRequest) GetCommentId() int64
- func (x *DeleteCommentRequest) GetToken() string
- func (x *DeleteCommentRequest) GetVideoId() int64
- func (*DeleteCommentRequest) ProtoMessage()
- func (x *DeleteCommentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCommentRequest) Reset()
- func (x *DeleteCommentRequest) Size() (n int)
- func (x *DeleteCommentRequest) String() string
- type DeleteCommentResponse
- func (*DeleteCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCommentResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DeleteCommentResponse) FastWrite(buf []byte) (offset int)
- func (x *DeleteCommentResponse) GetBaseResp() *BaseResp
- func (x *DeleteCommentResponse) GetComment() *Comment
- func (*DeleteCommentResponse) ProtoMessage()
- func (x *DeleteCommentResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteCommentResponse) Reset()
- func (x *DeleteCommentResponse) Size() (n int)
- func (x *DeleteCommentResponse) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *User) FastWrite(buf []byte) (offset int)
- 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) Size() (n int)
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_idl_comment_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BaseResp ¶
type BaseResp struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` //状态码 StatusMessage string `protobuf:"bytes,2,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` //状态描述 ServiceTime int64 `protobuf:"varint,3,opt,name=service_time,json=serviceTime,proto3" json:"service_time,omitempty"` //服务时间 // contains filtered or unexported fields }
func (*BaseResp) Descriptor
deprecated
func (*BaseResp) GetServiceTime ¶
func (*BaseResp) GetStatusCode ¶
func (*BaseResp) GetStatusMessage ¶
func (*BaseResp) ProtoMessage ¶
func (*BaseResp) ProtoMessage()
func (*BaseResp) ProtoReflect ¶
func (x *BaseResp) ProtoReflect() protoreflect.Message
type Comment ¶
type Comment struct { 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数量 // contains filtered or unexported fields }
func (*Comment) Descriptor
deprecated
func (*Comment) GetContent ¶
func (*Comment) GetCreateDate ¶
func (*Comment) GetLikeCount ¶
func (*Comment) GetTeaseCount ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type CommentListRequest ¶
type CommentListRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` //用户鉴权token VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" 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) FastWrite ¶
func (x *CommentListRequest) FastWrite(buf []byte) (offset int)
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) Size ¶
func (x *CommentListRequest) Size() (n int)
func (*CommentListRequest) String ¶
func (x *CommentListRequest) String() string
type CommentListResponse ¶
type CommentListResponse struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` CommentList []*Comment `protobuf:"bytes,2,rep,name=comment_list,json=commentList,proto3" 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) FastWrite ¶
func (x *CommentListResponse) FastWrite(buf []byte) (offset int)
func (*CommentListResponse) GetBaseResp ¶
func (x *CommentListResponse) GetBaseResp() *BaseResp
func (*CommentListResponse) GetCommentList ¶
func (x *CommentListResponse) GetCommentList() []*Comment
func (*CommentListResponse) ProtoMessage ¶
func (*CommentListResponse) ProtoMessage()
func (*CommentListResponse) ProtoReflect ¶
func (x *CommentListResponse) ProtoReflect() protoreflect.Message
func (*CommentListResponse) Reset ¶
func (x *CommentListResponse) Reset()
func (*CommentListResponse) Size ¶
func (x *CommentListResponse) Size() (n int)
func (*CommentListResponse) String ¶
func (x *CommentListResponse) String() string
type CommentService ¶
type CommentService interface { CreateComment(ctx context.Context, req *CreateCommentRequest) (res *CreateCommentResponse, err error) DeleteComment(ctx context.Context, req *DeleteCommentRequest) (res *DeleteCommentResponse, err error) CommentList(ctx context.Context, req *CommentListRequest) (res *CommentListResponse, err error) }
type CreateCommentRequest ¶
type CreateCommentRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` //用户鉴权token VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` //视频id CommentText string `protobuf:"bytes,3,opt,name=comment_text,json=commentText,proto3" json:"comment_text,omitempty"` ////用户填写的评论内容 // contains filtered or unexported fields }
func (*CreateCommentRequest) Descriptor
deprecated
func (*CreateCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCommentRequest.ProtoReflect.Descriptor instead.
func (*CreateCommentRequest) FastWrite ¶
func (x *CreateCommentRequest) FastWrite(buf []byte) (offset int)
func (*CreateCommentRequest) GetCommentText ¶
func (x *CreateCommentRequest) GetCommentText() string
func (*CreateCommentRequest) GetToken ¶
func (x *CreateCommentRequest) GetToken() string
func (*CreateCommentRequest) GetVideoId ¶
func (x *CreateCommentRequest) GetVideoId() int64
func (*CreateCommentRequest) ProtoMessage ¶
func (*CreateCommentRequest) ProtoMessage()
func (*CreateCommentRequest) ProtoReflect ¶
func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message
func (*CreateCommentRequest) Reset ¶
func (x *CreateCommentRequest) Reset()
func (*CreateCommentRequest) Size ¶
func (x *CreateCommentRequest) Size() (n int)
func (*CreateCommentRequest) String ¶
func (x *CreateCommentRequest) String() string
type CreateCommentResponse ¶
type CreateCommentResponse struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` Comment *Comment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` //评论成功返回评论内容,不需要重新拉取整个列表 // contains filtered or unexported fields }
func (*CreateCommentResponse) Descriptor
deprecated
func (*CreateCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCommentResponse.ProtoReflect.Descriptor instead.
func (*CreateCommentResponse) FastWrite ¶
func (x *CreateCommentResponse) FastWrite(buf []byte) (offset int)
func (*CreateCommentResponse) GetBaseResp ¶
func (x *CreateCommentResponse) GetBaseResp() *BaseResp
func (*CreateCommentResponse) GetComment ¶
func (x *CreateCommentResponse) GetComment() *Comment
func (*CreateCommentResponse) ProtoMessage ¶
func (*CreateCommentResponse) ProtoMessage()
func (*CreateCommentResponse) ProtoReflect ¶
func (x *CreateCommentResponse) ProtoReflect() protoreflect.Message
func (*CreateCommentResponse) Reset ¶
func (x *CreateCommentResponse) Reset()
func (*CreateCommentResponse) Size ¶
func (x *CreateCommentResponse) Size() (n int)
func (*CreateCommentResponse) String ¶
func (x *CreateCommentResponse) String() string
type DeleteCommentRequest ¶
type DeleteCommentRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` //用户鉴权token VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` //视频id CommentId int64 `protobuf:"varint,3,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` //要删除的评论id // contains filtered or unexported fields }
func (*DeleteCommentRequest) Descriptor
deprecated
func (*DeleteCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCommentRequest.ProtoReflect.Descriptor instead.
func (*DeleteCommentRequest) FastWrite ¶
func (x *DeleteCommentRequest) FastWrite(buf []byte) (offset int)
func (*DeleteCommentRequest) GetCommentId ¶
func (x *DeleteCommentRequest) GetCommentId() int64
func (*DeleteCommentRequest) GetToken ¶
func (x *DeleteCommentRequest) GetToken() string
func (*DeleteCommentRequest) GetVideoId ¶
func (x *DeleteCommentRequest) GetVideoId() int64
func (*DeleteCommentRequest) ProtoMessage ¶
func (*DeleteCommentRequest) ProtoMessage()
func (*DeleteCommentRequest) ProtoReflect ¶
func (x *DeleteCommentRequest) ProtoReflect() protoreflect.Message
func (*DeleteCommentRequest) Reset ¶
func (x *DeleteCommentRequest) Reset()
func (*DeleteCommentRequest) Size ¶
func (x *DeleteCommentRequest) Size() (n int)
func (*DeleteCommentRequest) String ¶
func (x *DeleteCommentRequest) String() string
type DeleteCommentResponse ¶
type DeleteCommentResponse struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` Comment *Comment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` //评论成功返回评论内容,不需要重新拉取整个列表 // contains filtered or unexported fields }
func (*DeleteCommentResponse) Descriptor
deprecated
func (*DeleteCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCommentResponse.ProtoReflect.Descriptor instead.
func (*DeleteCommentResponse) FastWrite ¶
func (x *DeleteCommentResponse) FastWrite(buf []byte) (offset int)
func (*DeleteCommentResponse) GetBaseResp ¶
func (x *DeleteCommentResponse) GetBaseResp() *BaseResp
func (*DeleteCommentResponse) GetComment ¶
func (x *DeleteCommentResponse) GetComment() *Comment
func (*DeleteCommentResponse) ProtoMessage ¶
func (*DeleteCommentResponse) ProtoMessage()
func (*DeleteCommentResponse) ProtoReflect ¶
func (x *DeleteCommentResponse) ProtoReflect() protoreflect.Message
func (*DeleteCommentResponse) Reset ¶
func (x *DeleteCommentResponse) Reset()
func (*DeleteCommentResponse) Size ¶
func (x *DeleteCommentResponse) Size() (n int)
func (*DeleteCommentResponse) String ¶
func (x *DeleteCommentResponse) String() string
type User ¶
type User struct { 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"` // 用户头像 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"` // 点赞数量 // 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
Click to show internal directories.
Click to hide internal directories.