Documentation ¶
Index ¶
- Variables
- func RegisterFollowActionServer(s grpc.ServiceRegistrar, srv FollowActionServer)
- type DouyinRelationActionRequest
- func (*DouyinRelationActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinRelationActionRequest) GetActionType() int32
- func (x *DouyinRelationActionRequest) GetToUserId() int64
- func (x *DouyinRelationActionRequest) GetToken() string
- func (x *DouyinRelationActionRequest) GetUserId() int64
- func (*DouyinRelationActionRequest) ProtoMessage()
- func (x *DouyinRelationActionRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinRelationActionRequest) Reset()
- func (x *DouyinRelationActionRequest) String() string
- type DouyinRelationActionResponse
- func (*DouyinRelationActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinRelationActionResponse) GetStatusCode() int32
- func (x *DouyinRelationActionResponse) GetStatusMsg() string
- func (*DouyinRelationActionResponse) ProtoMessage()
- func (x *DouyinRelationActionResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinRelationActionResponse) Reset()
- func (x *DouyinRelationActionResponse) String() string
- type FollowActionClient
- type FollowActionServer
- type UnimplementedFollowActionServer
- type UnsafeFollowActionServer
Constants ¶
This section is empty.
Variables ¶
var File_followaction_proto protoreflect.FileDescriptor
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 (x *DouyinRelationActionRequest) ProtoReflect() protoreflect.Message
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 (x *DouyinRelationActionResponse) ProtoReflect() protoreflect.Message
func (*DouyinRelationActionResponse) Reset ¶
func (x *DouyinRelationActionResponse) Reset()
func (*DouyinRelationActionResponse) String ¶
func (x *DouyinRelationActionResponse) String() 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.
func NewFollowActionClient ¶
func NewFollowActionClient(cc grpc.ClientConnInterface) FollowActionClient
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.
func (UnimplementedFollowActionServer) FollowAction ¶
func (UnimplementedFollowActionServer) FollowAction(context.Context, *DouyinRelationActionRequest) (*DouyinRelationActionResponse, error)
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.