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.User
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type CommentSrv
- type DouyinCommentActionRequest
- func (*DouyinCommentActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinCommentActionRequest) GetActionType() int32
- func (x *DouyinCommentActionRequest) GetCommentId() int64
- func (x *DouyinCommentActionRequest) GetCommentText() string
- func (x *DouyinCommentActionRequest) GetToken() string
- func (x *DouyinCommentActionRequest) GetUserId() int64
- func (x *DouyinCommentActionRequest) GetVideoId() int64
- func (*DouyinCommentActionRequest) ProtoMessage()
- func (x *DouyinCommentActionRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinCommentActionRequest) Reset()
- func (x *DouyinCommentActionRequest) String() string
- type DouyinCommentActionResponse
- func (*DouyinCommentActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinCommentActionResponse) GetComment() *Comment
- func (x *DouyinCommentActionResponse) GetStatusCode() int32
- func (x *DouyinCommentActionResponse) GetStatusMsg() string
- func (*DouyinCommentActionResponse) ProtoMessage()
- func (x *DouyinCommentActionResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinCommentActionResponse) Reset()
- func (x *DouyinCommentActionResponse) String() string
- type DouyinCommentListRequest
- func (*DouyinCommentListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinCommentListRequest) GetToken() string
- func (x *DouyinCommentListRequest) GetVideoId() int64
- func (*DouyinCommentListRequest) ProtoMessage()
- func (x *DouyinCommentListRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinCommentListRequest) Reset()
- func (x *DouyinCommentListRequest) String() string
- type DouyinCommentListResponse
- func (*DouyinCommentListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinCommentListResponse) GetCommentList() []*Comment
- func (x *DouyinCommentListResponse) GetStatusCode() int32
- func (x *DouyinCommentListResponse) GetStatusMsg() string
- func (*DouyinCommentListResponse) ProtoMessage()
- func (x *DouyinCommentListResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinCommentListResponse) Reset()
- func (x *DouyinCommentListResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_comment_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 视频评论id User *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 // 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 CommentSrv ¶
type CommentSrv interface { CommentAction(ctx context.Context, req *DouyinCommentActionRequest) (res *DouyinCommentActionResponse, err error) CommentList(ctx context.Context, req *DouyinCommentListRequest) (res *DouyinCommentListResponse, err error) }
type DouyinCommentActionRequest ¶
type DouyinCommentActionRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // 用户鉴权token VideoId int64 `protobuf:"varint,3,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id ActionType int32 `protobuf:"varint,4,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` // 1-发布评论,2-删除评论 CommentText *string `protobuf:"bytes,5,opt,name=comment_text,json=commentText,proto3,oneof" json:"comment_text,omitempty"` // 用户填写的评论内容,在action_type=1的时候使用 CommentId *int64 `protobuf:"varint,6,opt,name=comment_id,json=commentId,proto3,oneof" json:"comment_id,omitempty"` // 要删除的评论id,在action_type=2的时候使用 // contains filtered or unexported fields }
func (*DouyinCommentActionRequest) Descriptor
deprecated
func (*DouyinCommentActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinCommentActionRequest.ProtoReflect.Descriptor instead.
func (*DouyinCommentActionRequest) GetActionType ¶
func (x *DouyinCommentActionRequest) GetActionType() int32
func (*DouyinCommentActionRequest) GetCommentId ¶
func (x *DouyinCommentActionRequest) GetCommentId() int64
func (*DouyinCommentActionRequest) GetCommentText ¶
func (x *DouyinCommentActionRequest) GetCommentText() string
func (*DouyinCommentActionRequest) GetToken ¶
func (x *DouyinCommentActionRequest) GetToken() string
func (*DouyinCommentActionRequest) GetUserId ¶
func (x *DouyinCommentActionRequest) GetUserId() int64
func (*DouyinCommentActionRequest) GetVideoId ¶
func (x *DouyinCommentActionRequest) GetVideoId() int64
func (*DouyinCommentActionRequest) ProtoMessage ¶
func (*DouyinCommentActionRequest) ProtoMessage()
func (*DouyinCommentActionRequest) ProtoReflect ¶
func (x *DouyinCommentActionRequest) ProtoReflect() protoreflect.Message
func (*DouyinCommentActionRequest) Reset ¶
func (x *DouyinCommentActionRequest) Reset()
func (*DouyinCommentActionRequest) String ¶
func (x *DouyinCommentActionRequest) String() string
type DouyinCommentActionResponse ¶
type DouyinCommentActionResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败 StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3,oneof" json:"status_msg,omitempty"` // 返回状态描述 Comment *Comment `protobuf:"bytes,3,opt,name=comment,proto3,oneof" json:"comment,omitempty"` // 评论成功返回评论内容,不需要重新拉取整个列表 // contains filtered or unexported fields }
func (*DouyinCommentActionResponse) Descriptor
deprecated
func (*DouyinCommentActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinCommentActionResponse.ProtoReflect.Descriptor instead.
func (*DouyinCommentActionResponse) GetComment ¶
func (x *DouyinCommentActionResponse) GetComment() *Comment
func (*DouyinCommentActionResponse) GetStatusCode ¶
func (x *DouyinCommentActionResponse) GetStatusCode() int32
func (*DouyinCommentActionResponse) GetStatusMsg ¶
func (x *DouyinCommentActionResponse) GetStatusMsg() string
func (*DouyinCommentActionResponse) ProtoMessage ¶
func (*DouyinCommentActionResponse) ProtoMessage()
func (*DouyinCommentActionResponse) ProtoReflect ¶
func (x *DouyinCommentActionResponse) ProtoReflect() protoreflect.Message
func (*DouyinCommentActionResponse) Reset ¶
func (x *DouyinCommentActionResponse) Reset()
func (*DouyinCommentActionResponse) String ¶
func (x *DouyinCommentActionResponse) String() string
type DouyinCommentListRequest ¶
type DouyinCommentListRequest 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 (*DouyinCommentListRequest) Descriptor
deprecated
func (*DouyinCommentListRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinCommentListRequest.ProtoReflect.Descriptor instead.
func (*DouyinCommentListRequest) GetToken ¶
func (x *DouyinCommentListRequest) GetToken() string
func (*DouyinCommentListRequest) GetVideoId ¶
func (x *DouyinCommentListRequest) GetVideoId() int64
func (*DouyinCommentListRequest) ProtoMessage ¶
func (*DouyinCommentListRequest) ProtoMessage()
func (*DouyinCommentListRequest) ProtoReflect ¶
func (x *DouyinCommentListRequest) ProtoReflect() protoreflect.Message
func (*DouyinCommentListRequest) Reset ¶
func (x *DouyinCommentListRequest) Reset()
func (*DouyinCommentListRequest) String ¶
func (x *DouyinCommentListRequest) String() string
type DouyinCommentListResponse ¶
type DouyinCommentListResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败 StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3,oneof" json:"status_msg,omitempty"` // 返回状态描述 CommentList []*Comment `protobuf:"bytes,3,rep,name=comment_list,json=commentList,proto3" json:"comment_list,omitempty"` // 评论列表 // contains filtered or unexported fields }
func (*DouyinCommentListResponse) Descriptor
deprecated
func (*DouyinCommentListResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinCommentListResponse.ProtoReflect.Descriptor instead.
func (*DouyinCommentListResponse) GetCommentList ¶
func (x *DouyinCommentListResponse) GetCommentList() []*Comment
func (*DouyinCommentListResponse) GetStatusCode ¶
func (x *DouyinCommentListResponse) GetStatusCode() int32
func (*DouyinCommentListResponse) GetStatusMsg ¶
func (x *DouyinCommentListResponse) GetStatusMsg() string
func (*DouyinCommentListResponse) ProtoMessage ¶
func (*DouyinCommentListResponse) ProtoMessage()
func (*DouyinCommentListResponse) ProtoReflect ¶
func (x *DouyinCommentListResponse) ProtoReflect() protoreflect.Message
func (*DouyinCommentListResponse) Reset ¶
func (x *DouyinCommentListResponse) Reset()
func (*DouyinCommentListResponse) String ¶
func (x *DouyinCommentListResponse) String() string
Click to show internal directories.
Click to hide internal directories.