Versions in this module Expand all Collapse all v0 v0.0.56 Jan 18, 2025 Changes in this version + const AdministratorService_AdministratorLoginSuccess_FullMethodName + const AdministratorService_AdministratorStatusChange_FullMethodName + const AdministratorService_CreateAdministrator_FullMethodName + const AdministratorService_DeleteAdministrator_FullMethodName + const AdministratorService_GetAdministratorList_FullMethodName + const AdministratorService_GetAdministrator_FullMethodName + const AdministratorService_RecoverAdministrator_FullMethodName + const AdministratorService_UpdateAdministrator_FullMethodName + const AdministratorService_VerifyAdministratorPassword_FullMethodName + const OperationAdministratorServiceAdministratorLoginSuccess + const OperationAdministratorServiceAdministratorStatusChange + const OperationAdministratorServiceCreateAdministrator + const OperationAdministratorServiceDeleteAdministrator + const OperationAdministratorServiceGetAdministrator + const OperationAdministratorServiceGetAdministratorList + const OperationAdministratorServiceRecoverAdministrator + const OperationAdministratorServiceUpdateAdministrator + const OperationAdministratorServiceVerifyAdministratorPassword + var AdministratorService_ServiceDesc = grpc.ServiceDesc + var ErrorReason_name = map[int32]string + var ErrorReason_value = map[string]int32 + var File_admin_v1_admin_proto protoreflect.FileDescriptor + var File_admin_v1_error_reason_proto protoreflect.FileDescriptor + func ErrorBffBadRequest(format string, args ...interface{}) *errors.Error + func ErrorBffRecordAlreadyExists(format string, args ...interface{}) *errors.Error + func ErrorBffRecordNotFound(format string, args ...interface{}) *errors.Error + func ErrorBffSystemError(format string, args ...interface{}) *errors.Error + func IsBffBadRequest(err error) bool + func IsBffRecordAlreadyExists(err error) bool + func IsBffRecordNotFound(err error) bool + func IsBffSystemError(err error) bool + func RegisterAdministratorServiceHTTPServer(s *http.Server, srv AdministratorServiceHTTPServer) + func RegisterAdministratorServiceServer(s grpc.ServiceRegistrar, srv AdministratorServiceServer) + type Administrator struct + Avatar string + CreatedAt string + DeletedAt string + Id int64 + LastLoginIp string + LastLoginTime string + Mobile string + Nickname string + Role string + Status bool + UpdatedAt string + Username string + func (*Administrator) Descriptor() ([]byte, []int) + func (*Administrator) ProtoMessage() + func (x *Administrator) GetAvatar() string + func (x *Administrator) GetCreatedAt() string + func (x *Administrator) GetDeletedAt() string + func (x *Administrator) GetId() int64 + func (x *Administrator) GetLastLoginIp() string + func (x *Administrator) GetLastLoginTime() string + func (x *Administrator) GetMobile() string + func (x *Administrator) GetNickname() string + func (x *Administrator) GetRole() string + func (x *Administrator) GetStatus() bool + func (x *Administrator) GetUpdatedAt() string + func (x *Administrator) GetUsername() string + func (x *Administrator) ProtoReflect() protoreflect.Message + func (x *Administrator) Reset() + func (x *Administrator) String() string + type AdministratorLoginSuccessReq struct + Id int64 + LastLoginIp string + LastLoginTime string + func (*AdministratorLoginSuccessReq) Descriptor() ([]byte, []int) + func (*AdministratorLoginSuccessReq) ProtoMessage() + func (x *AdministratorLoginSuccessReq) GetId() int64 + func (x *AdministratorLoginSuccessReq) GetLastLoginIp() string + func (x *AdministratorLoginSuccessReq) GetLastLoginTime() string + func (x *AdministratorLoginSuccessReq) ProtoReflect() protoreflect.Message + func (x *AdministratorLoginSuccessReq) Reset() + func (x *AdministratorLoginSuccessReq) String() string + type AdministratorServiceClient interface + AdministratorLoginSuccess func(ctx context.Context, in *AdministratorLoginSuccessReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + AdministratorStatusChange func(ctx context.Context, in *AdministratorStatusChangeReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + CreateAdministrator func(ctx context.Context, in *CreateAdministratorReq, opts ...grpc.CallOption) (*Administrator, error) + DeleteAdministrator func(ctx context.Context, in *DeleteAdministratorReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + GetAdministrator func(ctx context.Context, in *GetAdministratorReq, opts ...grpc.CallOption) (*Administrator, error) + GetAdministratorList func(ctx context.Context, in *GetAdministratorListReq, opts ...grpc.CallOption) (*GetAdministratorListPageRes, error) + RecoverAdministrator func(ctx context.Context, in *RecoverAdministratorReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + UpdateAdministrator func(ctx context.Context, in *UpdateAdministratorReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + VerifyAdministratorPassword func(ctx context.Context, in *VerifyAdministratorPasswordReq, ...) (*emptypb.Empty, error) + func NewAdministratorServiceClient(cc grpc.ClientConnInterface) AdministratorServiceClient + type AdministratorServiceHTTPClient interface + AdministratorLoginSuccess func(ctx context.Context, req *AdministratorLoginSuccessReq, ...) (rsp *emptypb.Empty, err error) + AdministratorStatusChange func(ctx context.Context, req *AdministratorStatusChangeReq, ...) (rsp *emptypb.Empty, err error) + CreateAdministrator func(ctx context.Context, req *CreateAdministratorReq, opts ...http.CallOption) (rsp *Administrator, err error) + DeleteAdministrator func(ctx context.Context, req *DeleteAdministratorReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + GetAdministrator func(ctx context.Context, req *GetAdministratorReq, opts ...http.CallOption) (rsp *Administrator, err error) + GetAdministratorList func(ctx context.Context, req *GetAdministratorListReq, opts ...http.CallOption) (rsp *GetAdministratorListPageRes, err error) + RecoverAdministrator func(ctx context.Context, req *RecoverAdministratorReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + UpdateAdministrator func(ctx context.Context, req *UpdateAdministratorReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + VerifyAdministratorPassword func(ctx context.Context, req *VerifyAdministratorPasswordReq, ...) (rsp *emptypb.Empty, err error) + func NewAdministratorServiceHTTPClient(client *http.Client) AdministratorServiceHTTPClient + type AdministratorServiceHTTPClientImpl struct + func (c *AdministratorServiceHTTPClientImpl) AdministratorLoginSuccess(ctx context.Context, in *AdministratorLoginSuccessReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AdministratorServiceHTTPClientImpl) AdministratorStatusChange(ctx context.Context, in *AdministratorStatusChangeReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AdministratorServiceHTTPClientImpl) CreateAdministrator(ctx context.Context, in *CreateAdministratorReq, opts ...http.CallOption) (*Administrator, error) + func (c *AdministratorServiceHTTPClientImpl) DeleteAdministrator(ctx context.Context, in *DeleteAdministratorReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AdministratorServiceHTTPClientImpl) GetAdministrator(ctx context.Context, in *GetAdministratorReq, opts ...http.CallOption) (*Administrator, error) + func (c *AdministratorServiceHTTPClientImpl) GetAdministratorList(ctx context.Context, in *GetAdministratorListReq, opts ...http.CallOption) (*GetAdministratorListPageRes, error) + func (c *AdministratorServiceHTTPClientImpl) RecoverAdministrator(ctx context.Context, in *RecoverAdministratorReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AdministratorServiceHTTPClientImpl) UpdateAdministrator(ctx context.Context, in *UpdateAdministratorReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AdministratorServiceHTTPClientImpl) VerifyAdministratorPassword(ctx context.Context, in *VerifyAdministratorPasswordReq, ...) (*emptypb.Empty, error) + type AdministratorServiceHTTPServer interface + AdministratorLoginSuccess func(context.Context, *AdministratorLoginSuccessReq) (*emptypb.Empty, error) + AdministratorStatusChange func(context.Context, *AdministratorStatusChangeReq) (*emptypb.Empty, error) + CreateAdministrator func(context.Context, *CreateAdministratorReq) (*Administrator, error) + DeleteAdministrator func(context.Context, *DeleteAdministratorReq) (*emptypb.Empty, error) + GetAdministrator func(context.Context, *GetAdministratorReq) (*Administrator, error) + GetAdministratorList func(context.Context, *GetAdministratorListReq) (*GetAdministratorListPageRes, error) + RecoverAdministrator func(context.Context, *RecoverAdministratorReq) (*emptypb.Empty, error) + UpdateAdministrator func(context.Context, *UpdateAdministratorReq) (*emptypb.Empty, error) + VerifyAdministratorPassword func(context.Context, *VerifyAdministratorPasswordReq) (*emptypb.Empty, error) + type AdministratorServiceServer interface + AdministratorLoginSuccess func(context.Context, *AdministratorLoginSuccessReq) (*emptypb.Empty, error) + AdministratorStatusChange func(context.Context, *AdministratorStatusChangeReq) (*emptypb.Empty, error) + CreateAdministrator func(context.Context, *CreateAdministratorReq) (*Administrator, error) + DeleteAdministrator func(context.Context, *DeleteAdministratorReq) (*emptypb.Empty, error) + GetAdministrator func(context.Context, *GetAdministratorReq) (*Administrator, error) + GetAdministratorList func(context.Context, *GetAdministratorListReq) (*GetAdministratorListPageRes, error) + RecoverAdministrator func(context.Context, *RecoverAdministratorReq) (*emptypb.Empty, error) + UpdateAdministrator func(context.Context, *UpdateAdministratorReq) (*emptypb.Empty, error) + VerifyAdministratorPassword func(context.Context, *VerifyAdministratorPasswordReq) (*emptypb.Empty, error) + type AdministratorStatusChangeReq struct + Id int64 + Status bool + func (*AdministratorStatusChangeReq) Descriptor() ([]byte, []int) + func (*AdministratorStatusChangeReq) ProtoMessage() + func (x *AdministratorStatusChangeReq) GetId() int64 + func (x *AdministratorStatusChangeReq) GetStatus() bool + func (x *AdministratorStatusChangeReq) ProtoReflect() protoreflect.Message + func (x *AdministratorStatusChangeReq) Reset() + func (x *AdministratorStatusChangeReq) String() string + type CreateAdministratorReq struct + Avatar string + Mobile string + Nickname string + Password string + Role string + Status bool + Username string + func (*CreateAdministratorReq) Descriptor() ([]byte, []int) + func (*CreateAdministratorReq) ProtoMessage() + func (x *CreateAdministratorReq) GetAvatar() string + func (x *CreateAdministratorReq) GetMobile() string + func (x *CreateAdministratorReq) GetNickname() string + func (x *CreateAdministratorReq) GetPassword() string + func (x *CreateAdministratorReq) GetRole() string + func (x *CreateAdministratorReq) GetStatus() bool + func (x *CreateAdministratorReq) GetUsername() string + func (x *CreateAdministratorReq) ProtoReflect() protoreflect.Message + func (x *CreateAdministratorReq) Reset() + func (x *CreateAdministratorReq) String() string + type DeleteAdministratorReq struct + Id int64 + func (*DeleteAdministratorReq) Descriptor() ([]byte, []int) + func (*DeleteAdministratorReq) ProtoMessage() + func (x *DeleteAdministratorReq) GetId() int64 + func (x *DeleteAdministratorReq) ProtoReflect() protoreflect.Message + func (x *DeleteAdministratorReq) Reset() + func (x *DeleteAdministratorReq) String() string + type ErrorReason int32 + const ErrorReason_BFF_BAD_REQUEST + const ErrorReason_BFF_RECORD_ALREADY_EXISTS + const ErrorReason_BFF_RECORD_NOT_FOUND + const ErrorReason_BFF_SYSTEM_ERROR + func (ErrorReason) Descriptor() protoreflect.EnumDescriptor + func (ErrorReason) EnumDescriptor() ([]byte, []int) + func (ErrorReason) Type() protoreflect.EnumType + func (x ErrorReason) Enum() *ErrorReason + func (x ErrorReason) Number() protoreflect.EnumNumber + func (x ErrorReason) String() string + type GetAdministratorListPageRes struct + List []*Administrator + Total int64 + func (*GetAdministratorListPageRes) Descriptor() ([]byte, []int) + func (*GetAdministratorListPageRes) ProtoMessage() + func (x *GetAdministratorListPageRes) GetList() []*Administrator + func (x *GetAdministratorListPageRes) GetTotal() int64 + func (x *GetAdministratorListPageRes) ProtoReflect() protoreflect.Message + func (x *GetAdministratorListPageRes) Reset() + func (x *GetAdministratorListPageRes) String() string + type GetAdministratorListReq struct + CreatedAtEnd string + CreatedAtStart string + Mobile string + Nickname string + Page int64 + PageSize int64 + Status *wrapperspb.BoolValue + Username string + func (*GetAdministratorListReq) Descriptor() ([]byte, []int) + func (*GetAdministratorListReq) ProtoMessage() + func (x *GetAdministratorListReq) GetCreatedAtEnd() string + func (x *GetAdministratorListReq) GetCreatedAtStart() string + func (x *GetAdministratorListReq) GetMobile() string + func (x *GetAdministratorListReq) GetNickname() string + func (x *GetAdministratorListReq) GetPage() int64 + func (x *GetAdministratorListReq) GetPageSize() int64 + func (x *GetAdministratorListReq) GetStatus() *wrapperspb.BoolValue + func (x *GetAdministratorListReq) GetUsername() string + func (x *GetAdministratorListReq) ProtoReflect() protoreflect.Message + func (x *GetAdministratorListReq) Reset() + func (x *GetAdministratorListReq) String() string + type GetAdministratorReq struct + Id int64 + Mobile string + Role string + Username string + func (*GetAdministratorReq) Descriptor() ([]byte, []int) + func (*GetAdministratorReq) ProtoMessage() + func (x *GetAdministratorReq) GetId() int64 + func (x *GetAdministratorReq) GetMobile() string + func (x *GetAdministratorReq) GetRole() string + func (x *GetAdministratorReq) GetUsername() string + func (x *GetAdministratorReq) ProtoReflect() protoreflect.Message + func (x *GetAdministratorReq) Reset() + func (x *GetAdministratorReq) String() string + type RecoverAdministratorReq struct + Id int64 + func (*RecoverAdministratorReq) Descriptor() ([]byte, []int) + func (*RecoverAdministratorReq) ProtoMessage() + func (x *RecoverAdministratorReq) GetId() int64 + func (x *RecoverAdministratorReq) ProtoReflect() protoreflect.Message + func (x *RecoverAdministratorReq) Reset() + func (x *RecoverAdministratorReq) String() string + type UnimplementedAdministratorServiceServer struct + func (UnimplementedAdministratorServiceServer) AdministratorLoginSuccess(context.Context, *AdministratorLoginSuccessReq) (*emptypb.Empty, error) + func (UnimplementedAdministratorServiceServer) AdministratorStatusChange(context.Context, *AdministratorStatusChangeReq) (*emptypb.Empty, error) + func (UnimplementedAdministratorServiceServer) CreateAdministrator(context.Context, *CreateAdministratorReq) (*Administrator, error) + func (UnimplementedAdministratorServiceServer) DeleteAdministrator(context.Context, *DeleteAdministratorReq) (*emptypb.Empty, error) + func (UnimplementedAdministratorServiceServer) GetAdministrator(context.Context, *GetAdministratorReq) (*Administrator, error) + func (UnimplementedAdministratorServiceServer) GetAdministratorList(context.Context, *GetAdministratorListReq) (*GetAdministratorListPageRes, error) + func (UnimplementedAdministratorServiceServer) RecoverAdministrator(context.Context, *RecoverAdministratorReq) (*emptypb.Empty, error) + func (UnimplementedAdministratorServiceServer) UpdateAdministrator(context.Context, *UpdateAdministratorReq) (*emptypb.Empty, error) + func (UnimplementedAdministratorServiceServer) VerifyAdministratorPassword(context.Context, *VerifyAdministratorPasswordReq) (*emptypb.Empty, error) + type UnsafeAdministratorServiceServer interface + type UpdateAdministratorReq struct + Avatar string + Id int64 + Mobile string + Nickname string + Password string + Role string + Status bool + Username string + func (*UpdateAdministratorReq) Descriptor() ([]byte, []int) + func (*UpdateAdministratorReq) ProtoMessage() + func (x *UpdateAdministratorReq) GetAvatar() string + func (x *UpdateAdministratorReq) GetId() int64 + func (x *UpdateAdministratorReq) GetMobile() string + func (x *UpdateAdministratorReq) GetNickname() string + func (x *UpdateAdministratorReq) GetPassword() string + func (x *UpdateAdministratorReq) GetRole() string + func (x *UpdateAdministratorReq) GetStatus() bool + func (x *UpdateAdministratorReq) GetUsername() string + func (x *UpdateAdministratorReq) ProtoReflect() protoreflect.Message + func (x *UpdateAdministratorReq) Reset() + func (x *UpdateAdministratorReq) String() string + type VerifyAdministratorPasswordReq struct + Id int64 + Password string + func (*VerifyAdministratorPasswordReq) Descriptor() ([]byte, []int) + func (*VerifyAdministratorPasswordReq) ProtoMessage() + func (x *VerifyAdministratorPasswordReq) GetId() int64 + func (x *VerifyAdministratorPasswordReq) GetPassword() string + func (x *VerifyAdministratorPasswordReq) ProtoReflect() protoreflect.Message + func (x *VerifyAdministratorPasswordReq) Reset() + func (x *VerifyAdministratorPasswordReq) String() string