Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer)
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type AuthClient
- type AuthHTTPClient
- type AuthHTTPClientImpl
- func (c *AuthHTTPClientImpl) Login(ctx context.Context, in *AuthLoginDTO, opts ...http.CallOption) (*AuthLoginVO, error)
- func (c *AuthHTTPClientImpl) LoginUserInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserVO, error)
- func (c *AuthHTTPClientImpl) Logout(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) Register(ctx context.Context, in *AuthRegisterDTO, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) UpdateMineInfo(ctx context.Context, in *UpdateMineInfoDTO, opts ...http.CallOption) (*emptypb.Empty, error)
- type AuthHTTPServer
- type AuthLoginDTO
- func (*AuthLoginDTO) Descriptor() ([]byte, []int)deprecated
- func (x *AuthLoginDTO) GetAccount() string
- func (x *AuthLoginDTO) GetPassword() string
- func (*AuthLoginDTO) ProtoMessage()
- func (x *AuthLoginDTO) ProtoReflect() protoreflect.Message
- func (x *AuthLoginDTO) Reset()
- func (x *AuthLoginDTO) String() string
- type AuthLoginVO
- func (*AuthLoginVO) Descriptor() ([]byte, []int)deprecated
- func (x *AuthLoginVO) GetAccessToken() string
- func (x *AuthLoginVO) GetTokenPrefix() string
- func (*AuthLoginVO) ProtoMessage()
- func (x *AuthLoginVO) ProtoReflect() protoreflect.Message
- func (x *AuthLoginVO) Reset()
- func (x *AuthLoginVO) String() string
- type AuthRegisterDTO
- func (*AuthRegisterDTO) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRegisterDTO) GetAccount() string
- func (x *AuthRegisterDTO) GetCheckPassword() string
- func (x *AuthRegisterDTO) GetPassword() string
- func (*AuthRegisterDTO) ProtoMessage()
- func (x *AuthRegisterDTO) ProtoReflect() protoreflect.Message
- func (x *AuthRegisterDTO) Reset()
- func (x *AuthRegisterDTO) String() string
- type AuthServer
- type IdRequest
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) Login(context.Context, *AuthLoginDTO) (*AuthLoginVO, error)
- func (UnimplementedAuthServer) LoginUserInfo(context.Context, *emptypb.Empty) (*UserVO, error)
- func (UnimplementedAuthServer) Logout(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) Register(context.Context, *AuthRegisterDTO) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) UpdateMineInfo(context.Context, *UpdateMineInfoDTO) (*emptypb.Empty, error)
- type UnimplementedUserServer
- func (UnimplementedUserServer) Create(context.Context, *UserCreateDTO) (*emptypb.Empty, error)
- func (UnimplementedUserServer) Delete(context.Context, *IdRequest) (*emptypb.Empty, error)
- func (UnimplementedUserServer) FindById(context.Context, *IdRequest) (*UserVO, error)
- func (UnimplementedUserServer) PageList(context.Context, *UserQueryDTO) (*UserPageVO, error)
- func (UnimplementedUserServer) Update(context.Context, *UserUpdateDTO) (*emptypb.Empty, error)
- type UnsafeAuthServer
- type UnsafeUserServer
- type UpdateMineInfoDTO
- func (*UpdateMineInfoDTO) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMineInfoDTO) GetAvatar() string
- func (x *UpdateMineInfoDTO) GetNickName() string
- func (x *UpdateMineInfoDTO) GetProfile() string
- func (*UpdateMineInfoDTO) ProtoMessage()
- func (x *UpdateMineInfoDTO) ProtoReflect() protoreflect.Message
- func (x *UpdateMineInfoDTO) Reset()
- func (x *UpdateMineInfoDTO) String() string
- type UserClient
- type UserCreateDTO
- func (*UserCreateDTO) Descriptor() ([]byte, []int)deprecated
- func (x *UserCreateDTO) GetAccount() string
- func (x *UserCreateDTO) GetAvatar() string
- func (x *UserCreateDTO) GetNickName() string
- func (x *UserCreateDTO) GetRole() string
- func (*UserCreateDTO) ProtoMessage()
- func (x *UserCreateDTO) ProtoReflect() protoreflect.Message
- func (x *UserCreateDTO) Reset()
- func (x *UserCreateDTO) String() string
- type UserHTTPClient
- type UserHTTPClientImpl
- func (c *UserHTTPClientImpl) Create(ctx context.Context, in *UserCreateDTO, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *UserHTTPClientImpl) Delete(ctx context.Context, in *IdRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *UserHTTPClientImpl) FindById(ctx context.Context, in *IdRequest, opts ...http.CallOption) (*UserVO, error)
- func (c *UserHTTPClientImpl) PageList(ctx context.Context, in *UserQueryDTO, opts ...http.CallOption) (*UserPageVO, error)
- func (c *UserHTTPClientImpl) Update(ctx context.Context, in *UserUpdateDTO, opts ...http.CallOption) (*emptypb.Empty, error)
- type UserHTTPServer
- type UserPageVO
- type UserQueryDTO
- func (*UserQueryDTO) Descriptor() ([]byte, []int)deprecated
- func (x *UserQueryDTO) GetCurrent() int64
- func (x *UserQueryDTO) GetNickName() string
- func (x *UserQueryDTO) GetRole() string
- func (x *UserQueryDTO) GetSize() int64
- func (*UserQueryDTO) ProtoMessage()
- func (x *UserQueryDTO) ProtoReflect() protoreflect.Message
- func (x *UserQueryDTO) Reset()
- func (x *UserQueryDTO) String() string
- type UserServer
- type UserUpdateDTO
- func (*UserUpdateDTO) Descriptor() ([]byte, []int)deprecated
- func (x *UserUpdateDTO) GetAvatar() string
- func (x *UserUpdateDTO) GetId() int64
- func (x *UserUpdateDTO) GetNickName() string
- func (x *UserUpdateDTO) GetProfile() string
- func (x *UserUpdateDTO) GetRole() string
- func (*UserUpdateDTO) ProtoMessage()
- func (x *UserUpdateDTO) ProtoReflect() protoreflect.Message
- func (x *UserUpdateDTO) Reset()
- func (x *UserUpdateDTO) String() string
- type UserVO
- func (*UserVO) Descriptor() ([]byte, []int)deprecated
- func (x *UserVO) GetAccount() string
- func (x *UserVO) GetAvatar() string
- func (x *UserVO) GetCreateTime() int64
- func (x *UserVO) GetId() int64
- func (x *UserVO) GetMpOpenId() string
- func (x *UserVO) GetNickName() string
- func (x *UserVO) GetProfile() string
- func (x *UserVO) GetRole() string
- func (x *UserVO) GetUnionId() string
- func (x *UserVO) GetUpdateTime() int64
- func (*UserVO) ProtoMessage()
- func (x *UserVO) ProtoReflect() protoreflect.Message
- func (x *UserVO) Reset()
- func (x *UserVO) String() string
Constants ¶
const ( Auth_Login_FullMethodName = "/v1.auth.Auth/Login" Auth_Register_FullMethodName = "/v1.auth.Auth/Register" Auth_Logout_FullMethodName = "/v1.auth.Auth/Logout" Auth_LoginUserInfo_FullMethodName = "/v1.auth.Auth/LoginUserInfo" Auth_UpdateMineInfo_FullMethodName = "/v1.auth.Auth/UpdateMineInfo" )
const ( User_FindById_FullMethodName = "/v1.user.User/FindById" User_Create_FullMethodName = "/v1.user.User/Create" User_Delete_FullMethodName = "/v1.user.User/Delete" User_Update_FullMethodName = "/v1.user.User/Update" User_PageList_FullMethodName = "/v1.user.User/PageList" )
const OperationAuthLogin = "/v1.auth.Auth/Login"
const OperationAuthLoginUserInfo = "/v1.auth.Auth/LoginUserInfo"
const OperationAuthLogout = "/v1.auth.Auth/Logout"
const OperationAuthRegister = "/v1.auth.Auth/Register"
const OperationAuthUpdateMineInfo = "/v1.auth.Auth/UpdateMineInfo"
const OperationUserCreate = "/v1.user.User/Create"
const OperationUserDelete = "/v1.user.User/Delete"
const OperationUserFindById = "/v1.user.User/FindById"
const OperationUserPageList = "/v1.user.User/PageList"
const OperationUserUpdate = "/v1.user.User/Update"
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.auth.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _Auth_Login_Handler, }, { MethodName: "Register", Handler: _Auth_Register_Handler, }, { MethodName: "Logout", Handler: _Auth_Logout_Handler, }, { MethodName: "LoginUserInfo", Handler: _Auth_LoginUserInfo_Handler, }, { MethodName: "UpdateMineInfo", Handler: _Auth_UpdateMineInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/v1/auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_v1_auth_proto protoreflect.FileDescriptor
var File_proto_v1_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.user.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindById", Handler: _User_FindById_Handler, }, { MethodName: "Create", Handler: _User_Create_Handler, }, { MethodName: "Delete", Handler: _User_Delete_Handler, }, { MethodName: "Update", Handler: _User_Update_Handler, }, { MethodName: "PageList", Handler: _User_PageList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/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 RegisterAuthHTTPServer ¶
func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer)
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
func RegisterUserHTTPServer ¶
func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type AuthClient ¶
type AuthClient interface { Login(ctx context.Context, in *AuthLoginDTO, opts ...grpc.CallOption) (*AuthLoginVO, error) Register(ctx context.Context, in *AuthRegisterDTO, opts ...grpc.CallOption) (*emptypb.Empty, error) Logout(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) LoginUserInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserVO, error) UpdateMineInfo(ctx context.Context, in *UpdateMineInfoDTO, opts ...grpc.CallOption) (*emptypb.Empty, error) }
AuthClient is the client API for Auth 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 NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthHTTPClient ¶
type AuthHTTPClient interface { Login(ctx context.Context, req *AuthLoginDTO, opts ...http.CallOption) (rsp *AuthLoginVO, err error) LoginUserInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserVO, err error) Logout(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *emptypb.Empty, err error) Register(ctx context.Context, req *AuthRegisterDTO, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateMineInfo(ctx context.Context, req *UpdateMineInfoDTO, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewAuthHTTPClient ¶
func NewAuthHTTPClient(client *http.Client) AuthHTTPClient
type AuthHTTPClientImpl ¶
type AuthHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AuthHTTPClientImpl) Login ¶
func (c *AuthHTTPClientImpl) Login(ctx context.Context, in *AuthLoginDTO, opts ...http.CallOption) (*AuthLoginVO, error)
func (*AuthHTTPClientImpl) LoginUserInfo ¶
func (c *AuthHTTPClientImpl) LoginUserInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserVO, error)
func (*AuthHTTPClientImpl) Logout ¶
func (c *AuthHTTPClientImpl) Logout(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) Register ¶
func (c *AuthHTTPClientImpl) Register(ctx context.Context, in *AuthRegisterDTO, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) UpdateMineInfo ¶
func (c *AuthHTTPClientImpl) UpdateMineInfo(ctx context.Context, in *UpdateMineInfoDTO, opts ...http.CallOption) (*emptypb.Empty, error)
type AuthHTTPServer ¶
type AuthHTTPServer interface { Login(context.Context, *AuthLoginDTO) (*AuthLoginVO, error) LoginUserInfo(context.Context, *emptypb.Empty) (*UserVO, error) Logout(context.Context, *emptypb.Empty) (*emptypb.Empty, error) Register(context.Context, *AuthRegisterDTO) (*emptypb.Empty, error) UpdateMineInfo(context.Context, *UpdateMineInfoDTO) (*emptypb.Empty, error) }
type AuthLoginDTO ¶
type AuthLoginDTO struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*AuthLoginDTO) Descriptor
deprecated
func (*AuthLoginDTO) Descriptor() ([]byte, []int)
Deprecated: Use AuthLoginDTO.ProtoReflect.Descriptor instead.
func (*AuthLoginDTO) GetAccount ¶
func (x *AuthLoginDTO) GetAccount() string
func (*AuthLoginDTO) GetPassword ¶
func (x *AuthLoginDTO) GetPassword() string
func (*AuthLoginDTO) ProtoMessage ¶
func (*AuthLoginDTO) ProtoMessage()
func (*AuthLoginDTO) ProtoReflect ¶
func (x *AuthLoginDTO) ProtoReflect() protoreflect.Message
func (*AuthLoginDTO) Reset ¶
func (x *AuthLoginDTO) Reset()
func (*AuthLoginDTO) String ¶
func (x *AuthLoginDTO) String() string
type AuthLoginVO ¶
type AuthLoginVO struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` TokenPrefix string `protobuf:"bytes,2,opt,name=tokenPrefix,proto3" json:"tokenPrefix,omitempty"` // contains filtered or unexported fields }
func (*AuthLoginVO) Descriptor
deprecated
func (*AuthLoginVO) Descriptor() ([]byte, []int)
Deprecated: Use AuthLoginVO.ProtoReflect.Descriptor instead.
func (*AuthLoginVO) GetAccessToken ¶
func (x *AuthLoginVO) GetAccessToken() string
func (*AuthLoginVO) GetTokenPrefix ¶
func (x *AuthLoginVO) GetTokenPrefix() string
func (*AuthLoginVO) ProtoMessage ¶
func (*AuthLoginVO) ProtoMessage()
func (*AuthLoginVO) ProtoReflect ¶
func (x *AuthLoginVO) ProtoReflect() protoreflect.Message
func (*AuthLoginVO) Reset ¶
func (x *AuthLoginVO) Reset()
func (*AuthLoginVO) String ¶
func (x *AuthLoginVO) String() string
type AuthRegisterDTO ¶
type AuthRegisterDTO struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` CheckPassword string `protobuf:"bytes,3,opt,name=checkPassword,proto3" json:"checkPassword,omitempty"` // contains filtered or unexported fields }
func (*AuthRegisterDTO) Descriptor
deprecated
func (*AuthRegisterDTO) Descriptor() ([]byte, []int)
Deprecated: Use AuthRegisterDTO.ProtoReflect.Descriptor instead.
func (*AuthRegisterDTO) GetAccount ¶
func (x *AuthRegisterDTO) GetAccount() string
func (*AuthRegisterDTO) GetCheckPassword ¶
func (x *AuthRegisterDTO) GetCheckPassword() string
func (*AuthRegisterDTO) GetPassword ¶
func (x *AuthRegisterDTO) GetPassword() string
func (*AuthRegisterDTO) ProtoMessage ¶
func (*AuthRegisterDTO) ProtoMessage()
func (*AuthRegisterDTO) ProtoReflect ¶
func (x *AuthRegisterDTO) ProtoReflect() protoreflect.Message
func (*AuthRegisterDTO) Reset ¶
func (x *AuthRegisterDTO) Reset()
func (*AuthRegisterDTO) String ¶
func (x *AuthRegisterDTO) String() string
type AuthServer ¶
type AuthServer interface { Login(context.Context, *AuthLoginDTO) (*AuthLoginVO, error) Register(context.Context, *AuthRegisterDTO) (*emptypb.Empty, error) Logout(context.Context, *emptypb.Empty) (*emptypb.Empty, error) LoginUserInfo(context.Context, *emptypb.Empty) (*UserVO, error) UpdateMineInfo(context.Context, *UpdateMineInfoDTO) (*emptypb.Empty, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility.
type IdRequest ¶
type IdRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdRequest) Descriptor
deprecated
func (*IdRequest) ProtoMessage ¶
func (*IdRequest) ProtoMessage()
func (*IdRequest) ProtoReflect ¶
func (x *IdRequest) ProtoReflect() protoreflect.Message
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct{}
UnimplementedAuthServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAuthServer) Login ¶
func (UnimplementedAuthServer) Login(context.Context, *AuthLoginDTO) (*AuthLoginVO, error)
func (UnimplementedAuthServer) LoginUserInfo ¶
func (UnimplementedAuthServer) Register ¶
func (UnimplementedAuthServer) Register(context.Context, *AuthRegisterDTO) (*emptypb.Empty, error)
func (UnimplementedAuthServer) UpdateMineInfo ¶
func (UnimplementedAuthServer) UpdateMineInfo(context.Context, *UpdateMineInfoDTO) (*emptypb.Empty, error)
type UnimplementedUserServer ¶
type UnimplementedUserServer struct{}
UnimplementedUserServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedUserServer) Create ¶
func (UnimplementedUserServer) Create(context.Context, *UserCreateDTO) (*emptypb.Empty, error)
func (UnimplementedUserServer) PageList ¶
func (UnimplementedUserServer) PageList(context.Context, *UserQueryDTO) (*UserPageVO, error)
func (UnimplementedUserServer) Update ¶
func (UnimplementedUserServer) Update(context.Context, *UserUpdateDTO) (*emptypb.Empty, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.
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 UpdateMineInfoDTO ¶
type UpdateMineInfoDTO struct { NickName string `protobuf:"bytes,1,opt,name=nickName,proto3" json:"nickName,omitempty"` Avatar string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"` Profile string `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*UpdateMineInfoDTO) Descriptor
deprecated
func (*UpdateMineInfoDTO) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMineInfoDTO.ProtoReflect.Descriptor instead.
func (*UpdateMineInfoDTO) GetAvatar ¶
func (x *UpdateMineInfoDTO) GetAvatar() string
func (*UpdateMineInfoDTO) GetNickName ¶
func (x *UpdateMineInfoDTO) GetNickName() string
func (*UpdateMineInfoDTO) GetProfile ¶
func (x *UpdateMineInfoDTO) GetProfile() string
func (*UpdateMineInfoDTO) ProtoMessage ¶
func (*UpdateMineInfoDTO) ProtoMessage()
func (*UpdateMineInfoDTO) ProtoReflect ¶
func (x *UpdateMineInfoDTO) ProtoReflect() protoreflect.Message
func (*UpdateMineInfoDTO) Reset ¶
func (x *UpdateMineInfoDTO) Reset()
func (*UpdateMineInfoDTO) String ¶
func (x *UpdateMineInfoDTO) String() string
type UserClient ¶
type UserClient interface { FindById(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*UserVO, error) Create(ctx context.Context, in *UserCreateDTO, opts ...grpc.CallOption) (*emptypb.Empty, error) Delete(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Update(ctx context.Context, in *UserUpdateDTO, opts ...grpc.CallOption) (*emptypb.Empty, error) PageList(ctx context.Context, in *UserQueryDTO, opts ...grpc.CallOption) (*UserPageVO, 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 UserCreateDTO ¶
type UserCreateDTO struct { NickName string `protobuf:"bytes,1,opt,name=nickName,proto3" json:"nickName,omitempty"` Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*UserCreateDTO) Descriptor
deprecated
func (*UserCreateDTO) Descriptor() ([]byte, []int)
Deprecated: Use UserCreateDTO.ProtoReflect.Descriptor instead.
func (*UserCreateDTO) GetAccount ¶
func (x *UserCreateDTO) GetAccount() string
func (*UserCreateDTO) GetAvatar ¶
func (x *UserCreateDTO) GetAvatar() string
func (*UserCreateDTO) GetNickName ¶
func (x *UserCreateDTO) GetNickName() string
func (*UserCreateDTO) GetRole ¶
func (x *UserCreateDTO) GetRole() string
func (*UserCreateDTO) ProtoMessage ¶
func (*UserCreateDTO) ProtoMessage()
func (*UserCreateDTO) ProtoReflect ¶
func (x *UserCreateDTO) ProtoReflect() protoreflect.Message
func (*UserCreateDTO) Reset ¶
func (x *UserCreateDTO) Reset()
func (*UserCreateDTO) String ¶
func (x *UserCreateDTO) String() string
type UserHTTPClient ¶
type UserHTTPClient interface { Create(ctx context.Context, req *UserCreateDTO, opts ...http.CallOption) (rsp *emptypb.Empty, err error) Delete(ctx context.Context, req *IdRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) FindById(ctx context.Context, req *IdRequest, opts ...http.CallOption) (rsp *UserVO, err error) PageList(ctx context.Context, req *UserQueryDTO, opts ...http.CallOption) (rsp *UserPageVO, err error) Update(ctx context.Context, req *UserUpdateDTO, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewUserHTTPClient ¶
func NewUserHTTPClient(client *http.Client) UserHTTPClient
type UserHTTPClientImpl ¶
type UserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserHTTPClientImpl) Create ¶
func (c *UserHTTPClientImpl) Create(ctx context.Context, in *UserCreateDTO, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserHTTPClientImpl) Delete ¶
func (c *UserHTTPClientImpl) Delete(ctx context.Context, in *IdRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserHTTPClientImpl) FindById ¶
func (c *UserHTTPClientImpl) FindById(ctx context.Context, in *IdRequest, opts ...http.CallOption) (*UserVO, error)
func (*UserHTTPClientImpl) PageList ¶
func (c *UserHTTPClientImpl) PageList(ctx context.Context, in *UserQueryDTO, opts ...http.CallOption) (*UserPageVO, error)
func (*UserHTTPClientImpl) Update ¶
func (c *UserHTTPClientImpl) Update(ctx context.Context, in *UserUpdateDTO, opts ...http.CallOption) (*emptypb.Empty, error)
type UserHTTPServer ¶
type UserHTTPServer interface { Create(context.Context, *UserCreateDTO) (*emptypb.Empty, error) Delete(context.Context, *IdRequest) (*emptypb.Empty, error) FindById(context.Context, *IdRequest) (*UserVO, error) PageList(context.Context, *UserQueryDTO) (*UserPageVO, error) Update(context.Context, *UserUpdateDTO) (*emptypb.Empty, error) }
type UserPageVO ¶
type UserPageVO struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*UserVO `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*UserPageVO) Descriptor
deprecated
func (*UserPageVO) Descriptor() ([]byte, []int)
Deprecated: Use UserPageVO.ProtoReflect.Descriptor instead.
func (*UserPageVO) GetList ¶
func (x *UserPageVO) GetList() []*UserVO
func (*UserPageVO) GetTotal ¶
func (x *UserPageVO) GetTotal() int64
func (*UserPageVO) ProtoMessage ¶
func (*UserPageVO) ProtoMessage()
func (*UserPageVO) ProtoReflect ¶
func (x *UserPageVO) ProtoReflect() protoreflect.Message
func (*UserPageVO) Reset ¶
func (x *UserPageVO) Reset()
func (*UserPageVO) String ¶
func (x *UserPageVO) String() string
type UserQueryDTO ¶
type UserQueryDTO struct { Current int64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` NickName string `protobuf:"bytes,3,opt,name=nickName,proto3" json:"nickName,omitempty"` Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*UserQueryDTO) Descriptor
deprecated
func (*UserQueryDTO) Descriptor() ([]byte, []int)
Deprecated: Use UserQueryDTO.ProtoReflect.Descriptor instead.
func (*UserQueryDTO) GetCurrent ¶
func (x *UserQueryDTO) GetCurrent() int64
func (*UserQueryDTO) GetNickName ¶
func (x *UserQueryDTO) GetNickName() string
func (*UserQueryDTO) GetRole ¶
func (x *UserQueryDTO) GetRole() string
func (*UserQueryDTO) GetSize ¶
func (x *UserQueryDTO) GetSize() int64
func (*UserQueryDTO) ProtoMessage ¶
func (*UserQueryDTO) ProtoMessage()
func (*UserQueryDTO) ProtoReflect ¶
func (x *UserQueryDTO) ProtoReflect() protoreflect.Message
func (*UserQueryDTO) Reset ¶
func (x *UserQueryDTO) Reset()
func (*UserQueryDTO) String ¶
func (x *UserQueryDTO) String() string
type UserServer ¶
type UserServer interface { FindById(context.Context, *IdRequest) (*UserVO, error) Create(context.Context, *UserCreateDTO) (*emptypb.Empty, error) Delete(context.Context, *IdRequest) (*emptypb.Empty, error) Update(context.Context, *UserUpdateDTO) (*emptypb.Empty, error) PageList(context.Context, *UserQueryDTO) (*UserPageVO, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility.
type UserUpdateDTO ¶
type UserUpdateDTO struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` NickName string `protobuf:"bytes,2,opt,name=nickName,proto3" json:"nickName,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` Profile string `protobuf:"bytes,5,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*UserUpdateDTO) Descriptor
deprecated
func (*UserUpdateDTO) Descriptor() ([]byte, []int)
Deprecated: Use UserUpdateDTO.ProtoReflect.Descriptor instead.
func (*UserUpdateDTO) GetAvatar ¶
func (x *UserUpdateDTO) GetAvatar() string
func (*UserUpdateDTO) GetId ¶
func (x *UserUpdateDTO) GetId() int64
func (*UserUpdateDTO) GetNickName ¶
func (x *UserUpdateDTO) GetNickName() string
func (*UserUpdateDTO) GetProfile ¶
func (x *UserUpdateDTO) GetProfile() string
func (*UserUpdateDTO) GetRole ¶
func (x *UserUpdateDTO) GetRole() string
func (*UserUpdateDTO) ProtoMessage ¶
func (*UserUpdateDTO) ProtoMessage()
func (*UserUpdateDTO) ProtoReflect ¶
func (x *UserUpdateDTO) ProtoReflect() protoreflect.Message
func (*UserUpdateDTO) Reset ¶
func (x *UserUpdateDTO) Reset()
func (*UserUpdateDTO) String ¶
func (x *UserUpdateDTO) String() string
type UserVO ¶
type UserVO struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` NickName string `protobuf:"bytes,2,opt,name=nickName,proto3" json:"nickName,omitempty"` Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"` Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` UnionId string `protobuf:"bytes,5,opt,name=unionId,proto3" json:"unionId,omitempty"` MpOpenId string `protobuf:"bytes,6,opt,name=mpOpenId,proto3" json:"mpOpenId,omitempty"` Profile string `protobuf:"bytes,7,opt,name=profile,proto3" json:"profile,omitempty"` Role string `protobuf:"bytes,8,opt,name=role,proto3" json:"role,omitempty"` CreateTime int64 `protobuf:"varint,9,opt,name=createTime,proto3" json:"createTime,omitempty"` UpdateTime int64 `protobuf:"varint,10,opt,name=updateTime,proto3" json:"updateTime,omitempty"` // contains filtered or unexported fields }
func (*UserVO) Descriptor
deprecated
func (*UserVO) GetAccount ¶
func (*UserVO) GetCreateTime ¶
func (*UserVO) GetMpOpenId ¶
func (*UserVO) GetNickName ¶
func (*UserVO) GetProfile ¶
func (*UserVO) GetUnionId ¶
func (*UserVO) GetUpdateTime ¶
func (*UserVO) ProtoMessage ¶
func (*UserVO) ProtoMessage()
func (*UserVO) ProtoReflect ¶
func (x *UserVO) ProtoReflect() protoreflect.Message