v1

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	User_CreateUser_FullMethodName            = "/api.system.v1.User/CreateUser"
	User_UpdateUser_FullMethodName            = "/api.system.v1.User/UpdateUser"
	User_UpdateUserPassword_FullMethodName    = "/api.system.v1.User/UpdateUserPassword"
	User_UpdateUserTelephone_FullMethodName   = "/api.system.v1.User/UpdateUserTelephone"
	User_GetUser_FullMethodName               = "/api.system.v1.User/GetUser"
	User_ListUser_FullMethodName              = "/api.system.v1.User/ListUser"
	User_Login_FullMethodName                 = "/api.system.v1.User/Login"
	User_LoginWithValidateCode_FullMethodName = "/api.system.v1.User/LoginWithValidateCode"
	User_SendValidateCode_FullMethodName      = "/api.system.v1.User/SendValidateCode"
)
View Source
const OperationUserCreateUser = "/api.system.v1.User/CreateUser"
View Source
const OperationUserGetUser = "/api.system.v1.User/GetUser"
View Source
const OperationUserListUser = "/api.system.v1.User/ListUser"
View Source
const OperationUserLogin = "/api.system.v1.User/Login"
View Source
const OperationUserLoginWithValidateCode = "/api.system.v1.User/LoginWithValidateCode"
View Source
const OperationUserSendValidateCode = "/api.system.v1.User/SendValidateCode"
View Source
const OperationUserUpdateUser = "/api.system.v1.User/UpdateUser"
View Source
const OperationUserUpdateUserPassword = "/api.system.v1.User/UpdateUserPassword"
View Source
const OperationUserUpdateUserTelephone = "/api.system.v1.User/UpdateUserTelephone"

Variables

View Source
var File_system_v1_user_proto protoreflect.FileDescriptor
View Source
var User_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.system.v1.User",
	HandlerType: (*UserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _User_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _User_UpdateUser_Handler,
		},
		{
			MethodName: "UpdateUserPassword",
			Handler:    _User_UpdateUserPassword_Handler,
		},
		{
			MethodName: "UpdateUserTelephone",
			Handler:    _User_UpdateUserTelephone_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _User_GetUser_Handler,
		},
		{
			MethodName: "ListUser",
			Handler:    _User_ListUser_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _User_Login_Handler,
		},
		{
			MethodName: "LoginWithValidateCode",
			Handler:    _User_LoginWithValidateCode_Handler,
		},
		{
			MethodName: "SendValidateCode",
			Handler:    _User_SendValidateCode_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "system/v1/user.proto",
}

User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterUserHTTPServer

func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

type CreateUserReply

type CreateUserReply struct {
	Code    int32                 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string                `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *CreateUserReply_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserReply) Descriptor deprecated

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

Deprecated: Use CreateUserReply.ProtoReflect.Descriptor instead.

func (*CreateUserReply) GetCode added in v0.0.3

func (x *CreateUserReply) GetCode() int32

func (*CreateUserReply) GetData added in v0.0.3

func (x *CreateUserReply) GetData() *CreateUserReply_Data

func (*CreateUserReply) GetMessage added in v0.0.3

func (x *CreateUserReply) GetMessage() string

func (*CreateUserReply) ProtoMessage

func (*CreateUserReply) ProtoMessage()

func (*CreateUserReply) ProtoReflect

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

func (*CreateUserReply) Reset

func (x *CreateUserReply) Reset()

func (*CreateUserReply) String

func (x *CreateUserReply) String() string

type CreateUserReply_Data added in v0.0.3

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

func (*CreateUserReply_Data) Descriptor deprecated added in v0.0.3

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

Deprecated: Use CreateUserReply_Data.ProtoReflect.Descriptor instead.

func (*CreateUserReply_Data) GetId added in v0.0.3

func (x *CreateUserReply_Data) GetId() string

func (*CreateUserReply_Data) ProtoMessage added in v0.0.3

func (*CreateUserReply_Data) ProtoMessage()

func (*CreateUserReply_Data) ProtoReflect added in v0.0.3

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

func (*CreateUserReply_Data) Reset added in v0.0.3

func (x *CreateUserReply_Data) Reset()

func (*CreateUserReply_Data) String added in v0.0.3

func (x *CreateUserReply_Data) String() string

type CreateUserRequest

type CreateUserRequest struct {
	CountryCallCoding string `protobuf:"bytes,1,opt,name=country_call_coding,json=countryCallCoding,proto3" json:"country_call_coding,omitempty"`
	TelephoneNumber   string `protobuf:"bytes,2,opt,name=telephone_number,json=telephoneNumber,proto3" json:"telephone_number,omitempty"`
	Password          string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	ValidateCode      string `protobuf:"bytes,4,opt,name=validate_code,json=validateCode,proto3" json:"validate_code,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetCountryCallCoding

func (x *CreateUserRequest) GetCountryCallCoding() string

func (*CreateUserRequest) GetPassword

func (x *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) GetTelephoneNumber

func (x *CreateUserRequest) GetTelephoneNumber() string

func (*CreateUserRequest) GetValidateCode

func (x *CreateUserRequest) GetValidateCode() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type DeleteUserReply

type DeleteUserReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserReply) Descriptor deprecated

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

