user

package
v0.0.0-...-d76b4c5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_rpc_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type LoginReq

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

func (*LoginReq) Descriptor deprecated

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

Deprecated: Use LoginReq.ProtoReflect.Descriptor instead.

func (*LoginReq) FastRead

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

func (*LoginReq) FastWrite

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

func (*LoginReq) GetEmail

func (x *LoginReq) GetEmail() string

func (*LoginReq) GetPassword

func (x *LoginReq) GetPassword() string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) ProtoReflect

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

func (*LoginReq) Reset

func (x *LoginReq) Reset()

func (*LoginReq) Size

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

func (*LoginReq) String

func (x *LoginReq) String() string

type LoginResp

type LoginResp struct {
	UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResp) Descriptor deprecated

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

Deprecated: Use LoginResp.ProtoReflect.Descriptor instead.

func (*LoginResp) FastRead

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

func (*LoginResp) FastWrite

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

func (*LoginResp) GetUserId

func (x *LoginResp) GetUserId() int32

func (*LoginResp) ProtoMessage

func (*LoginResp) ProtoMessage()

func (*LoginResp) ProtoReflect

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

func (*LoginResp) Reset

func (x *LoginResp) Reset()

func (*LoginResp) Size

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

func (*LoginResp) String

func (x *LoginResp) String() string

type RegisterReq

type RegisterReq struct {
	Email           string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password        string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	PasswordConfirm string `protobuf:"bytes,3,opt,name=password_confirm,json=passwordConfirm,proto3" json:"password_confirm,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterReq) Descriptor deprecated

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

Deprecated: Use RegisterReq.ProtoReflect.Descriptor instead.

func (*RegisterReq) FastRead

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

func (*RegisterReq) FastWrite

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

func (*RegisterReq) GetEmail

func (x *RegisterReq) GetEmail() string

func (*RegisterReq) GetPassword

func (x *RegisterReq) GetPassword() string

func (*RegisterReq) GetPasswordConfirm

func (x *RegisterReq) GetPasswordConfirm() string

func (*RegisterReq) ProtoMessage

func (*RegisterReq) ProtoMessage()

func (*RegisterReq) ProtoReflect

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

func (*RegisterReq) Reset

func (x *RegisterReq) Reset()

func (*RegisterReq) Size

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

func (*RegisterReq) String

func (x *RegisterReq) String() string

type RegisterResp

type RegisterResp struct {
	UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterResp) Descriptor deprecated

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

Deprecated: Use RegisterResp.ProtoReflect.Descriptor instead.

func (*RegisterResp) FastRead

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

func (*RegisterResp) FastWrite

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

func (*RegisterResp) GetUserId

func (x *RegisterResp) GetUserId() int32

func (*RegisterResp) ProtoMessage

func (*RegisterResp) ProtoMessage()

func (*RegisterResp) ProtoReflect

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

func (*RegisterResp) Reset

func (x *RegisterResp) Reset()

func (*RegisterResp) Size

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

func (*RegisterResp) String

func (x *RegisterResp) String() string

type UserService

type UserService interface {
	Register(ctx context.Context, req *RegisterReq) (res *RegisterResp, err error)
	Login(ctx context.Context, req *LoginReq) (res *LoginResp, err error)
}

Directories

Path Synopsis
Code generated by Kitex v0.9.1.
Code generated by Kitex v0.9.1.

Jump to

Keyboard shortcuts

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