relation_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_relation_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 RPCCheckFollowReq

type RPCCheckFollowReq struct {
	FollowerId int64 `protobuf:"varint,1,opt,name=follower_id,json=followerId,proto3" json:"follower_id,omitempty"` //关注者id
	ToUserId   int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCCheckFollowReq) Descriptor deprecated

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

Deprecated: Use RPCCheckFollowReq.ProtoReflect.Descriptor instead.

func (*RPCCheckFollowReq) FastRead

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

func (*RPCCheckFollowReq) FastWrite

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

func (*RPCCheckFollowReq) GetFollowerId

func (x *RPCCheckFollowReq) GetFollowerId() int64

func (*RPCCheckFollowReq) GetToUserId

func (x *RPCCheckFollowReq) GetToUserId() int64

func (*RPCCheckFollowReq) ProtoMessage

func (*RPCCheckFollowReq) ProtoMessage()

func (*RPCCheckFollowReq) ProtoReflect

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

func (*RPCCheckFollowReq) Reset

func (x *RPCCheckFollowReq) Reset()

func (*RPCCheckFollowReq) Size

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

func (*RPCCheckFollowReq) String

func (x *RPCCheckFollowReq) String() string

type RPCCheckFollowResp

type RPCCheckFollowResp struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	IsFollow bool      `protobuf:"varint,2,opt,name=IsFollow,proto3" json:"IsFollow,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCCheckFollowResp) Descriptor deprecated

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

Deprecated: Use RPCCheckFollowResp.ProtoReflect.Descriptor instead.

func (*RPCCheckFollowResp) FastRead

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

func (*RPCCheckFollowResp) FastWrite

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

func (*RPCCheckFollowResp) GetBaseResp

func (x *RPCCheckFollowResp) GetBaseResp() *BaseResp

func (*RPCCheckFollowResp) GetIsFollow

func (x *RPCCheckFollowResp) GetIsFollow() bool

func (*RPCCheckFollowResp) ProtoMessage

func (*RPCCheckFollowResp) ProtoMessage()

func (*RPCCheckFollowResp) ProtoReflect

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

func (*RPCCheckFollowResp) Reset

func (x *RPCCheckFollowResp) Reset()

func (*RPCCheckFollowResp) Size

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

func (*RPCCheckFollowResp) String

func (x *RPCCheckFollowResp) String() string

type RPCRelationActionReq

type RPCRelationActionReq struct {
	ToUserId   int64 `protobuf:"varint,1,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"`
	FollowerId int64 `protobuf:"varint,2,opt,name=follower_id,json=followerId,proto3" json:"follower_id,omitempty"`
	ActionType int32 `protobuf:"varint,3,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCRelationActionReq) Descriptor deprecated

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

Deprecated: Use RPCRelationActionReq.ProtoReflect.Descriptor instead.

func (*RPCRelationActionReq) FastRead

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

func (*RPCRelationActionReq) FastWrite

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

func (*RPCRelationActionReq) GetActionType

func (x *RPCRelationActionReq) GetActionType() int32

func (*RPCRelationActionReq) GetFollowerId

func (x *RPCRelationActionReq) GetFollowerId() int64

func (*RPCRelationActionReq) GetToUserId

func (x *RPCRelationActionReq) GetToUserId() int64

func (*RPCRelationActionReq) ProtoMessage

func (*RPCRelationActionReq) ProtoMessage()

func (*RPCRelationActionReq) ProtoReflect

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

func (*RPCRelationActionReq) Reset

func (x *RPCRelationActionReq) Reset()

func (*RPCRelationActionReq) Size

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

func (*RPCRelationActionReq) String

func (x *RPCRelationActionReq) String() string

type RPCRelationActionResp

type RPCRelationActionResp struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCRelationActionResp) Descriptor deprecated

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

Deprecated: Use RPCRelationActionResp.ProtoReflect.Descriptor instead.

func (*RPCRelationActionResp) FastRead

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

func (*RPCRelationActionResp) FastWrite

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

func (*RPCRelationActionResp) GetBaseResp

func (x *RPCRelationActionResp) GetBaseResp() *BaseResp

func (*RPCRelationActionResp) ProtoMessage

func (*RPCRelationActionResp) ProtoMessage()

func (*RPCRelationActionResp) ProtoReflect

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

func (*RPCRelationActionResp) Reset

func (x *RPCRelationActionResp) Reset()

func (*RPCRelationActionResp) Size

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

func (*RPCRelationActionResp) String

func (x *RPCRelationActionResp) String() string

type RPCRelationFollowListReq