Deprecated: Use DeleteUserReply.ProtoReflect.Descriptor instead.

func (*DeleteUserReply) GetCode added in v0.0.3

func (x *DeleteUserReply) GetCode() int32

func (*DeleteUserReply) GetMessage added in v0.0.3

func (x *DeleteUserReply) GetMessage() string

func (*DeleteUserReply) ProtoMessage

func (*DeleteUserReply) ProtoMessage()

func (*DeleteUserReply) ProtoReflect

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

func (*DeleteUserReply) Reset

func (x *DeleteUserReply) Reset()

func (*DeleteUserReply) String

func (x *DeleteUserReply) String() string

type DeleteUserRequest

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

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId

func (x *DeleteUserRequest) GetId() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type GetUserReply

type GetUserReply struct {
	Code    int32      `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *UserReply `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserReply) Descriptor deprecated

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

Deprecated: Use GetUserReply.ProtoReflect.Descriptor instead.

func (*GetUserReply) GetCode added in v0.0.3

func (x *GetUserReply) GetCode() int32

func (*GetUserReply) GetData added in v0.0.3

func (x *GetUserReply) GetData() *UserReply

func (*GetUserReply) GetMessage added in v0.0.3

func (x *GetUserReply) GetMessage() string

func (*GetUserReply) ProtoMessage

func (*GetUserReply) ProtoMessage()

func (*GetUserReply) ProtoReflect

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

func (*GetUserReply) Reset

func (x *GetUserReply) Reset()

func (*GetUserReply) String

func (x *GetUserReply) String() string

type GetUserRequest

type GetUserRequest struct {
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type ListUserReply

type ListUserReply struct {
	Code    int32        `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*UserReply `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserReply) Descriptor deprecated

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

Deprecated: Use ListUserReply.ProtoReflect.Descriptor instead.

func (*ListUserReply) GetCode added in v0.0.3

func (x *ListUserReply) GetCode() int32

func (*ListUserReply) GetData added in v0.0.3

func (x *ListUserReply) GetData() []*UserReply

func (*ListUserReply) GetMessage added in v0.0.3

func (x *ListUserReply) GetMessage() string

func (*ListUserReply) ProtoMessage

func (*ListUserReply) ProtoMessage()

func (*ListUserReply) ProtoReflect

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

func (*ListUserReply) Reset

func (x *ListUserReply) Reset()

func (*ListUserReply) String

func (x *ListUserReply) String() string

type ListUserRequest

type ListUserRequest struct {
	CountryCallCoding *string `protobuf:"bytes,1,opt,name=country_call_coding,json=countryCallCoding,proto3,oneof" json:"country_call_coding,omitempty"`
	TelephoneNumber   *string `protobuf:"bytes,2,opt,name=telephone_number,json=telephoneNumber,proto3,oneof" json:"telephone_number,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserRequest) Descriptor deprecated

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

Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.

func (*ListUserRequest) GetCountryCallCoding

func (x *ListUserRequest) GetCountryCallCoding() string

func (*ListUserRequest) GetTelephoneNumber

func (x *ListUserRequest) GetTelephoneNumber() string

func (*ListUserRequest) ProtoMessage

func (*ListUserRequest) ProtoMessage()

func (*ListUserRequest) ProtoReflect

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

func (*ListUserRequest) Reset

func (x *ListUserRequest) Reset()

func (*ListUserRequest) String

func (x *ListUserRequest) String() string

type LoginReply

type LoginReply struct {
	Code    int32            `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string           `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *LoginReply_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginReply) Descriptor deprecated

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

Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.

func (*LoginReply) GetCode added in v0.0.3

func (x *LoginReply) GetCode() int32

func (*LoginReply) GetData added in v0.0.3

func (x *LoginReply) GetData() *LoginReply_Data

func (*LoginReply) GetMessage added in v0.0.3

func (x *LoginReply) GetMessage() string

func (*LoginReply) ProtoMessage

func (*LoginReply) ProtoMessage()

func (*LoginReply) ProtoReflect

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

func (*LoginReply) Reset

func (x *LoginReply) Reset()

func (*LoginReply) String

func (x *LoginReply) String() string

type LoginReply_Data added in v0.0.3

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

func (*LoginReply_Data) Descriptor deprecated added in v0.0.3

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

Deprecated: Use LoginReply_Data.ProtoReflect.Descriptor instead.

func (*LoginReply_Data) GetToken added in v0.0.3

func (x *LoginReply_Data) GetToken() string

func (*LoginReply_Data) ProtoMessage added in v0.0.3

func (*LoginReply_Data) ProtoMessage()

func (*LoginReply_Data) ProtoReflect added in v0.0.3

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

func (*LoginReply_Data) Reset added in v0.0.3

func (x *LoginReply_Data) Reset()

func (*LoginReply_Data) String added in v0.0.3

func (x *LoginReply_Data) String() string

type LoginRequest

type LoginRequest struct {
	CountryCallCoding string `protobuf:"bytes,1,opt,name=country_call_coding,json=countryCallCoding,proto3" json:"country_call_coding,omitempty"`
	TelephoneNumber   string `protobuf:"bytes,2,opt,name=telephone_number,json=telephoneNumber,proto3" json:"telephone_number,omitempty"`
	Password          string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetCountryCallCoding

func (x *LoginRequest) GetCountryCallCoding() string

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetTelephoneNumber

func (x *LoginRequest) GetTelephoneNumber() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginWithValidateCodeRequest

type LoginWithValidateCodeRequest struct {
	CountryCallCoding string `protobuf:"bytes,1,opt,name=country_call_coding,json=countryCallCoding,proto3" json:"country_call_coding,omitempty"`
	TelephoneNumber   string `protobuf:"bytes,2,opt,name=telephone_number,json=telephoneNumber,proto3" json:"telephone_number,omitempty"`
	ValidateCode      string `protobuf:"bytes,3,opt,name=validate_code,json=validateCode,proto3" json:"validate_code,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginWithValidateCodeRequest) Descriptor deprecated

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

Deprecated: Use LoginWithValidateCodeRequest.ProtoReflect.Descriptor instead.

func (*LoginWithValidateCodeRequest) GetCountryCallCoding

func (x *LoginWithValidateCodeRequest) GetCountryCallCoding() string

func (*LoginWithValidateCodeRequest) GetTelephoneNumber

func (x *LoginWithValidateCodeRequest) GetTelephoneNumber() string

func (*LoginWithValidateCodeRequest) GetValidateCode

func (x *LoginWithValidateCodeRequest) GetValidateCode() string

func (*LoginWithValidateCodeRequest) ProtoMessage

func (*LoginWithValidateCodeRequest) ProtoMessage()

func (*LoginWithValidateCodeRequest) ProtoReflect

func (*LoginWithValidateCodeRequest) Reset

func (x *LoginWithValidateCodeRequest) Reset()

func (*LoginWithValidateCodeRequest) String

type SendValidateCodeReply

type SendValidateCodeReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*SendValidateCodeReply) Descriptor deprecated

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

Deprecated: Use SendValidateCodeReply.ProtoReflect.Descriptor instead.

func (*SendValidateCodeReply) GetCode added in v0.0.3

func (x *SendValidateCodeReply) GetCode() int32

func (*SendValidateCodeReply) GetMessage added in v0.0.3

func (x *SendValidateCodeReply) GetMessage() string

func (*SendValidateCodeReply) ProtoMessage

func (*SendValidateCodeReply) ProtoMessage()

func (*SendValidateCodeReply) ProtoReflect

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

func (*SendValidateCodeReply) Reset

func (x *SendValidateCodeReply) Reset()

func (*SendValidateCodeReply) String

func (x *SendValidateCodeReply) String() string

type SendValidateCodeRequest

type SendValidateCodeRequest struct {
	CountryCallCoding string `protobuf:"bytes,1,opt,name=country_call_coding,json=countryCallCoding,proto3" json:"country_call_coding,omitempty"`
	TelephoneNumber   string `protobuf:"bytes,2,opt,name=telephone_number,json=telephoneNumber,proto3" json:"telephone_number,omitempty"`
	// contains filtered or unexported fields
}

func (*SendValidateCodeRequest) Descriptor deprecated

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

Deprecated: Use SendValidateCodeRequest.ProtoReflect.Descriptor instead.

func (*SendValidateCodeRequest) GetCountryCallCoding

func (x *SendValidateCodeRequest) GetCountryCallCoding() string

func (*SendValidateCodeRequest) GetTelephoneNumber

func (x *SendValidateCodeRequest) GetTelephoneNumber() string

func (*SendValidateCodeRequest) ProtoMessage

func (*SendValidateCodeRequest) ProtoMessage()

func (*SendValidateCodeRequest) ProtoReflect

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

func (*SendValidateCodeRequest) Reset

func (x *SendValidateCodeRequest) Reset()

func (*SendValidateCodeRequest) String

func (x *SendValidateCodeRequest) String() string

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServer) CreateUser

