pb

package
v0.0.0-...-f1d9293 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommentAction_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "douyin.extra.first.comment_action",
	HandlerType: (*CommentActionServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "comment_action",
			Handler:    _CommentAction_CommentAction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "comment.proto",
}

CommentAction_ServiceDesc is the grpc.ServiceDesc for CommentAction service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var CommentList_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "douyin.extra.first.comment_list",
	HandlerType: (*CommentListServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "comment_list",
			Handler:    _CommentList_CommentList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "comment.proto",
}

CommentList_ServiceDesc is the grpc.ServiceDesc for CommentList service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_comment_proto protoreflect.FileDescriptor

Functions

func RegisterCommentActionServer

func RegisterCommentActionServer(s grpc.ServiceRegistrar, srv CommentActionServer)

func RegisterCommentListServer

func RegisterCommentListServer(s grpc.ServiceRegistrar, srv CommentListServer)

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

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

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

func (x *Comment) String() string

type CommentActionClient

type CommentActionClient interface {
	CommentAction(ctx context.Context, in *DouyinCommentActionRequest, opts ...grpc.CallOption) (*DouyinCommentAcitonResponse, error)
}

CommentActionClient is the client API for CommentAction service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CommentActionServer

type CommentActionServer interface {
	CommentAction(context.Context, *DouyinCommentActionRequest) (*DouyinCommentAcitonResponse, error)
	// contains filtered or unexported methods
}

CommentActionServer is the server API for CommentAction service. All implementations must embed UnimplementedCommentActionServer for forward compatibility

type CommentListClient

type CommentListClient interface {
	CommentList(ctx context.Context, in *DouyinCommentListRequest, opts ...grpc.CallOption) (*DouyinCommentListResponse, error)
}

CommentListClient is the client API for CommentList service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CommentListServer

type CommentListServer interface {
	CommentList(context.Context, *DouyinCommentListRequest) (*DouyinCommentListResponse, error)
	// contains filtered or unexported methods
}

CommentListServer is the server API for CommentList service. All implementations must embed UnimplementedCommentListServer for forward compatibility

type DouyinCommentAcitonResponse

type DouyinCommentAcitonResponse 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 (*DouyinCommentAcitonResponse) Descriptor deprecated

func (*DouyinCommentAcitonResponse) Descriptor() ([]byte, []int)

Deprecated: Use DouyinCommentAcitonResponse.ProtoReflect.Descriptor instead.

func (*DouyinCommentAcitonResponse) GetComment

func (x *DouyinCommentAcitonResponse) GetComment() *Comment

func (*DouyinCommentAcitonResponse) GetStatusCode

func (x *DouyinCommentAcitonResponse) GetStatusCode() int32

func (*DouyinCommentAcitonResponse) GetStatusMsg

func (x *DouyinCommentAcitonResponse) GetStatusMsg() string

func (*DouyinCommentAcitonResponse) ProtoMessage

func (*DouyinCommentAcitonResponse) ProtoMessage()

func (*DouyinCommentAcitonResponse) ProtoReflect

func (*DouyinCommentAcitonResponse) Reset

func (x *DouyinCommentAcitonResponse) Reset()

func (*DouyinCommentAcitonResponse) String

func (x *DouyinCommentAcitonResponse) String() string

type DouyinCommentActionRequest

type DouyinCommentActionRequest 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
	VideoId     *int64  `protobuf:"varint,3,req,name=video_id,json=videoId" json:"video_id,omitempty"`            //视频id
	ActionType  *int32  `protobuf:"varint,4,req,name=action_type,json=actionType" json:"action_type,omitempty"`   //1-发布评论,2-删除评论
	CommentText *string `protobuf:"bytes,5,opt,name=comment_text,json=commentText" json:"comment_text,omitempty"` //用户填写的评论内容
	CommentId   *int64  `protobuf:"varint,6,opt,name=comment_id,json=commentId" json:"comment_id,omitempty"`      //要删除的评论id
	// 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 (*DouyinCommentActionRequest) Reset

func (x *DouyinCommentActionRequest) Reset()

func (*DouyinCommentActionRequest) String

func (x *DouyinCommentActionRequest) String() string

type DouyinCommentListRequest

type DouyinCommentListRequest struct {
	Token   *string `protobuf:"bytes,1,req,name=token" json:"token,omitempty"`                     //用户鉴权toekn
	VideoId *int64  `protobuf:"varint,2,req,name=video_id,json=videoId" 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,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 (*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 (*DouyinCommentListResponse) Reset

func (x *DouyinCommentListResponse) Reset()

func (*DouyinCommentListResponse) String

func (x *DouyinCommentListResponse) String() string

type UnimplementedCommentActionServer

type UnimplementedCommentActionServer struct {
}

UnimplementedCommentActionServer must be embedded to have forward compatible implementations.

type UnimplementedCommentListServer

type UnimplementedCommentListServer struct {
}

UnimplementedCommentListServer must be embedded to have forward compatible implementations.

type UnsafeCommentActionServer

type UnsafeCommentActionServer interface {
	// contains filtered or unexported methods
}

UnsafeCommentActionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommentActionServer will result in compilation errors.

type UnsafeCommentListServer

type UnsafeCommentListServer interface {
	// contains filtered or unexported methods
}

UnsafeCommentListServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommentListServer will result in compilation errors.

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-未关注
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

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

func (x *User) String() string

Jump to

Keyboard shortcuts

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