user_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_user_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 RPCCheckUserReq

type RPCCheckUserReq struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCCheckUserReq) Descriptor deprecated

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

Deprecated: Use RPCCheckUserReq.ProtoReflect.Descriptor instead.

func (*RPCCheckUserReq) FastRead

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

func (*RPCCheckUserReq) FastWrite

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

func (*RPCCheckUserReq) GetPassword

func (x *RPCCheckUserReq) GetPassword() string

func (*RPCCheckUserReq) GetUsername

func (x *RPCCheckUserReq) GetUsername() string

func (*RPCCheckUserReq) ProtoMessage

func (*RPCCheckUserReq) ProtoMessage()

func (*RPCCheckUserReq) ProtoReflect

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

func (*RPCCheckUserReq) Reset

func (x *RPCCheckUserReq) Reset()

func (*RPCCheckUserReq) Size

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

func (*RPCCheckUserReq) String

func (x *RPCCheckUserReq) String() string

type RPCCheckUserResp

type RPCCheckUserResp struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	UserId   int64     `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCCheckUserResp) Descriptor deprecated

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

Deprecated: Use RPCCheckUserResp.ProtoReflect.Descriptor instead.

func (*RPCCheckUserResp) FastRead

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

func (*RPCCheckUserResp) FastWrite

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

func (*RPCCheckUserResp) GetBaseResp

func (x *RPCCheckUserResp) GetBaseResp() *BaseResp

func (*RPCCheckUserResp) GetUserId

func (x *RPCCheckUserResp) GetUserId() int64

func (*RPCCheckUserResp) ProtoMessage

func (*RPCCheckUserResp) ProtoMessage()

func (*RPCCheckUserResp) ProtoReflect

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

func (*RPCCheckUserResp) Reset

func (x *RPCCheckUserResp) Reset()

func (*RPCCheckUserResp) Size

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

func (*RPCCheckUserResp) String

func (x *RPCCheckUserResp) String() string

type RPCCreateUserReq

type RPCCreateUserReq struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCCreateUserReq) Descriptor deprecated

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

Deprecated: Use RPCCreateUserReq.ProtoReflect.Descriptor instead.

func (*RPCCreateUserReq) FastRead

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

func (*RPCCreateUserReq) FastWrite

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

func (*RPCCreateUserReq) GetPassword

func (x *RPCCreateUserReq) GetPassword() string

func (*RPCCreateUserReq) GetUsername

func (x *RPCCreateUserReq) GetUsername() string

func (*RPCCreateUserReq) ProtoMessage

func (*RPCCreateUserReq) ProtoMessage()

func (*RPCCreateUserReq) ProtoReflect

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

func (*RPCCreateUserReq) Reset

func (x *RPCCreateUserReq) Reset()

func (*RPCCreateUserReq) Size

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

func (*RPCCreateUserReq) String

func (x *RPCCreateUserReq) String() string

type RPCCreateUserResp

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

func (*RPCCreateUserResp) Descriptor deprecated

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

Deprecated: Use RPCCreateUserResp.ProtoReflect.Descriptor instead.

func (*RPCCreateUserResp) FastRead

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

func (*RPCCreateUserResp) FastWrite

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

func (*RPCCreateUserResp) GetBaseResp

func (x *RPCCreateUserResp) GetBaseResp() *BaseResp

func (*RPCCreateUserResp) ProtoMessage

func (*RPCCreateUserResp) ProtoMessage()

func (*RPCCreateUserResp) ProtoReflect

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

func (*RPCCreateUserResp) Reset

func (x *RPCCreateUserResp) Reset()

func (*RPCCreateUserResp) Size

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

func (*RPCCreateUserResp) String

func (x *RPCCreateUserResp) String() string

type RPCQueryUserReq

type RPCQueryUserReq struct {
	TargetUserId int64 `protobuf:"varint,1,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
	MyUserId     int64 `protobuf:"varint,2,opt,name=my_user_id,json=myUserId,proto3" json:"my_user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCQueryUserReq) Descriptor deprecated

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

Deprecated: Use RPCQueryUserReq.ProtoReflect.Descriptor instead.

func (*RPCQueryUserReq) FastRead

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

func (*RPCQueryUserReq) FastWrite

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

func (*RPCQueryUserReq) GetMyUserId

func (x *RPCQueryUserReq) GetMyUserId() int64

func (*RPCQueryUserReq) GetTargetUserId

func (x *RPCQueryUserReq) GetTargetUserId() int64

func (*RPCQueryUserReq) ProtoMessage

func (*RPCQueryUserReq) ProtoMessage()

func (*RPCQueryUserReq) ProtoReflect

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

func (*RPCQueryUserReq) Reset

func (x *RPCQueryUserReq) Reset()

func (*RPCQueryUserReq) Size

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

func (*RPCQueryUserReq) String

func (x *RPCQueryUserReq) String() string

type RPCQueryUserResp

type RPCQueryUserResp struct {
	BaseResp      *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	Id            int64     `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`                                            // 用户id
	Name          string    `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`                                         // 用户名称
	FollowCount   int64     `protobuf:"varint,4,opt,name=follow_count,json=followCount,proto3" json:"follow_count,omitempty"`       // 关注总数
	FollowerCount int64     `protobuf:"varint,5,opt,name=follower_count,json=followerCount,proto3" json:"follower_count,omitempty"` // 粉丝总数
	IsFollow      bool      `protobuf:"varint,6,opt,name=isFollow,proto3" json:"isFollow,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCQueryUserResp) Descriptor deprecated

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

Deprecated: Use RPCQueryUserResp.ProtoReflect.Descriptor instead.

func (*RPCQueryUserResp) FastRead

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

func (*RPCQueryUserResp) FastWrite

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

func (*RPCQueryUserResp) GetBaseResp

func (x *RPCQueryUserResp) GetBaseResp() *BaseResp

func (*RPCQueryUserResp) GetFollowCount

func (x *RPCQueryUserResp) GetFollowCount() int64

func (*RPCQueryUserResp) GetFollowerCount

func (x *RPCQueryUserResp) GetFollowerCount() int64

func (*RPCQueryUserResp) GetId

func (x *RPCQueryUserResp) GetId() int64

func (*RPCQueryUserResp) GetIsFollow

func (x *RPCQueryUserResp) GetIsFollow() bool

func (*RPCQueryUserResp) GetName

func (x *RPCQueryUserResp) GetName() string

func (*RPCQueryUserResp) ProtoMessage

func (*RPCQueryUserResp) ProtoMessage()

func (*RPCQueryUserResp) ProtoReflect

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

func (*RPCQueryUserResp) Reset

func (x *RPCQueryUserResp) Reset()

func (*RPCQueryUserResp) Size

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

func (*RPCQueryUserResp) String

func (x *RPCQueryUserResp) String() string

type UserService

type UserService interface {
	CreateUser(ctx context.Context, req *RPCCreateUserReq) (res *RPCCreateUserResp, err error)
	CheckUser(ctx context.Context, req *RPCCheckUserReq) (res *RPCCheckUserResp, err error)
	QueryUser(ctx context.Context, req *RPCQueryUserReq) (res *RPCQueryUserResp, err error)
}

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