func (UnimplementedUserServer) GetUser

func (UnimplementedUserServer) ListUser

func (UnimplementedUserServer) Login

func (UnimplementedUserServer) LoginWithValidateCode

func (UnimplementedUserServer) SendValidateCode

func (UnimplementedUserServer) UpdateUser

type UnsafeUserServer

type UnsafeUserServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.

type UpdateUserPasswordReply

type UpdateUserPasswordReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserPasswordReply) Descriptor deprecated

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

Deprecated: Use UpdateUserPasswordReply.ProtoReflect.Descriptor instead.

func (*UpdateUserPasswordReply) GetCode added in v0.0.3

func (x *UpdateUserPasswordReply) GetCode() int32

func (*UpdateUserPasswordReply) GetMessage added in v0.0.3

func (x *UpdateUserPasswordReply) GetMessage() string

func (*UpdateUserPasswordReply) ProtoMessage

func (*UpdateUserPasswordReply) ProtoMessage()

func (*UpdateUserPasswordReply) ProtoReflect

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

func (*UpdateUserPasswordReply) Reset

func (x *UpdateUserPasswordReply) Reset()

func (*UpdateUserPasswordReply) String

func (x *UpdateUserPasswordReply) String() string

type UpdateUserPasswordRequest

type UpdateUserPasswordRequest struct {
	OldPassword string `protobuf:"bytes,1,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"`
	NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserPasswordRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserPasswordRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserPasswordRequest) GetNewPassword

func (x *UpdateUserPasswordRequest) GetNewPassword() string

func (*UpdateUserPasswordRequest) GetOldPassword

func (x *UpdateUserPasswordRequest) GetOldPassword() string

func (*UpdateUserPasswordRequest) ProtoMessage

func (*UpdateUserPasswordRequest) ProtoMessage()

func (*UpdateUserPasswordRequest) ProtoReflect

func (*UpdateUserPasswordRequest) Reset

func (x *UpdateUserPasswordRequest) Reset()

func (*UpdateUserPasswordRequest) String

func (x *UpdateUserPasswordRequest) String() string

type UpdateUserReply

type UpdateUserReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserReply) Descriptor deprecated

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

Deprecated: Use UpdateUserReply.ProtoReflect.Descriptor instead.

func (*UpdateUserReply) GetCode added in v0.0.3

func (x *UpdateUserReply) GetCode() int32

func (*UpdateUserReply) GetMessage added in v0.0.3

func (x *UpdateUserReply) GetMessage() string

func (*UpdateUserReply) ProtoMessage

func (*UpdateUserReply) ProtoMessage()

func (*UpdateUserReply) ProtoReflect

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

func (*UpdateUserReply) Reset

func (x *UpdateUserReply) Reset()

func (*UpdateUserReply) String

func (x *UpdateUserReply) String() string

type UpdateUserRequest

type UpdateUserRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetIcon

func (x *UpdateUserRequest) GetIcon() string

func (*UpdateUserRequest) GetName

func (x *UpdateUserRequest) GetName() string

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type UpdateUserTelephoneReply

type UpdateUserTelephoneReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserTelephoneReply) Descriptor deprecated

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

Deprecated: Use UpdateUserTelephoneReply.ProtoReflect.Descriptor instead.

func (*UpdateUserTelephoneReply) GetCode added in v0.0.3

func (x *UpdateUserTelephoneReply) GetCode() int32

func (*UpdateUserTelephoneReply) GetMessage added in v0.0.3

func (x *UpdateUserTelephoneReply) GetMessage() string

func (*UpdateUserTelephoneReply) ProtoMessage

func (*UpdateUserTelephoneReply) ProtoMessage()

func (*UpdateUserTelephoneReply) ProtoReflect

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

func (*UpdateUserTelephoneReply) Reset

func (x *UpdateUserTelephoneReply) Reset()

func (*UpdateUserTelephoneReply) String

func (x *UpdateUserTelephoneReply) String() string

type UpdateUserTelephoneRequest

type UpdateUserTelephoneRequest struct {
	CountryCallCoding string `protobuf:"bytes,1,opt,name=country_call_coding,json=countryCallCoding,proto3" json:"country_call_coding,omitempty"`
	TelephoneNumber   string `protobuf:"bytes,2,opt,name=telephone_number,json=telephoneNumber,proto3" json:"telephone_number,omitempty"`
	ValidateCode      string `protobuf:"bytes,3,opt,name=validate_code,json=validateCode,proto3" json:"validate_code,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserTelephoneRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserTelephoneRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserTelephoneRequest) GetCountryCallCoding

func (x *UpdateUserTelephoneRequest) GetCountryCallCoding() string

func (*UpdateUserTelephoneRequest) GetTelephoneNumber

func (x *UpdateUserTelephoneRequest) GetTelephoneNumber() string

func (*UpdateUserTelephoneRequest) GetValidateCode

func (x *UpdateUserTelephoneRequest) GetValidateCode() string

func (*UpdateUserTelephoneRequest) ProtoMessage

func (*UpdateUserTelephoneRequest) ProtoMessage()

func (*UpdateUserTelephoneRequest) ProtoReflect

func (*UpdateUserTelephoneRequest) Reset

func (x *UpdateUserTelephoneRequest) Reset()

func (*UpdateUserTelephoneRequest) String

func (x *UpdateUserTelephoneRequest) String() string

type UserClient

type UserClient interface {
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserReply, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserReply, error)
	UpdateUserPassword(ctx context.Context, in *UpdateUserPasswordRequest, opts ...grpc.CallOption) (*UpdateUserPasswordReply, error)
	UpdateUserTelephone(ctx context.Context, in *UpdateUserTelephoneRequest, opts ...grpc.CallOption) (*UpdateUserTelephoneReply, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error)
	ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserReply, error)
	// Login
	//
	// {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
	// It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
	//
	// {{import "tables.md"}}
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error)
	LoginWithValidateCode(ctx context.Context, in *LoginWithValidateCodeRequest, opts ...grpc.CallOption) (*LoginReply, error)
	SendValidateCode(ctx context.Context, in *SendValidateCodeRequest, opts ...grpc.CallOption) (*SendValidateCodeReply, error)
}

UserClient is the client API for User service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewUserClient

func NewUserClient(cc grpc.ClientConnInterface) UserClient

type UserHTTPClient

type UserHTTPClient interface {
	CreateUser(ctx context.Context, req *CreateUserRequest, opts ...http.CallOption) (rsp *CreateUserReply, err error)
	GetUser(ctx context.Context, req *GetUserRequest, opts ...http.CallOption) (rsp *GetUserReply, err error)
	ListUser(ctx context.Context, req *ListUserRequest, opts ...http.CallOption) (rsp *ListUserReply, err error)
	Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginReply, err error)
	LoginWithValidateCode(ctx context.Context, req *LoginWithValidateCodeRequest, opts ...http.CallOption) (rsp *LoginReply, err error)
	SendValidateCode(ctx context.Context, req *SendValidateCodeRequest, opts ...http.CallOption) (rsp *SendValidateCodeReply, err error)
	UpdateUser(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *UpdateUserReply, err error)
	UpdateUserPassword(ctx context.Context, req *UpdateUserPasswordRequest, opts ...http.CallOption) (rsp *UpdateUserPasswordReply, err error)
	UpdateUserTelephone(ctx context.Context, req *UpdateUserTelephoneRequest, opts ...http.CallOption) (rsp *UpdateUserTelephoneReply, err error)
}

func NewUserHTTPClient

func NewUserHTTPClient(client *http.Client) UserHTTPClient

type UserHTTPClientImpl

type UserHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*UserHTTPClientImpl) CreateUser

func (*UserHTTPClientImpl) GetUser

func (*UserHTTPClientImpl) ListUser

func (*UserHTTPClientImpl) Login

func (*UserHTTPClientImpl) LoginWithValidateCode

func (c *UserHTTPClientImpl) LoginWithValidateCode(ctx context.Context, in *LoginWithValidateCodeRequest, opts ...http.CallOption) (*LoginReply, error)

func (*UserHTTPClientImpl) SendValidateCode

func (*UserHTTPClientImpl) UpdateUser

func (*UserHTTPClientImpl) UpdateUserPassword

func (*UserHTTPClientImpl) UpdateUserTelephone

type UserHTTPServer

type UserHTTPServer interface {
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
	GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
	ListUser(context.Context, *ListUserRequest) (*ListUserReply, error)
	// Login Login
	//
	// {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
	// It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
	//
	// {{import "tables.md"}}
	Login(context.Context, *LoginRequest) (*LoginReply, error)
	LoginWithValidateCode(context.Context, *LoginWithValidateCodeRequest) (*LoginReply, error)
	SendValidateCode(context.Context, *SendValidateCodeRequest) (*SendValidateCodeReply, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
	UpdateUserPassword(context.Context, *UpdateUserPasswordRequest) (*UpdateUserPasswordReply, error)
	UpdateUserTelephone(context.Context, *UpdateUserTelephoneRequest) (*UpdateUserTelephoneReply, error)
}

type UserReply added in v0.0.3

type UserReply struct {
	Id                string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CountryCallCoding string `protobuf:"bytes,2,opt,name=country_call_coding,json=countryCallCoding,proto3" json:"country_call_coding,omitempty"`
	TelephoneNumber   string `protobuf:"bytes,3,opt,name=telephone_number,json=telephoneNumber,proto3" json:"telephone_number,omitempty"`
	CreateDate        int64  `protobuf:"varint,4,opt,name=create_date,json=createDate,proto3" json:"create_date,omitempty"`
	LastLoginDate     int64  `protobuf:"varint,5,opt,name=last_login_date,json=lastLoginDate,proto3" json:"last_login_date,omitempty"`
	Name              string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	Icon              string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"`
	PwdConfig         bool   `protobuf:"varint,8,opt,name=pwd_config,json=pwdConfig,proto3" json:"pwd_config,omitempty"`
	// contains filtered or unexported fields
}

func (*UserReply) Descriptor deprecated added in v0.0.3

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

Deprecated: Use UserReply.ProtoReflect.Descriptor instead.

func (*UserReply) GetCountryCallCoding added in v0.0.3

func (x *UserReply) GetCountryCallCoding() string

func (*UserReply) GetCreateDate added in v0.0.3

func (x *UserReply) GetCreateDate() int64

func (*UserReply) GetIcon added in v0.0.3

func (x *UserReply) GetIcon() string

func (*UserReply) GetId added in v0.0.3

func (x *UserReply) GetId() string

func (*UserReply) GetLastLoginDate added in v0.0.3

func (x *UserReply) GetLastLoginDate() int64

func (*UserReply) GetName added in v0.0.3

func (x *UserReply) GetName() string

func (*UserReply) GetPwdConfig added in v0.0.3

func (x *UserReply) GetPwdConfig() bool

func (*UserReply) GetTelephoneNumber added in v0.0.3

func (x *UserReply) GetTelephoneNumber() string

func (*UserReply) ProtoMessage added in v0.0.3

func (*UserReply) ProtoMessage()

func (*UserReply) ProtoReflect added in v0.0.3

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

func (*UserReply) Reset added in v0.0.3

func (x *UserReply) Reset()

func (*UserReply) String added in v0.0.3

func (x *UserReply) String() string

type UserServer

type UserServer interface {
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
	UpdateUserPassword(context.Context, *UpdateUserPasswordRequest) (*UpdateUserPasswordReply, error)
	UpdateUserTelephone(context.Context, *UpdateUserTelephoneRequest) (*UpdateUserTelephoneReply, error)
	GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
	ListUser(context.Context, *ListUserRequest) (*ListUserReply, error)
	// Login
	//
	// {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
	// It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
	//
	// {{import "tables.md"}}
	Login(context.Context, *LoginRequest) (*LoginReply, error)
	LoginWithValidateCode(context.Context, *LoginWithValidateCodeRequest) (*LoginReply, error)
	SendValidateCode(context.Context, *SendValidateCodeRequest) (*SendValidateCodeReply, error)
	// contains filtered or unexported methods
}

UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility

Jump to

Keyboard shortcuts

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