type RPCRelationFollowListReq struct {
	UserId     int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	FollowerId int64 `protobuf:"varint,2,opt,name=follower_id,json=followerId,proto3" json:"follower_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCRelationFollowListReq) Descriptor deprecated

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

Deprecated: Use RPCRelationFollowListReq.ProtoReflect.Descriptor instead.

func (*RPCRelationFollowListReq) FastRead

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

func (*RPCRelationFollowListReq) FastWrite

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

func (*RPCRelationFollowListReq) GetFollowerId

func (x *RPCRelationFollowListReq) GetFollowerId() int64

func (*RPCRelationFollowListReq) GetUserId

func (x *RPCRelationFollowListReq) GetUserId() int64

func (*RPCRelationFollowListReq) ProtoMessage

func (*RPCRelationFollowListReq) ProtoMessage()

func (*RPCRelationFollowListReq) ProtoReflect

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

func (*RPCRelationFollowListReq) Reset

func (x *RPCRelationFollowListReq) Reset()

func (*RPCRelationFollowListReq) Size

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

func (*RPCRelationFollowListReq) String

func (x *RPCRelationFollowListReq) String() string

type RPCRelationFollowListResp

type RPCRelationFollowListResp struct {
	BaseResp   *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	FollowList []*User   `protobuf:"bytes,2,rep,name=follow_list,json=followList,proto3" json:"follow_list,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCRelationFollowListResp) Descriptor deprecated

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

Deprecated: Use RPCRelationFollowListResp.ProtoReflect.Descriptor instead.

func (*RPCRelationFollowListResp) FastRead

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

func (*RPCRelationFollowListResp) FastWrite

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

func (*RPCRelationFollowListResp) GetBaseResp

func (x *RPCRelationFollowListResp) GetBaseResp() *BaseResp

func (*RPCRelationFollowListResp) GetFollowList

func (x *RPCRelationFollowListResp) GetFollowList() []*User

func (*RPCRelationFollowListResp) ProtoMessage

func (*RPCRelationFollowListResp) ProtoMessage()

func (*RPCRelationFollowListResp) ProtoReflect

func (*RPCRelationFollowListResp) Reset

func (x *RPCRelationFollowListResp) Reset()

func (*RPCRelationFollowListResp) Size

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

func (*RPCRelationFollowListResp) String

func (x *RPCRelationFollowListResp) String() string

type RPCRelationFollowerListReq

type RPCRelationFollowerListReq struct {
	UserId   int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ToUserId int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCRelationFollowerListReq) Descriptor deprecated

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

Deprecated: Use RPCRelationFollowerListReq.ProtoReflect.Descriptor instead.

func (*RPCRelationFollowerListReq) FastRead

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

func (*RPCRelationFollowerListReq) FastWrite

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

func (*RPCRelationFollowerListReq) GetToUserId

func (x *RPCRelationFollowerListReq) GetToUserId() int64

func (*RPCRelationFollowerListReq) GetUserId

func (x *RPCRelationFollowerListReq) GetUserId() int64

func (*RPCRelationFollowerListReq) ProtoMessage

func (*RPCRelationFollowerListReq) ProtoMessage()

func (*RPCRelationFollowerListReq) ProtoReflect

func (*RPCRelationFollowerListReq) Reset

func (x *RPCRelationFollowerListReq) Reset()

func (*RPCRelationFollowerListReq) Size

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

func (*RPCRelationFollowerListReq) String

func (x *RPCRelationFollowerListReq) String() string

type RPCRelationFollowerListResp

type RPCRelationFollowerListResp struct {
	BaseResp     *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	FollowerList []*User   `protobuf:"bytes,2,rep,name=follower_list,json=followerList,proto3" json:"follower_list,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCRelationFollowerListResp) Descriptor deprecated

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

Deprecated: Use RPCRelationFollowerListResp.ProtoReflect.Descriptor instead.

func (*RPCRelationFollowerListResp) FastRead

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

func (*RPCRelationFollowerListResp) FastWrite

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

func (*RPCRelationFollowerListResp) GetBaseResp

func (x *RPCRelationFollowerListResp) GetBaseResp() *BaseResp

func (*RPCRelationFollowerListResp) GetFollowerList

func (x *RPCRelationFollowerListResp) GetFollowerList() []*User

func (*RPCRelationFollowerListResp) ProtoMessage

func (*RPCRelationFollowerListResp) ProtoMessage()

func (*RPCRelationFollowerListResp) ProtoReflect

func (*RPCRelationFollowerListResp) Reset

func (x *RPCRelationFollowerListResp) Reset()

func (*RPCRelationFollowerListResp) Size

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

func (*RPCRelationFollowerListResp) String

func (x *RPCRelationFollowerListResp) String() string

type RelationService

type RelationService interface {
	Action(ctx context.Context, req *RPCRelationActionReq) (res *RPCRelationActionResp, err error)
	FollowList(ctx context.Context, req *RPCRelationFollowListReq) (res *RPCRelationFollowListResp, err error)
	FollowerList(ctx context.Context, req *RPCRelationFollowerListReq) (res *RPCRelationFollowerListResp, err error)
	CheckFollow(ctx context.Context, req *RPCCheckFollowReq) (res *RPCCheckFollowResp, err error)
}

type User

type User struct {
	Id            int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	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"`
	// 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