proto

package
v0.0.0-...-5bb5805 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterUserServer

func RegisterUserServer(s *grpc.Server, srv UserServer)

Types

type CheckResponse

type CheckResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckResponse) Descriptor deprecated

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

Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.

func (*CheckResponse) GetSuccess

func (x *CheckResponse) GetSuccess() bool

func (*CheckResponse) ProtoMessage

func (*CheckResponse) ProtoMessage()

func (*CheckResponse) ProtoReflect

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

func (*CheckResponse) Reset

func (x *CheckResponse) Reset()

func (*CheckResponse) String

func (x *CheckResponse) String() string

type CreateUserInfo

type CreateUserInfo struct {
	NickName string `protobuf:"bytes,1,opt,name=nickName,proto3" json:"nickName,omitempty"`
	PassWord string `protobuf:"bytes,2,opt,name=passWord,proto3" json:"passWord,omitempty"`
	Mobile   string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserInfo) Descriptor deprecated

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

Deprecated: Use CreateUserInfo.ProtoReflect.Descriptor instead.

func (*CreateUserInfo) GetMobile

func (x *CreateUserInfo) GetMobile() string

func (*CreateUserInfo) GetNickName

func (x *CreateUserInfo) GetNickName() string

func (*CreateUserInfo) GetPassWord

func (x *CreateUserInfo) GetPassWord() string

func (*CreateUserInfo) ProtoMessage

func (*CreateUserInfo) ProtoMessage()

func (*CreateUserInfo) ProtoReflect

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

func (*CreateUserInfo) Reset

func (x *CreateUserInfo) Reset()

func (*CreateUserInfo) String

func (x *CreateUserInfo) String() string

type IdRequest

type IdRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*IdRequest) Descriptor deprecated

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

Deprecated: Use IdRequest.ProtoReflect.Descriptor instead.

func (*IdRequest) GetId

func (x *IdRequest) GetId() int32

func (*IdRequest) ProtoMessage

func (*IdRequest) ProtoMessage()

func (*IdRequest) ProtoReflect

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

func (*IdRequest) Reset

func (x *IdRequest) Reset()

func (*IdRequest) String

func (x *IdRequest) String() string

type MobileRequest

type MobileRequest struct {
	Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"`
	// contains filtered or unexported fields
}

func (*MobileRequest) Descriptor deprecated

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

Deprecated: Use MobileRequest.ProtoReflect.Descriptor instead.

func (*MobileRequest) GetMobile

func (x *MobileRequest) GetMobile() string

func (*MobileRequest) ProtoMessage

func (*MobileRequest) ProtoMessage()

func (*MobileRequest) ProtoReflect

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

func (*MobileRequest) Reset

func (x *MobileRequest) Reset()

func (*MobileRequest) String

func (x *MobileRequest) String() string

type PageInfo

type PageInfo struct {
	Pn    uint32 `protobuf:"varint,1,opt,name=pn,proto3" json:"pn,omitempty"`
	PSize uint32 `protobuf:"varint,2,opt,name=pSize,proto3" json:"pSize,omitempty"`
	// contains filtered or unexported fields
}

func (*PageInfo) Descriptor deprecated

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

Deprecated: Use PageInfo.ProtoReflect.Descriptor instead.

func (*PageInfo) GetPSize

func (x *PageInfo) GetPSize() uint32

func (*PageInfo) GetPn

func (x *PageInfo) GetPn() uint32

func (*PageInfo) ProtoMessage

func (*PageInfo) ProtoMessage()

func (*PageInfo) ProtoReflect

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

func (*PageInfo) Reset

func (x *PageInfo) Reset()

func (*PageInfo) String

func (x *PageInfo) String() string

type PasswordCheckInfo

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

func (*PasswordCheckInfo) Descriptor deprecated

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

Deprecated: Use PasswordCheckInfo.ProtoReflect.Descriptor instead.

func (*PasswordCheckInfo) GetEncryptedPassword

func (x *PasswordCheckInfo) GetEncryptedPassword() string

func (*PasswordCheckInfo) GetPassword

func (x *PasswordCheckInfo) GetPassword() string

func (*PasswordCheckInfo) ProtoMessage

func (*PasswordCheckInfo) ProtoMessage()

func (*PasswordCheckInfo) ProtoReflect

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

func (*PasswordCheckInfo) Reset

func (x *PasswordCheckInfo) Reset()

func (*PasswordCheckInfo) String

func (x *PasswordCheckInfo) String() string

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServer) CheckPassword

func (*UnimplementedUserServer) CreateUser

func (*UnimplementedUserServer) GetUserById

func (*UnimplementedUserServer) GetUserByMobile

func (*UnimplementedUserServer) GetUserList

func (*UnimplementedUserServer) UpdateUser

