comment_rpc

package
v0.0.0-...-48d44df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use BaseResp.ProtoReflect.Descriptor instead.

func (*BaseResp) FastRead

func (x *BaseResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*BaseResp) FastWrite

func (x *BaseResp) FastWrite(buf []byte) (offset int)

func (*BaseResp) GetServiceTime

func (x *BaseResp) GetServiceTime() int64

func (*BaseResp) GetStatusCode

func (x *BaseResp) GetStatusCode() int32

func (*BaseResp) GetStatusMessage

func (x *BaseResp) GetStatusMessage() string

func (*BaseResp) ProtoMessage

func (*BaseResp) ProtoMessage()

func (*BaseResp) ProtoReflect

func (x *BaseResp) ProtoReflect() protoreflect.Message

func (*BaseResp) Reset

func (x *BaseResp) Reset()

func (*BaseResp) Size

func (x *BaseResp) Size() (n int)

func (*BaseResp) String

func (x *BaseResp) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) FastRead

func (x *Comment) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Comment) FastWrite

func (x *Comment) FastWrite(buf []byte) (offset int)

func (*Comment) GetContent

func (x *Comment) GetContent() string

func (*Comment) GetCreateDate

func (x *Comment) GetCreateDate() string

func (*Comment) GetId

func (x *Comment) GetId() int64

func (*Comment) GetUser

func (x *Comment) GetUser() *User

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

func (x *Comment) ProtoReflect() protoreflect.Message

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) Size

func (x *Comment) Size() (n int)

func (*Comment) String

func (x *Comment) String() string

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) FastRead

func (x *RPCActionResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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) FastRead

func (x *RPCCommentCreateReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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) FastRead

func (x *RPCCommentDelReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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) FastRead

func (x *RPCCommentListReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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) FastRead

func (x *RPCCommentListResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) FastRead

func (x *User) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*User) FastWrite

func (x *User) FastWrite(buf []byte) (offset int)

func (*User) GetFollowCount

func (x *User) GetFollowCount() int64

func (*User) GetFollowerCount

func (x *User) GetFollowerCount() int64

func (*User) GetId

func (x *User) GetId() int64

func (*User) GetIsFollow

func (x *User) GetIsFollow() bool

func (*User) GetName

func (x *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) Size

func (x *User) Size() (n int)

func (*User) String

func (x *User) String() string

Directories

Path Synopsis
Code generated by Kitex v0.4.4.
Code generated by Kitex v0.4.4.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL