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) 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 CommentService
- type RPCActionResp
- func (*RPCActionResp) Descriptor() ([]byte, []int)deprecated
- func (x *RPCActionResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RPCActionResp) FastWrite(buf []byte) (offset int)
- func (x *RPCActionResp) GetBaseResp() *BaseResp
- func (x *RPCActionResp) GetComment() *Comment
- func (*RPCActionResp) ProtoMessage()
- func (x *RPCActionResp) ProtoReflect() protoreflect.Message
- func (x *RPCActionResp) Reset()
- func (x *RPCActionResp) Size() (n int)
- func (x *RPCActionResp) String() string
- type RPCCommentCreateReq
- func (*RPCCommentCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *RPCCommentCreateReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RPCCommentCreateReq) FastWrite(buf []byte) (offset int)
- func (x *RPCCommentCreateReq) GetCommentText() string
- func (x *RPCCommentCreateReq) GetUserId() int64
- func (x *RPCCommentCreateReq) GetVideoId() int64
- func (*RPCCommentCreateReq) ProtoMessage()
- func (x *RPCCommentCreateReq) ProtoReflect() protoreflect.Message
- func (x *RPCCommentCreateReq) Reset()
- func (x *RPCCommentCreateReq) Size() (n int)
- func (x *RPCCommentCreateReq) String() string
- type RPCCommentDelReq
- func (*RPCCommentDelReq) Descriptor() ([]byte, []int)deprecated
- func (x *RPCCommentDelReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RPCCommentDelReq) FastWrite(buf []byte) (offset int)
- func (x *RPCCommentDelReq) GetCommentId() int64
- func (x *RPCCommentDelReq) GetUserId() int64
- func (x *RPCCommentDelReq) GetVideoId() int64
- func (*RPCCommentDelReq) ProtoMessage()
- func (x *RPCCommentDelReq) ProtoReflect() protoreflect.Message
- func (x *RPCCommentDelReq) Reset()
- func (x *RPCCommentDelReq) Size() (n int)
- func (x *RPCCommentDelReq) String() string
- type RPCCommentListReq
- func (*RPCCommentListReq) Descriptor() ([]byte, []int)deprecated
- func (x *RPCCommentListReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RPCCommentListReq) FastWrite(buf []byte) (offset int)
- func (x *RPCCommentListReq) GetUserId() int64
- func (x *RPCCommentListReq) GetVideoId() int64
- func (*RPCCommentListReq) ProtoMessage()
- func (x *RPCCommentListReq) ProtoReflect() protoreflect.Message
- func (x *RPCCommentListReq) Reset()
- func (x *RPCCommentListReq) Size() (n int)
- func (x *RPCCommentListReq) String() string
- type RPCCommentListResp
- func (*RPCCommentListResp) Descriptor() ([]byte, []int)deprecated
- func (x *RPCCommentListResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RPCCommentListResp) FastWrite(buf []byte) (offset int)
- func (x *RPCCommentListResp) GetBaseResp() *BaseResp
- func (x *RPCCommentListResp) GetCommentList() []*Comment
- func (*RPCCommentListResp) ProtoMessage()
- func (x *RPCCommentListResp) ProtoReflect() protoreflect.Message
- func (x *RPCCommentListResp) Reset()
- func (x *RPCCommentListResp) Size() (n int)
- func (x *RPCCommentListResp) 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) GetFollowCount() int64
- func (x *User) GetFollowerCount() int64
- func (x *User) GetId() int64
- func (x *User) GetIsFollow() bool
- func (x *User) GetName() string
- 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_comment_rpc_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"` 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"` // 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 CommentService ¶
type CommentService interface { CreateComment(ctx context.Context, req *RPCCommentCreateReq) (res *RPCActionResp, err error) DelComment(ctx context.Context, req *RPCCommentDelReq) (res *RPCActionResp, err error) CommentList(ctx context.Context, req *RPCCommentListReq) (res *RPCCommentListResp, err error) }
type RPCActionResp ¶
type RPCActionResp 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 (*RPCActionResp) Descriptor
deprecated
func (*RPCActionResp) Descriptor() ([]byte, []int)
Deprecated: Use RPCActionResp.ProtoReflect.Descriptor instead.
func (*RPCActionResp) FastWrite ¶
func (x *RPCActionResp) FastWrite(buf []byte) (offset int)
func (*RPCActionResp) GetBaseResp ¶
func (x *RPCActionResp) GetBaseResp() *BaseResp
func (*RPCActionResp) GetComment ¶
func (x *RPCActionResp) GetComment() *Comment
func (*RPCActionResp) ProtoMessage ¶
func (*RPCActionResp) ProtoMessage()
func (*RPCActionResp) ProtoReflect ¶
func (x *RPCActionResp) ProtoReflect() protoreflect.Message
func (*RPCActionResp) Reset ¶
func (x *RPCActionResp) Reset()
func (*RPCActionResp) Size ¶
func (x *RPCActionResp) Size() (n int)
func (*RPCActionResp) String ¶
func (x *RPCActionResp) String() string
type RPCCommentCreateReq ¶
type RPCCommentCreateReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` CommentText string `protobuf:"bytes,3,opt,name=comment_text,json=commentText,proto3" json:"comment_text,omitempty"` // contains filtered or unexported fields }
func (*RPCCommentCreateReq) Descriptor
deprecated
func (*RPCCommentCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use RPCCommentCreateReq.ProtoReflect.Descriptor instead.
func (*RPCCommentCreateReq) FastWrite ¶
func (x *RPCCommentCreateReq) FastWrite(buf []byte) (offset int)
func (*RPCCommentCreateReq) GetCommentText ¶
func (x *RPCCommentCreateReq) GetCommentText() string
func (*RPCCommentCreateReq) GetUserId ¶
func (x *RPCCommentCreateReq) GetUserId() int64
func (*RPCCommentCreateReq) GetVideoId ¶
func (x *RPCCommentCreateReq) GetVideoId() int64
func (*RPCCommentCreateReq) ProtoMessage ¶
func (*RPCCommentCreateReq) ProtoMessage()
func (*RPCCommentCreateReq) ProtoReflect ¶
func (x *RPCCommentCreateReq) ProtoReflect() protoreflect.Message
func (*RPCCommentCreateReq) Reset ¶
func (x *RPCCommentCreateReq) Reset()
func (*RPCCommentCreateReq) Size ¶
func (x *RPCCommentCreateReq) Size() (n int)
func (*RPCCommentCreateReq) String ¶
func (x *RPCCommentCreateReq) String() string
type RPCCommentDelReq ¶
type RPCCommentDelReq struct { CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` VideoId int64 `protobuf:"varint,3,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // contains filtered or unexported fields }
func (*RPCCommentDelReq) Descriptor
deprecated
func (*RPCCommentDelReq) Descriptor() ([]byte, []int)
Deprecated: Use RPCCommentDelReq.ProtoReflect.Descriptor instead.
func (*RPCCommentDelReq) FastWrite ¶
func (x *RPCCommentDelReq) FastWrite(buf []byte) (offset int)
func (*RPCCommentDelReq) GetCommentId ¶
func (x *RPCCommentDelReq) GetCommentId() int64
func (*RPCCommentDelReq) GetUserId ¶
func (x *RPCCommentDelReq) GetUserId() int64
func (*RPCCommentDelReq) GetVideoId ¶
func (x *RPCCommentDelReq) GetVideoId() int64
func (*RPCCommentDelReq) ProtoMessage ¶
func (*RPCCommentDelReq) ProtoMessage()
func (*RPCCommentDelReq) ProtoReflect ¶
func (x *RPCCommentDelReq) ProtoReflect() protoreflect.Message
func (*RPCCommentDelReq) Reset ¶
func (x *RPCCommentDelReq) Reset()
func (*RPCCommentDelReq) Size ¶
func (x *RPCCommentDelReq) Size() (n int)
func (*RPCCommentDelReq) String ¶
func (x *RPCCommentDelReq) String() string
type RPCCommentListReq ¶
type RPCCommentListReq struct { VideoId int64 `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*RPCCommentListReq) Descriptor
deprecated
func (*RPCCommentListReq) Descriptor() ([]byte, []int)
Deprecated: Use RPCCommentListReq.ProtoReflect.Descriptor instead.
func (*RPCCommentListReq) FastWrite ¶
func (x *RPCCommentListReq) FastWrite(buf []byte) (offset int)
func (*RPCCommentListReq) GetUserId ¶
func (x *RPCCommentListReq) GetUserId() int64
func (*RPCCommentListReq) GetVideoId ¶
func (x *RPCCommentListReq) GetVideoId() int64
func (*RPCCommentListReq) ProtoMessage ¶
func (*RPCCommentListReq) ProtoMessage()
func (*RPCCommentListReq) ProtoReflect ¶
func (x *RPCCommentListReq) ProtoReflect() protoreflect.Message
func (*RPCCommentListReq) Reset ¶
func (x *RPCCommentListReq) Reset()
func (*RPCCommentListReq) Size ¶
func (x *RPCCommentListReq) Size() (n int)
func (*RPCCommentListReq) String ¶
func (x *RPCCommentListReq) String() string
type RPCCommentListResp ¶
type RPCCommentListResp 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 (*RPCCommentListResp) Descriptor
deprecated
func (*RPCCommentListResp) Descriptor() ([]byte, []int)
Deprecated: Use RPCCommentListResp.ProtoReflect.Descriptor instead.
func (*RPCCommentListResp) FastWrite ¶
func (x *RPCCommentListResp) FastWrite(buf []byte) (offset int)
func (*RPCCommentListResp) GetBaseResp ¶
func (x *RPCCommentListResp) GetBaseResp() *BaseResp
func (*RPCCommentListResp) GetCommentList ¶
func (x *RPCCommentListResp) GetCommentList() []*Comment
func (*RPCCommentListResp) ProtoMessage ¶
func (*RPCCommentListResp) ProtoMessage()
func (*RPCCommentListResp) ProtoReflect ¶
func (x *RPCCommentListResp) ProtoReflect() protoreflect.Message
func (*RPCCommentListResp) Reset ¶
func (x *RPCCommentListResp) Reset()
func (*RPCCommentListResp) Size ¶
func (x *RPCCommentListResp) Size() (n int)
func (*RPCCommentListResp) String ¶
func (x *RPCCommentListResp) 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-未关注 // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
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.