Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type CheckPasswordReq
- func (*CheckPasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *CheckPasswordReq) GetEncryptedPassword() string
- func (x *CheckPasswordReq) GetPassword() string
- func (*CheckPasswordReq) ProtoMessage()
- func (x *CheckPasswordReq) ProtoReflect() protoreflect.Message
- func (x *CheckPasswordReq) Reset()
- func (x *CheckPasswordReq) String() string
- type CheckPasswordResp
- type CreateUserReq
- func (*CreateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReq) GetMobile() string
- func (x *CreateUserReq) GetName() string
- func (x *CreateUserReq) GetPassword() string
- func (*CreateUserReq) ProtoMessage()
- func (x *CreateUserReq) ProtoReflect() protoreflect.Message
- func (x *CreateUserReq) Reset()
- func (x *CreateUserReq) String() string
- type CreateUserResp
- type Empty
- type Gender
- type GetUserByIdReq
- type GetUserByIdResp
- type GetUserByMobileReq
- func (*GetUserByMobileReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserByMobileReq) GetMobile() string
- func (*GetUserByMobileReq) ProtoMessage()
- func (x *GetUserByMobileReq) ProtoReflect() protoreflect.Message
- func (x *GetUserByMobileReq) Reset()
- func (x *GetUserByMobileReq) String() string
- type GetUserByMobileResp
- func (*GetUserByMobileResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserByMobileResp) GetUser() *UserModel
- func (*GetUserByMobileResp) ProtoMessage()
- func (x *GetUserByMobileResp) ProtoReflect() protoreflect.Message
- func (x *GetUserByMobileResp) Reset()
- func (x *GetUserByMobileResp) String() string
- type GetUserListReq
- func (*GetUserListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserListReq) GetPSize() uint32
- func (x *GetUserListReq) GetPn() uint32
- func (*GetUserListReq) ProtoMessage()
- func (x *GetUserListReq) ProtoReflect() protoreflect.Message
- func (x *GetUserListReq) Reset()
- func (x *GetUserListReq) String() string
- type GetUserListResp
- func (*GetUserListResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserListResp) GetTotal() int32
- func (x *GetUserListResp) GetUsers() []*UserModel
- func (*GetUserListResp) ProtoMessage()
- func (x *GetUserListResp) ProtoReflect() protoreflect.Message
- func (x *GetUserListResp) Reset()
- func (x *GetUserListResp) String() string
- type UnimplementedUserServer
- func (UnimplementedUserServer) CheckPassword(context.Context, *CheckPasswordReq) (*CheckPasswordResp, error)
- func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserReq) (*CreateUserResp, error)
- func (UnimplementedUserServer) GetUserById(context.Context, *GetUserByIdReq) (*GetUserByIdResp, error)
- func (UnimplementedUserServer) GetUserByMobile(context.Context, *GetUserByMobileReq) (*GetUserByMobileResp, error)
- func (UnimplementedUserServer) GetUserList(context.Context, *GetUserListReq) (*GetUserListResp, error)
- func (UnimplementedUserServer) Ping(context.Context, *Empty) (*Empty, error)
- func (UnimplementedUserServer) UpdateUser(context.Context, *UpdateUserReq) (*Empty, error)
- type UnsafeUserServer
- type UpdateUserReq
- func (*UpdateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserReq) GetAge() int32
- func (x *UpdateUserReq) GetBirthday() int64
- func (x *UpdateUserReq) GetEmail() string
- func (x *UpdateUserReq) GetGender() Gender
- func (x *UpdateUserReq) GetId() int32
- func (x *UpdateUserReq) GetMobile() string
- func (x *UpdateUserReq) GetName() string
- func (x *UpdateUserReq) GetPassword() string
- func (*UpdateUserReq) ProtoMessage()
- func (x *UpdateUserReq) ProtoReflect() protoreflect.Message
- func (x *UpdateUserReq) Reset()
- func (x *UpdateUserReq) String() string
- type UserClient
- type UserModel
- func (*UserModel) Descriptor() ([]byte, []int)deprecated
- func (x *UserModel) GetAge() int32
- func (x *UserModel) GetBirthday() int64
- func (x *UserModel) GetCreatedAt() int64
- func (x *UserModel) GetDeletededAt() int64
- func (x *UserModel) GetEmail() string
- func (x *UserModel) GetGender() Gender
- func (x *UserModel) GetId() int32
- func (x *UserModel) GetMobile() string
- func (x *UserModel) GetName() string
- func (x *UserModel) GetPassword() string
- func (x *UserModel) GetRole() int32
- func (x *UserModel) GetUpdatedAt() int64
- func (*UserModel) ProtoMessage()
- func (x *UserModel) ProtoReflect() protoreflect.Message
- func (x *UserModel) Reset()
- func (x *UserModel) String() string
- type UserServer
Constants ¶
const ( User_CreateUser_FullMethodName = "/user.User/CreateUser" User_UpdateUser_FullMethodName = "/user.User/UpdateUser" User_GetUserByMobile_FullMethodName = "/user.User/GetUserByMobile" User_GetUserById_FullMethodName = "/user.User/GetUserById" User_GetUserList_FullMethodName = "/user.User/GetUserList" User_CheckPassword_FullMethodName = "/user.User/CheckPassword" User_Ping_FullMethodName = "/user.User/Ping" )
Variables ¶
var ( Gender_name = map[int32]string{ 0: "UNKNOW", 1: "MALE", 2: "FEMALE", } Gender_value = map[string]int32{ "UNKNOW": 0, "MALE": 1, "FEMALE": 2, } )
Enum value maps for Gender.
var File_proto_user_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _User_CreateUser_Handler, }, { MethodName: "UpdateUser", Handler: _User_UpdateUser_Handler, }, { MethodName: "GetUserByMobile", Handler: _User_GetUserByMobile_Handler, }, { MethodName: "GetUserById", Handler: _User_GetUserById_Handler, }, { MethodName: "GetUserList", Handler: _User_GetUserList_Handler, }, { MethodName: "CheckPassword", Handler: _User_CheckPassword_Handler, }, { MethodName: "Ping", Handler: _User_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user/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 RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type CheckPasswordReq ¶
type CheckPasswordReq 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 (*CheckPasswordReq) Descriptor
deprecated
func (*CheckPasswordReq) Descriptor() ([]byte, []int)
Deprecated: Use CheckPasswordReq.ProtoReflect.Descriptor instead.
func (*CheckPasswordReq) GetEncryptedPassword ¶
func (x *CheckPasswordReq) GetEncryptedPassword() string
func (*CheckPasswordReq) GetPassword ¶
func (x *CheckPasswordReq) GetPassword() string
func (*CheckPasswordReq) ProtoMessage ¶
func (*CheckPasswordReq) ProtoMessage()
func (*CheckPasswordReq) ProtoReflect ¶
func (x *CheckPasswordReq) ProtoReflect() protoreflect.Message
func (*CheckPasswordReq) Reset ¶
func (x *CheckPasswordReq) Reset()
func (*CheckPasswordReq) String ¶
func (x *CheckPasswordReq) String() string
type CheckPasswordResp ¶
type CheckPasswordResp struct { IsSuccess bool `protobuf:"varint,1,opt,name=isSuccess,proto3" json:"isSuccess,omitempty"` // contains filtered or unexported fields }
func (*CheckPasswordResp) Descriptor
deprecated
func (*CheckPasswordResp) Descriptor() ([]byte, []int)
Deprecated: Use CheckPasswordResp.ProtoReflect.Descriptor instead.
func (*CheckPasswordResp) GetIsSuccess ¶
func (x *CheckPasswordResp) GetIsSuccess() bool
func (*CheckPasswordResp) ProtoMessage ¶
func (*CheckPasswordResp) ProtoMessage()
func (*CheckPasswordResp) ProtoReflect ¶
func (x *CheckPasswordResp) ProtoReflect() protoreflect.Message
func (*CheckPasswordResp) Reset ¶
func (x *CheckPasswordResp) Reset()
func (*CheckPasswordResp) String ¶
func (x *CheckPasswordResp) String() string
type CreateUserReq ¶
type CreateUserReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
req、resp
func (*CreateUserReq) Descriptor
deprecated
func (*CreateUserReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead.
func (*CreateUserReq) GetMobile ¶
func (x *CreateUserReq) GetMobile() string
func (*CreateUserReq) GetName ¶
func (x *CreateUserReq) GetName() string
func (*CreateUserReq) GetPassword ¶
func (x *CreateUserReq) GetPassword() string
func (*CreateUserReq) ProtoMessage ¶
func (*CreateUserReq) ProtoMessage()
func (*CreateUserReq) ProtoReflect ¶
func (x *CreateUserReq) ProtoReflect() protoreflect.Message
func (*CreateUserReq) Reset ¶
func (x *CreateUserReq) Reset()
func (*CreateUserReq) String ¶
func (x *CreateUserReq) String() string
type CreateUserResp ¶
type CreateUserResp struct { User *UserModel `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*CreateUserResp) Descriptor
deprecated
func (*CreateUserResp) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResp.ProtoReflect.Descriptor instead.
func (*CreateUserResp) GetUser ¶
func (x *CreateUserResp) GetUser() *UserModel
func (*CreateUserResp) ProtoMessage ¶
func (*CreateUserResp) ProtoMessage()
func (*CreateUserResp) ProtoReflect ¶
func (x *CreateUserResp) ProtoReflect() protoreflect.Message
func (*CreateUserResp) Reset ¶
func (x *CreateUserResp) Reset()
func (*CreateUserResp) String ¶
func (x *CreateUserResp) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Gender ¶
type Gender int32
model
func (Gender) Descriptor ¶
func (Gender) Descriptor() protoreflect.EnumDescriptor
func (Gender) EnumDescriptor
deprecated
func (Gender) Number ¶
func (x Gender) Number() protoreflect.EnumNumber
func (Gender) Type ¶
func (Gender) Type() protoreflect.EnumType
type GetUserByIdReq ¶
type GetUserByIdReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserByIdReq) Descriptor
deprecated
func (*GetUserByIdReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByIdReq.ProtoReflect.Descriptor instead.
func (*GetUserByIdReq) GetId ¶
func (x *GetUserByIdReq) GetId() int64
func (*GetUserByIdReq) ProtoMessage ¶
func (*GetUserByIdReq) ProtoMessage()
func (*GetUserByIdReq) ProtoReflect ¶
func (x *GetUserByIdReq) ProtoReflect() protoreflect.Message
func (*GetUserByIdReq) Reset ¶
func (x *GetUserByIdReq) Reset()
func (*GetUserByIdReq) String ¶
func (x *GetUserByIdReq) String() string
type GetUserByIdResp ¶
type GetUserByIdResp struct { User *UserModel `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetUserByIdResp) Descriptor
deprecated
func (*GetUserByIdResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByIdResp.ProtoReflect.Descriptor instead.
func (*GetUserByIdResp) GetUser ¶
func (x *GetUserByIdResp) GetUser() *UserModel
func (*GetUserByIdResp) ProtoMessage ¶
func (*GetUserByIdResp) ProtoMessage()
func (*GetUserByIdResp) ProtoReflect ¶
func (x *GetUserByIdResp) ProtoReflect() protoreflect.Message
func (*GetUserByIdResp) Reset ¶
func (x *GetUserByIdResp) Reset()
func (*GetUserByIdResp) String ¶
func (x *GetUserByIdResp) String() string
type GetUserByMobileReq ¶
type GetUserByMobileReq struct { Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` // contains filtered or unexported fields }
func (*GetUserByMobileReq) Descriptor
deprecated
func (*GetUserByMobileReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByMobileReq.ProtoReflect.Descriptor instead.
func (*GetUserByMobileReq) GetMobile ¶
func (x *GetUserByMobileReq) GetMobile() string
func (*GetUserByMobileReq) ProtoMessage ¶
func (*GetUserByMobileReq) ProtoMessage()
func (*GetUserByMobileReq) ProtoReflect ¶
func (x *GetUserByMobileReq) ProtoReflect() protoreflect.Message
func (*GetUserByMobileReq) Reset ¶
func (x *GetUserByMobileReq) Reset()
func (*GetUserByMobileReq) String ¶
func (x *GetUserByMobileReq) String() string
type GetUserByMobileResp ¶
type GetUserByMobileResp struct { User *UserModel `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetUserByMobileResp) Descriptor
deprecated
func (*GetUserByMobileResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByMobileResp.ProtoReflect.Descriptor instead.
func (*GetUserByMobileResp) GetUser ¶
func (x *GetUserByMobileResp) GetUser() *UserModel
func (*GetUserByMobileResp) ProtoMessage ¶
func (*GetUserByMobileResp) ProtoMessage()
func (*GetUserByMobileResp) ProtoReflect ¶
func (x *GetUserByMobileResp) ProtoReflect() protoreflect.Message
func (*GetUserByMobileResp) Reset ¶
func (x *GetUserByMobileResp) Reset()
func (*GetUserByMobileResp) String ¶
func (x *GetUserByMobileResp) String() string
type GetUserListReq ¶
type GetUserListReq 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 (*GetUserListReq) Descriptor
deprecated
func (*GetUserListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserListReq.ProtoReflect.Descriptor instead.
func (*GetUserListReq) GetPSize ¶
func (x *GetUserListReq) GetPSize() uint32
func (*GetUserListReq) GetPn ¶
func (x *GetUserListReq) GetPn() uint32
func (*GetUserListReq) ProtoMessage ¶
func (*GetUserListReq) ProtoMessage()
func (*GetUserListReq) ProtoReflect ¶
func (x *GetUserListReq) ProtoReflect() protoreflect.Message
func (*GetUserListReq) Reset ¶
func (x *GetUserListReq) Reset()
func (*GetUserListReq) String ¶
func (x *GetUserListReq) String() string
type GetUserListResp ¶
type GetUserListResp struct { Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Users []*UserModel `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` // repeated 字段表示生成数组 // contains filtered or unexported fields }
func (*GetUserListResp) Descriptor
deprecated
func (*GetUserListResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUserListResp.ProtoReflect.Descriptor instead.
func (*GetUserListResp) GetTotal ¶
func (x *GetUserListResp) GetTotal() int32
func (*GetUserListResp) GetUsers ¶
func (x *GetUserListResp) GetUsers() []*UserModel
func (*GetUserListResp) ProtoMessage ¶
func (*GetUserListResp) ProtoMessage()
func (*GetUserListResp) ProtoReflect ¶
func (x *GetUserListResp) ProtoReflect() protoreflect.Message
func (*GetUserListResp) Reset ¶
func (x *GetUserListResp) Reset()
func (*GetUserListResp) String ¶
func (x *GetUserListResp) String() string
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) CheckPassword ¶
func (UnimplementedUserServer) CheckPassword(context.Context, *CheckPasswordReq) (*CheckPasswordResp, error)
func (UnimplementedUserServer) CreateUser ¶
func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserReq) (*CreateUserResp, error)
func (UnimplementedUserServer) GetUserById ¶
func (UnimplementedUserServer) GetUserById(context.Context, *GetUserByIdReq) (*GetUserByIdResp, error)
func (UnimplementedUserServer) GetUserByMobile ¶
func (UnimplementedUserServer) GetUserByMobile(context.Context, *GetUserByMobileReq) (*GetUserByMobileResp, error)
func (UnimplementedUserServer) GetUserList ¶
func (UnimplementedUserServer) GetUserList(context.Context, *GetUserListReq) (*GetUserListResp, error)
func (UnimplementedUserServer) UpdateUser ¶
func (UnimplementedUserServer) UpdateUser(context.Context, *UpdateUserReq) (*Empty, error)
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 UpdateUserReq ¶
type UpdateUserReq struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Age int32 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"` Gender Gender `protobuf:"varint,4,opt,name=gender,proto3,enum=user.Gender" json:"gender,omitempty"` Mobile string `protobuf:"bytes,5,opt,name=mobile,proto3" json:"mobile,omitempty"` Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,7,opt,name=password,proto3" json:"password,omitempty"` Birthday int64 `protobuf:"varint,8,opt,name=birthday,proto3" json:"birthday,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserReq) Descriptor
deprecated
func (*UpdateUserReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserReq.ProtoReflect.Descriptor instead.
func (*UpdateUserReq) GetAge ¶
func (x *UpdateUserReq) GetAge() int32
func (*UpdateUserReq) GetBirthday ¶
func (x *UpdateUserReq) GetBirthday() int64
func (*UpdateUserReq) GetEmail ¶
func (x *UpdateUserReq) GetEmail() string
func (*UpdateUserReq) GetGender ¶
func (x *UpdateUserReq) GetGender() Gender
func (*UpdateUserReq) GetId ¶
func (x *UpdateUserReq) GetId() int32
func (*UpdateUserReq) GetMobile ¶
func (x *UpdateUserReq) GetMobile() string
func (*UpdateUserReq) GetName ¶
func (x *UpdateUserReq) GetName() string
func (*UpdateUserReq) GetPassword ¶
func (x *UpdateUserReq) GetPassword() string
func (*UpdateUserReq) ProtoMessage ¶
func (*UpdateUserReq) ProtoMessage()
func (*UpdateUserReq) ProtoReflect ¶
func (x *UpdateUserReq) ProtoReflect() protoreflect.Message
func (*UpdateUserReq) Reset ¶
func (x *UpdateUserReq) Reset()
func (*UpdateUserReq) String ¶
func (x *UpdateUserReq) String() string
type UserClient ¶
type UserClient interface { CreateUser(ctx context.Context, in *CreateUserReq, opts ...grpc.CallOption) (*CreateUserResp, error) UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*Empty, error) GetUserByMobile(ctx context.Context, in *GetUserByMobileReq, opts ...grpc.CallOption) (*GetUserByMobileResp, error) GetUserById(ctx context.Context, in *GetUserByIdReq, opts ...grpc.CallOption) (*GetUserByIdResp, error) GetUserList(ctx context.Context, in *GetUserListReq, opts ...grpc.CallOption) (*GetUserListResp, error) CheckPassword(ctx context.Context, in *CheckPasswordReq, opts ...grpc.CallOption) (*CheckPasswordResp, error) Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, 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 UserModel ¶
type UserModel struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt int64 `protobuf:"varint,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt int64 `protobuf:"varint,3,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` DeletededAt int64 `protobuf:"varint,4,opt,name=deletededAt,proto3" json:"deletededAt,omitempty"` Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` Age int32 `protobuf:"varint,6,opt,name=age,proto3" json:"age,omitempty"` Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=user.Gender" json:"gender,omitempty"` Mobile string `protobuf:"bytes,8,opt,name=mobile,proto3" json:"mobile,omitempty"` Email string `protobuf:"bytes,9,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,10,opt,name=password,proto3" json:"password,omitempty"` Birthday int64 `protobuf:"varint,11,opt,name=birthday,proto3" json:"birthday,omitempty"` Role int32 `protobuf:"varint,12,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*UserModel) Descriptor
deprecated
func (*UserModel) GetBirthday ¶
func (*UserModel) GetCreatedAt ¶
func (*UserModel) GetDeletededAt ¶
func (*UserModel) GetPassword ¶
func (*UserModel) GetUpdatedAt ¶
func (*UserModel) ProtoMessage ¶
func (*UserModel) ProtoMessage()
func (*UserModel) ProtoReflect ¶
func (x *UserModel) ProtoReflect() protoreflect.Message
type UserServer ¶
type UserServer interface { CreateUser(context.Context, *CreateUserReq) (*CreateUserResp, error) UpdateUser(context.Context, *UpdateUserReq) (*Empty, error) GetUserByMobile(context.Context, *GetUserByMobileReq) (*GetUserByMobileResp, error) GetUserById(context.Context, *GetUserByIdReq) (*GetUserByIdResp, error) GetUserList(context.Context, *GetUserListReq) (*GetUserListResp, error) CheckPassword(context.Context, *CheckPasswordReq) (*CheckPasswordResp, error) Ping(context.Context, *Empty) (*Empty, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility