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 File_followaction_proto protoreflect.FileDescriptor
View Source
var FollowAction_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "douyin.extra.second.FollowAction",
	HandlerType: (*FollowActionServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FollowAction",
			Handler:    _FollowAction_FollowAction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "followaction.proto",
}

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

Functions

func RegisterFollowActionServer

func RegisterFollowActionServer(s grpc.ServiceRegistrar, srv FollowActionServer)

Types

type DouyinRelationActionRequest

type DouyinRelationActionRequest 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​
	ToUserId   *int64  `protobuf:"varint,3,req,name=to_user_id,json=toUserId" json:"to_user_id,omitempty"`     // 对方用户id​
	ActionType *int32  `protobuf:"varint,4,req,name=action_type,json=actionType" json:"action_type,omitempty"` // 1-关注,2-取消关注
	// contains filtered or unexported fields
}

func (*DouyinRelationActionRequest) Descriptor deprecated

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

Deprecated: Use DouyinRelationActionRequest.ProtoReflect.Descriptor instead.

func (*DouyinRelationActionRequest) GetActionType

func (x *DouyinRelationActionRequest) GetActionType() int32

func (*DouyinRelationActionRequest) GetToUserId

func (x *DouyinRelationActionRequest) GetToUserId() int64

func (*DouyinRelationActionRequest) GetToken

func (x *DouyinRelationActionRequest) GetToken() string

func (*DouyinRelationActionRequest) GetUserId

func (x *DouyinRelationActionRequest) GetUserId() int64

func (*DouyinRelationActionRequest) ProtoMessage

func (*DouyinRelationActionRequest) ProtoMessage()

func (*DouyinRelationActionRequest) ProtoReflect

func (*DouyinRelationActionRequest) Reset

func (x *DouyinRelationActionRequest) Reset()

func (*DouyinRelationActionRequest) String

func (x *DouyinRelationActionRequest) String() string

type DouyinRelationActionResponse

type DouyinRelationActionResponse 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"`     // 返回状态描述
	// contains filtered or unexported fields
}

func (*DouyinRelationActionResponse) Descriptor deprecated

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

Deprecated: Use DouyinRelationActionResponse.ProtoReflect.Descriptor instead.

func (*DouyinRelationActionResponse) GetStatusCode

func (x *DouyinRelationActionResponse) GetStatusCode() int32

func (*DouyinRelationActionResponse) GetStatusMsg

func (x *DouyinRelationActionResponse) GetStatusMsg() string

func (*DouyinRelationActionResponse) ProtoMessage

func (*DouyinRelationActionResponse) ProtoMessage()

func (*DouyinRelationActionResponse) ProtoReflect

func (*DouyinRelationActionResponse) Reset

func (x *DouyinRelationActionResponse) Reset()

func (*DouyinRelationActionResponse) String

type FollowActionClient

type FollowActionClient interface {
	FollowAction(ctx context.Context, in *DouyinRelationActionRequest, opts ...grpc.CallOption) (*DouyinRelationActionResponse, error)
}

FollowActionClient is the client API for FollowAction 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 FollowActionServer

type FollowActionServer interface {
	FollowAction(context.Context, *DouyinRelationActionRequest) (*DouyinRelationActionResponse, error)
	// contains filtered or unexported methods
}

FollowActionServer is the server API for FollowAction service. All implementations must embed UnimplementedFollowActionServer for forward compatibility

type UnimplementedFollowActionServer

type UnimplementedFollowActionServer struct {
}

UnimplementedFollowActionServer must be embedded to have forward compatible implementations.

type UnsafeFollowActionServer

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

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

Jump to

Keyboard shortcuts

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