type UpdateUserInfo

type UpdateUserInfo struct {
	Id       int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	NickName string `protobuf:"bytes,2,opt,name=nickName,proto3" json:"nickName,omitempty"`
	Gender   string `protobuf:"bytes,3,opt,name=gender,proto3" json:"gender,omitempty"`
	Birthday uint64 `protobuf:"varint,4,opt,name=birthday,proto3" json:"birthday,omitempty"` //timestamp
	// contains filtered or unexported fields
}

func (*UpdateUserInfo) Descriptor deprecated

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

Deprecated: Use UpdateUserInfo.ProtoReflect.Descriptor instead.

func (*UpdateUserInfo) GetBirthday

func (x *UpdateUserInfo) GetBirthday() uint64

func (*UpdateUserInfo) GetGender

func (x *UpdateUserInfo) GetGender() string

func (*UpdateUserInfo) GetId

func (x *UpdateUserInfo) GetId() int32

func (*UpdateUserInfo) GetNickName

func (x *UpdateUserInfo) GetNickName() string

func (*UpdateUserInfo) ProtoMessage

func (*UpdateUserInfo) ProtoMessage()

func (*UpdateUserInfo) ProtoReflect

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

func (*UpdateUserInfo) Reset

func (x *UpdateUserInfo) Reset()

func (*UpdateUserInfo) String

func (x *UpdateUserInfo) String() string

type UserClient

type UserClient interface {
	GetUserList(ctx context.Context, in *PageInfo, opts ...grpc.CallOption) (*UserListResponse, error)
	GetUserByMobile(ctx context.Context, in *MobileRequest, opts ...grpc.CallOption) (*UserInfoResponse, error)
	GetUserById(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*UserInfoResponse, error)
	CreateUser(ctx context.Context, in *CreateUserInfo, opts ...grpc.CallOption) (*UserInfoResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserInfo, opts ...grpc.CallOption) (*emptypb.Empty, error)
	CheckPassword(ctx context.Context, in *PasswordCheckInfo, opts ...grpc.CallOption) (*CheckResponse, error)
}

UserClient is the client API for User service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUserClient

func NewUserClient(cc grpc.ClientConnInterface) UserClient

type UserInfoResponse

type UserInfoResponse struct {
	Id       int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	PassWord string `protobuf:"bytes,2,opt,name=passWord,proto3" json:"passWord,omitempty"`
	Mobile   string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"`
	NickName string `protobuf:"bytes,4,opt,name=nickName,proto3" json:"nickName,omitempty"`
	BirthDay uint64 `protobuf:"varint,5,opt,name=birthDay,proto3" json:"birthDay,omitempty"`
	Gender   string `protobuf:"bytes,6,opt,name=gender,proto3" json:"gender,omitempty"`
	Role     int32  `protobuf:"varint,7,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfoResponse) Descriptor deprecated

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

Deprecated: Use UserInfoResponse.ProtoReflect.Descriptor instead.

func (*UserInfoResponse) GetBirthDay

func (x *UserInfoResponse) GetBirthDay() uint64

func (*UserInfoResponse) GetGender

func (x *UserInfoResponse) GetGender() string

func (*UserInfoResponse) GetId

func (x *UserInfoResponse) GetId() int32

func (*UserInfoResponse) GetMobile

func (x *UserInfoResponse) GetMobile() string

func (*UserInfoResponse) GetNickName

func (x *UserInfoResponse) GetNickName() string

func (*UserInfoResponse) GetPassWord

func (x *UserInfoResponse) GetPassWord() string

func (*UserInfoResponse) GetRole

func (x *UserInfoResponse) GetRole() int32

func (*UserInfoResponse) ProtoMessage

func (*UserInfoResponse) ProtoMessage()

func (*UserInfoResponse) ProtoReflect

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

func (*UserInfoResponse) Reset

func (x *UserInfoResponse) Reset()

func (*UserInfoResponse) String

func (x *UserInfoResponse) String() string

type UserListResponse

type UserListResponse struct {
	Data  []*UserInfoResponse `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	Total int32               `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*UserListResponse) Descriptor deprecated

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

Deprecated: Use UserListResponse.ProtoReflect.Descriptor instead.

func (*UserListResponse) GetData

func (x *UserListResponse) GetData() []*UserInfoResponse

func (*UserListResponse) GetTotal

func (x *UserListResponse) GetTotal() int32

func (*UserListResponse) ProtoMessage

func (*UserListResponse) ProtoMessage()

func (*UserListResponse) ProtoReflect

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

func (*UserListResponse) Reset

func (x *UserListResponse) Reset()

func (*UserListResponse) String

func (x *UserListResponse) String() string

type UserServer

UserServer is the server API for User service.

Jump to

Keyboard shortcuts

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