Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorBadRequest(format string, args ...interface{}) *errors.Error
- func ErrorRecordAlreadyExists(format string, args ...interface{}) *errors.Error
- func ErrorRecordNotFound(format string, args ...interface{}) *errors.Error
- func ErrorSystemError(format string, args ...interface{}) *errors.Error
- func IsBadRequest(err error) bool
- func IsRecordAlreadyExists(err error) bool
- func IsRecordNotFound(err error) bool
- func IsSystemError(err error) bool
- func RegisterAdministratorServiceHTTPServer(s *http.Server, srv AdministratorServiceHTTPServer)
- func RegisterAdministratorServiceServer(s grpc.ServiceRegistrar, srv AdministratorServiceServer)
- type Administrator
- func (*Administrator) Descriptor() ([]byte, []int)deprecated
- 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 (*Administrator) ProtoMessage()
- func (x *Administrator) ProtoReflect() protoreflect.Message
- func (x *Administrator) Reset()
- func (x *Administrator) String() string
- func (m *Administrator) Validate() error
- func (m *Administrator) ValidateAll() error
- type AdministratorLoginSuccessReq
- func (*AdministratorLoginSuccessReq) Descriptor() ([]byte, []int)deprecated
- func (x *AdministratorLoginSuccessReq) GetId() int64
- func (x *AdministratorLoginSuccessReq) GetLastLoginIp() string
- func (x *AdministratorLoginSuccessReq) GetLastLoginTime() string
- func (*AdministratorLoginSuccessReq) ProtoMessage()
- func (x *AdministratorLoginSuccessReq) ProtoReflect() protoreflect.Message
- func (x *AdministratorLoginSuccessReq) Reset()
- func (x *AdministratorLoginSuccessReq) String() string
- func (m *AdministratorLoginSuccessReq) Validate() error
- func (m *AdministratorLoginSuccessReq) ValidateAll() error
- type AdministratorLoginSuccessReqMultiError
- type AdministratorLoginSuccessReqValidationError
- func (e AdministratorLoginSuccessReqValidationError) Cause() error
- func (e AdministratorLoginSuccessReqValidationError) Error() string
- func (e AdministratorLoginSuccessReqValidationError) ErrorName() string
- func (e AdministratorLoginSuccessReqValidationError) Field() string
- func (e AdministratorLoginSuccessReqValidationError) Key() bool
- func (e AdministratorLoginSuccessReqValidationError) Reason() string
- type AdministratorMultiError
- type AdministratorServiceClient
- type AdministratorServiceHTTPClient
- type AdministratorServiceHTTPClientImpl
- 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
- type AdministratorServiceServer
- type AdministratorStatusChangeReq
- func (*AdministratorStatusChangeReq) Descriptor() ([]byte, []int)deprecated
- func (x *AdministratorStatusChangeReq) GetId() int64
- func (x *AdministratorStatusChangeReq) GetStatus() bool
- func (*AdministratorStatusChangeReq) ProtoMessage()
- func (x *AdministratorStatusChangeReq) ProtoReflect() protoreflect.Message
- func (x *AdministratorStatusChangeReq) Reset()
- func (x *AdministratorStatusChangeReq) String() string
- func (m *AdministratorStatusChangeReq) Validate() error
- func (m *AdministratorStatusChangeReq) ValidateAll() error
- type AdministratorStatusChangeReqMultiError
- type AdministratorStatusChangeReqValidationError
- func (e AdministratorStatusChangeReqValidationError) Cause() error
- func (e AdministratorStatusChangeReqValidationError) Error() string
- func (e AdministratorStatusChangeReqValidationError) ErrorName() string
- func (e AdministratorStatusChangeReqValidationError) Field() string
- func (e AdministratorStatusChangeReqValidationError) Key() bool
- func (e AdministratorStatusChangeReqValidationError) Reason() string
- type AdministratorValidationError
- func (e AdministratorValidationError) Cause() error
- func (e AdministratorValidationError) Error() string
- func (e AdministratorValidationError) ErrorName() string
- func (e AdministratorValidationError) Field() string
- func (e AdministratorValidationError) Key() bool
- func (e AdministratorValidationError) Reason() string
- type CreateAdministratorReq
- func (*CreateAdministratorReq) Descriptor() ([]byte, []int)deprecated
- 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 (*CreateAdministratorReq) ProtoMessage()
- func (x *CreateAdministratorReq) ProtoReflect() protoreflect.Message
- func (x *CreateAdministratorReq) Reset()
- func (x *CreateAdministratorReq) String() string
- func (m *CreateAdministratorReq) Validate() error
- func (m *CreateAdministratorReq) ValidateAll() error
- type CreateAdministratorReqMultiError
- type CreateAdministratorReqValidationError
- func (e CreateAdministratorReqValidationError) Cause() error
- func (e CreateAdministratorReqValidationError) Error() string
- func (e CreateAdministratorReqValidationError) ErrorName() string
- func (e CreateAdministratorReqValidationError) Field() string
- func (e CreateAdministratorReqValidationError) Key() bool
- func (e CreateAdministratorReqValidationError) Reason() string
- type DeleteAdministratorReq
- func (*DeleteAdministratorReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAdministratorReq) GetId() int64
- func (*DeleteAdministratorReq) ProtoMessage()
- func (x *DeleteAdministratorReq) ProtoReflect() protoreflect.Message
- func (x *DeleteAdministratorReq) Reset()
- func (x *DeleteAdministratorReq) String() string
- func (m *DeleteAdministratorReq) Validate() error
- func (m *DeleteAdministratorReq) ValidateAll() error
- type DeleteAdministratorReqMultiError
- type DeleteAdministratorReqValidationError
- func (e DeleteAdministratorReqValidationError) Cause() error
- func (e DeleteAdministratorReqValidationError) Error() string
- func (e DeleteAdministratorReqValidationError) ErrorName() string
- func (e DeleteAdministratorReqValidationError) Field() string
- func (e DeleteAdministratorReqValidationError) Key() bool
- func (e DeleteAdministratorReqValidationError) Reason() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GetAdministratorListPageRes
- func (*GetAdministratorListPageRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdministratorListPageRes) GetList() []*Administrator
- func (x *GetAdministratorListPageRes) GetTotal() int64
- func (*GetAdministratorListPageRes) ProtoMessage()
- func (x *GetAdministratorListPageRes) ProtoReflect() protoreflect.Message
- func (x *GetAdministratorListPageRes) Reset()
- func (x *GetAdministratorListPageRes) String() string
- func (m *GetAdministratorListPageRes) Validate() error
- func (m *GetAdministratorListPageRes) ValidateAll() error
- type GetAdministratorListPageResMultiError
- type GetAdministratorListPageResValidationError
- func (e GetAdministratorListPageResValidationError) Cause() error
- func (e GetAdministratorListPageResValidationError) Error() string
- func (e GetAdministratorListPageResValidationError) ErrorName() string
- func (e GetAdministratorListPageResValidationError) Field() string
- func (e GetAdministratorListPageResValidationError) Key() bool
- func (e GetAdministratorListPageResValidationError) Reason() string
- type GetAdministratorListReq
- func (*GetAdministratorListReq) Descriptor() ([]byte, []int)deprecated
- 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 (*GetAdministratorListReq) ProtoMessage()
- func (x *GetAdministratorListReq) ProtoReflect() protoreflect.Message
- func (x *GetAdministratorListReq) Reset()
- func (x *GetAdministratorListReq) String() string
- func (m *GetAdministratorListReq) Validate() error
- func (m *GetAdministratorListReq) ValidateAll() error
- type GetAdministratorListReqMultiError
- type GetAdministratorListReqValidationError
- func (e GetAdministratorListReqValidationError) Cause() error
- func (e GetAdministratorListReqValidationError) Error() string
- func (e GetAdministratorListReqValidationError) ErrorName() string
- func (e GetAdministratorListReqValidationError) Field() string
- func (e GetAdministratorListReqValidationError) Key() bool
- func (e GetAdministratorListReqValidationError) Reason() string
- type GetAdministratorReq
- func (*GetAdministratorReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdministratorReq) GetId() int64
- func (x *GetAdministratorReq) GetMobile() string
- func (x *GetAdministratorReq) GetRole() string
- func (x *GetAdministratorReq) GetUsername() string
- func (*GetAdministratorReq) ProtoMessage()
- func (x *GetAdministratorReq) ProtoReflect() protoreflect.Message
- func (x *GetAdministratorReq) Reset()
- func (x *GetAdministratorReq) String() string
- func (m *GetAdministratorReq) Validate() error
- func (m *GetAdministratorReq) ValidateAll() error
- type GetAdministratorReqMultiError
- type GetAdministratorReqValidationError
- func (e GetAdministratorReqValidationError) Cause() error
- func (e GetAdministratorReqValidationError) Error() string
- func (e GetAdministratorReqValidationError) ErrorName() string
- func (e GetAdministratorReqValidationError) Field() string
- func (e GetAdministratorReqValidationError) Key() bool
- func (e GetAdministratorReqValidationError) Reason() string
- type RecoverAdministratorReq
- func (*RecoverAdministratorReq) Descriptor() ([]byte, []int)deprecated
- func (x *RecoverAdministratorReq) GetId() int64
- func (*RecoverAdministratorReq) ProtoMessage()
- func (x *RecoverAdministratorReq) ProtoReflect() protoreflect.Message
- func (x *RecoverAdministratorReq) Reset()
- func (x *RecoverAdministratorReq) String() string
- func (m *RecoverAdministratorReq) Validate() error
- func (m *RecoverAdministratorReq) ValidateAll() error
- type RecoverAdministratorReqMultiError
- type RecoverAdministratorReqValidationError
- func (e RecoverAdministratorReqValidationError) Cause() error
- func (e RecoverAdministratorReqValidationError) Error() string
- func (e RecoverAdministratorReqValidationError) ErrorName() string
- func (e RecoverAdministratorReqValidationError) Field() string
- func (e RecoverAdministratorReqValidationError) Key() bool
- func (e RecoverAdministratorReqValidationError) Reason() string
- type UnimplementedAdministratorServiceServer
- 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
- type UpdateAdministratorReq
- func (*UpdateAdministratorReq) Descriptor() ([]byte, []int)deprecated
- 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 (*UpdateAdministratorReq) ProtoMessage()
- func (x *UpdateAdministratorReq) ProtoReflect() protoreflect.Message
- func (x *UpdateAdministratorReq) Reset()
- func (x *UpdateAdministratorReq) String() string
- func (m *UpdateAdministratorReq) Validate() error
- func (m *UpdateAdministratorReq) ValidateAll() error
- type UpdateAdministratorReqMultiError
- type UpdateAdministratorReqValidationError
- func (e UpdateAdministratorReqValidationError) Cause() error
- func (e UpdateAdministratorReqValidationError) Error() string
- func (e UpdateAdministratorReqValidationError) ErrorName() string
- func (e UpdateAdministratorReqValidationError) Field() string
- func (e UpdateAdministratorReqValidationError) Key() bool
- func (e UpdateAdministratorReqValidationError) Reason() string
- type VerifyAdministratorPasswordReq
- func (*VerifyAdministratorPasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyAdministratorPasswordReq) GetId() int64
- func (x *VerifyAdministratorPasswordReq) GetPassword() string
- func (*VerifyAdministratorPasswordReq) ProtoMessage()
- func (x *VerifyAdministratorPasswordReq) ProtoReflect() protoreflect.Message
- func (x *VerifyAdministratorPasswordReq) Reset()
- func (x *VerifyAdministratorPasswordReq) String() string
- func (m *VerifyAdministratorPasswordReq) Validate() error
- func (m *VerifyAdministratorPasswordReq) ValidateAll() error
- type VerifyAdministratorPasswordReqMultiError
- type VerifyAdministratorPasswordReqValidationError
- func (e VerifyAdministratorPasswordReqValidationError) Cause() error
- func (e VerifyAdministratorPasswordReqValidationError) Error() string
- func (e VerifyAdministratorPasswordReqValidationError) ErrorName() string
- func (e VerifyAdministratorPasswordReqValidationError) Field() string
- func (e VerifyAdministratorPasswordReqValidationError) Key() bool
- func (e VerifyAdministratorPasswordReqValidationError) Reason() string
Constants ¶
const ( AdministratorService_GetAdministratorList_FullMethodName = "/administrator.v1.AdministratorService/GetAdministratorList" AdministratorService_CreateAdministrator_FullMethodName = "/administrator.v1.AdministratorService/CreateAdministrator" AdministratorService_UpdateAdministrator_FullMethodName = "/administrator.v1.AdministratorService/UpdateAdministrator" AdministratorService_GetAdministrator_FullMethodName = "/administrator.v1.AdministratorService/GetAdministrator" AdministratorService_DeleteAdministrator_FullMethodName = "/administrator.v1.AdministratorService/DeleteAdministrator" AdministratorService_RecoverAdministrator_FullMethodName = "/administrator.v1.AdministratorService/RecoverAdministrator" AdministratorService_VerifyAdministratorPassword_FullMethodName = "/administrator.v1.AdministratorService/VerifyAdministratorPassword" AdministratorService_AdministratorStatusChange_FullMethodName = "/administrator.v1.AdministratorService/AdministratorStatusChange" AdministratorService_AdministratorLoginSuccess_FullMethodName = "/administrator.v1.AdministratorService/AdministratorLoginSuccess" )
const OperationAdministratorServiceAdministratorLoginSuccess = "/administrator.v1.AdministratorService/AdministratorLoginSuccess"
const OperationAdministratorServiceAdministratorStatusChange = "/administrator.v1.AdministratorService/AdministratorStatusChange"
const OperationAdministratorServiceCreateAdministrator = "/administrator.v1.AdministratorService/CreateAdministrator"
const OperationAdministratorServiceDeleteAdministrator = "/administrator.v1.AdministratorService/DeleteAdministrator"
const OperationAdministratorServiceGetAdministrator = "/administrator.v1.AdministratorService/GetAdministrator"
const OperationAdministratorServiceGetAdministratorList = "/administrator.v1.AdministratorService/GetAdministratorList"
const OperationAdministratorServiceRecoverAdministrator = "/administrator.v1.AdministratorService/RecoverAdministrator"
const OperationAdministratorServiceUpdateAdministrator = "/administrator.v1.AdministratorService/UpdateAdministrator"
const OperationAdministratorServiceVerifyAdministratorPassword = "/administrator.v1.AdministratorService/VerifyAdministratorPassword"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "RECORD_NOT_FOUND", 1: "RECORD_ALREADY_EXISTS", 2: "BAD_REQUEST", 3: "SYSTEM_ERROR", } ErrorReason_value = map[string]int32{ "RECORD_NOT_FOUND": 0, "RECORD_ALREADY_EXISTS": 1, "BAD_REQUEST": 2, "SYSTEM_ERROR": 3, } )
Enum value maps for ErrorReason.
var AdministratorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "administrator.v1.AdministratorService", HandlerType: (*AdministratorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAdministratorList", Handler: _AdministratorService_GetAdministratorList_Handler, }, { MethodName: "CreateAdministrator", Handler: _AdministratorService_CreateAdministrator_Handler, }, { MethodName: "UpdateAdministrator", Handler: _AdministratorService_UpdateAdministrator_Handler, }, { MethodName: "GetAdministrator", Handler: _AdministratorService_GetAdministrator_Handler, }, { MethodName: "DeleteAdministrator", Handler: _AdministratorService_DeleteAdministrator_Handler, }, { MethodName: "RecoverAdministrator", Handler: _AdministratorService_RecoverAdministrator_Handler, }, { MethodName: "VerifyAdministratorPassword", Handler: _AdministratorService_VerifyAdministratorPassword_Handler, }, { MethodName: "AdministratorStatusChange", Handler: _AdministratorService_AdministratorStatusChange_Handler, }, { MethodName: "AdministratorLoginSuccess", Handler: _AdministratorService_AdministratorLoginSuccess_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "administrator/v1/administrator.proto", }
AdministratorService_ServiceDesc is the grpc.ServiceDesc for AdministratorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_administrator_v1_administrator_proto protoreflect.FileDescriptor
var File_administrator_v1_error_reason_proto protoreflect.FileDescriptor
Functions ¶
func ErrorBadRequest ¶
func ErrorRecordNotFound ¶
func ErrorSystemError ¶
func IsBadRequest ¶
func IsRecordAlreadyExists ¶
func IsRecordNotFound ¶
func IsSystemError ¶
func RegisterAdministratorServiceHTTPServer ¶
func RegisterAdministratorServiceHTTPServer(s *http.Server, srv AdministratorServiceHTTPServer)
func RegisterAdministratorServiceServer ¶
func RegisterAdministratorServiceServer(s grpc.ServiceRegistrar, srv AdministratorServiceServer)
Types ¶
type Administrator ¶
type Administrator struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户名 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // 手机号 Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` // 昵称 Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称 Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` // 状态 true正常 false冻结 Status bool `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` // 角色 Role string `protobuf:"bytes,7,opt,name=role,proto3" json:"role,omitempty"` // 上次登录时间 LastLoginTime string `protobuf:"bytes,8,opt,name=last_login_time,json=lastLoginTime,proto3" json:"last_login_time,omitempty"` // 上次登录ip LastLoginIp string `protobuf:"bytes,9,opt,name=last_login_ip,json=lastLoginIp,proto3" json:"last_login_ip,omitempty"` // 创建时间 CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 更新时间 UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 删除时间 DeletedAt string `protobuf:"bytes,12,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*Administrator) Descriptor
deprecated
func (*Administrator) Descriptor() ([]byte, []int)
Deprecated: Use Administrator.ProtoReflect.Descriptor instead.
func (*Administrator) GetAvatar ¶
func (x *Administrator) GetAvatar() string
func (*Administrator) GetCreatedAt ¶
func (x *Administrator) GetCreatedAt() string
func (*Administrator) GetDeletedAt ¶
func (x *Administrator) GetDeletedAt() string
func (*Administrator) GetId ¶
func (x *Administrator) GetId() int64
func (*Administrator) GetLastLoginIp ¶
func (x *Administrator) GetLastLoginIp() string
func (*Administrator) GetLastLoginTime ¶
func (x *Administrator) GetLastLoginTime() string
func (*Administrator) GetMobile ¶
func (x *Administrator) GetMobile() string
func (*Administrator) GetNickname ¶
func (x *Administrator) GetNickname() string
func (*Administrator) GetRole ¶
func (x *Administrator) GetRole() string
func (*Administrator) GetStatus ¶
func (x *Administrator) GetStatus() bool
func (*Administrator) GetUpdatedAt ¶
func (x *Administrator) GetUpdatedAt() string
func (*Administrator) GetUsername ¶
func (x *Administrator) GetUsername() string
func (*Administrator) ProtoMessage ¶
func (*Administrator) ProtoMessage()
func (*Administrator) ProtoReflect ¶
func (x *Administrator) ProtoReflect() protoreflect.Message
func (*Administrator) Reset ¶
func (x *Administrator) Reset()
func (*Administrator) String ¶
func (x *Administrator) String() string
func (*Administrator) Validate ¶
func (m *Administrator) Validate() error
Validate checks the field values on Administrator with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Administrator) ValidateAll ¶
func (m *Administrator) ValidateAll() error
ValidateAll checks the field values on Administrator with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AdministratorMultiError, or nil if none found.
type AdministratorLoginSuccessReq ¶
type AdministratorLoginSuccessReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` LastLoginTime string `protobuf:"bytes,2,opt,name=last_login_time,json=lastLoginTime,proto3" json:"last_login_time,omitempty"` LastLoginIp string `protobuf:"bytes,3,opt,name=last_login_ip,json=lastLoginIp,proto3" json:"last_login_ip,omitempty"` // contains filtered or unexported fields }
func (*AdministratorLoginSuccessReq) Descriptor
deprecated
func (*AdministratorLoginSuccessReq) Descriptor() ([]byte, []int)
Deprecated: Use AdministratorLoginSuccessReq.ProtoReflect.Descriptor instead.
func (*AdministratorLoginSuccessReq) GetId ¶
func (x *AdministratorLoginSuccessReq) GetId() int64
func (*AdministratorLoginSuccessReq) GetLastLoginIp ¶
func (x *AdministratorLoginSuccessReq) GetLastLoginIp() string
func (*AdministratorLoginSuccessReq) GetLastLoginTime ¶
func (x *AdministratorLoginSuccessReq) GetLastLoginTime() string
func (*AdministratorLoginSuccessReq) ProtoMessage ¶
func (*AdministratorLoginSuccessReq) ProtoMessage()
func (*AdministratorLoginSuccessReq) ProtoReflect ¶
func (x *AdministratorLoginSuccessReq) ProtoReflect() protoreflect.Message
func (*AdministratorLoginSuccessReq) Reset ¶
func (x *AdministratorLoginSuccessReq) Reset()
func (*AdministratorLoginSuccessReq) String ¶
func (x *AdministratorLoginSuccessReq) String() string
func (*AdministratorLoginSuccessReq) Validate ¶
func (m *AdministratorLoginSuccessReq) Validate() error
Validate checks the field values on AdministratorLoginSuccessReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AdministratorLoginSuccessReq) ValidateAll ¶
func (m *AdministratorLoginSuccessReq) ValidateAll() error
ValidateAll checks the field values on AdministratorLoginSuccessReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AdministratorLoginSuccessReqMultiError, or nil if none found.
type AdministratorLoginSuccessReqMultiError ¶
type AdministratorLoginSuccessReqMultiError []error
AdministratorLoginSuccessReqMultiError is an error wrapping multiple validation errors returned by AdministratorLoginSuccessReq.ValidateAll() if the designated constraints aren't met.
func (AdministratorLoginSuccessReqMultiError) AllErrors ¶
func (m AdministratorLoginSuccessReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AdministratorLoginSuccessReqMultiError) Error ¶
func (m AdministratorLoginSuccessReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AdministratorLoginSuccessReqValidationError ¶
type AdministratorLoginSuccessReqValidationError struct {
// contains filtered or unexported fields
}
AdministratorLoginSuccessReqValidationError is the validation error returned by AdministratorLoginSuccessReq.Validate if the designated constraints aren't met.
func (AdministratorLoginSuccessReqValidationError) Cause ¶
func (e AdministratorLoginSuccessReqValidationError) Cause() error
Cause function returns cause value.
func (AdministratorLoginSuccessReqValidationError) Error ¶
func (e AdministratorLoginSuccessReqValidationError) Error() string
Error satisfies the builtin error interface
func (AdministratorLoginSuccessReqValidationError) ErrorName ¶
func (e AdministratorLoginSuccessReqValidationError) ErrorName() string
ErrorName returns error name.
func (AdministratorLoginSuccessReqValidationError) Field ¶
func (e AdministratorLoginSuccessReqValidationError) Field() string
Field function returns field value.
func (AdministratorLoginSuccessReqValidationError) Key ¶
func (e AdministratorLoginSuccessReqValidationError) Key() bool
Key function returns key value.
func (AdministratorLoginSuccessReqValidationError) Reason ¶
func (e AdministratorLoginSuccessReqValidationError) Reason() string
Reason function returns reason value.
type AdministratorMultiError ¶
type AdministratorMultiError []error
AdministratorMultiError is an error wrapping multiple validation errors returned by Administrator.ValidateAll() if the designated constraints aren't met.
func (AdministratorMultiError) AllErrors ¶
func (m AdministratorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AdministratorMultiError) Error ¶
func (m AdministratorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AdministratorServiceClient ¶
type AdministratorServiceClient interface { // 列表 GetAdministratorList(ctx context.Context, in *GetAdministratorListReq, opts ...grpc.CallOption) (*GetAdministratorListPageRes, error) // 新增管理员 CreateAdministrator(ctx context.Context, in *CreateAdministratorReq, opts ...grpc.CallOption) (*Administrator, error) // 更新管理员 UpdateAdministrator(ctx context.Context, in *UpdateAdministratorReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 管理员详情 GetAdministrator(ctx context.Context, in *GetAdministratorReq, opts ...grpc.CallOption) (*Administrator, error) // 删除管理员 DeleteAdministrator(ctx context.Context, in *DeleteAdministratorReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 恢复管理员 RecoverAdministrator(ctx context.Context, in *RecoverAdministratorReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 验证管理员密码 VerifyAdministratorPassword(ctx context.Context, in *VerifyAdministratorPasswordReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 更改管理员状态 AdministratorStatusChange(ctx context.Context, in *AdministratorStatusChangeReq, opts ...grpc.CallOption) (*emptypb.Empty, error) AdministratorLoginSuccess(ctx context.Context, in *AdministratorLoginSuccessReq, opts ...grpc.CallOption) (*emptypb.Empty, error) }
AdministratorServiceClient is the client API for AdministratorService 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 NewAdministratorServiceClient ¶
func NewAdministratorServiceClient(cc grpc.ClientConnInterface) AdministratorServiceClient
type AdministratorServiceHTTPClient ¶
type AdministratorServiceHTTPClient interface { AdministratorLoginSuccess(ctx context.Context, req *AdministratorLoginSuccessReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) AdministratorStatusChange(ctx context.Context, req *AdministratorStatusChangeReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) CreateAdministrator(ctx context.Context, req *CreateAdministratorReq, opts ...http.CallOption) (rsp *Administrator, err error) DeleteAdministrator(ctx context.Context, req *DeleteAdministratorReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetAdministrator(ctx context.Context, req *GetAdministratorReq, opts ...http.CallOption) (rsp *Administrator, err error) GetAdministratorList(ctx context.Context, req *GetAdministratorListReq, opts ...http.CallOption) (rsp *GetAdministratorListPageRes, err error) RecoverAdministrator(ctx context.Context, req *RecoverAdministratorReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateAdministrator(ctx context.Context, req *UpdateAdministratorReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) VerifyAdministratorPassword(ctx context.Context, req *VerifyAdministratorPasswordReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewAdministratorServiceHTTPClient ¶
func NewAdministratorServiceHTTPClient(client *http.Client) AdministratorServiceHTTPClient
type AdministratorServiceHTTPClientImpl ¶
type AdministratorServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AdministratorServiceHTTPClientImpl) AdministratorLoginSuccess ¶
func (c *AdministratorServiceHTTPClientImpl) AdministratorLoginSuccess(ctx context.Context, in *AdministratorLoginSuccessReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdministratorServiceHTTPClientImpl) AdministratorStatusChange ¶
func (c *AdministratorServiceHTTPClientImpl) AdministratorStatusChange(ctx context.Context, in *AdministratorStatusChangeReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdministratorServiceHTTPClientImpl) CreateAdministrator ¶
func (c *AdministratorServiceHTTPClientImpl) CreateAdministrator(ctx context.Context, in *CreateAdministratorReq, opts ...http.CallOption) (*Administrator, error)
func (*AdministratorServiceHTTPClientImpl) DeleteAdministrator ¶
func (c *AdministratorServiceHTTPClientImpl) DeleteAdministrator(ctx context.Context, in *DeleteAdministratorReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdministratorServiceHTTPClientImpl) GetAdministrator ¶
func (c *AdministratorServiceHTTPClientImpl) GetAdministrator(ctx context.Context, in *GetAdministratorReq, opts ...http.CallOption) (*Administrator, error)
func (*AdministratorServiceHTTPClientImpl) GetAdministratorList ¶
func (c *AdministratorServiceHTTPClientImpl) GetAdministratorList(ctx context.Context, in *GetAdministratorListReq, opts ...http.CallOption) (*GetAdministratorListPageRes, error)
func (*AdministratorServiceHTTPClientImpl) RecoverAdministrator ¶
func (c *AdministratorServiceHTTPClientImpl) RecoverAdministrator(ctx context.Context, in *RecoverAdministratorReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdministratorServiceHTTPClientImpl) UpdateAdministrator ¶
func (c *AdministratorServiceHTTPClientImpl) UpdateAdministrator(ctx context.Context, in *UpdateAdministratorReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdministratorServiceHTTPClientImpl) VerifyAdministratorPassword ¶
func (c *AdministratorServiceHTTPClientImpl) VerifyAdministratorPassword(ctx context.Context, in *VerifyAdministratorPasswordReq, opts ...http.CallOption) (*emptypb.Empty, error)
type AdministratorServiceHTTPServer ¶
type AdministratorServiceHTTPServer interface { AdministratorLoginSuccess(context.Context, *AdministratorLoginSuccessReq) (*emptypb.Empty, error) AdministratorStatusChange(context.Context, *AdministratorStatusChangeReq) (*emptypb.Empty, error) CreateAdministrator(context.Context, *CreateAdministratorReq) (*Administrator, error) DeleteAdministrator(context.Context, *DeleteAdministratorReq) (*emptypb.Empty, error) GetAdministrator(context.Context, *GetAdministratorReq) (*Administrator, error) GetAdministratorList(context.Context, *GetAdministratorListReq) (*GetAdministratorListPageRes, error) RecoverAdministrator(context.Context, *RecoverAdministratorReq) (*emptypb.Empty, error) UpdateAdministrator(context.Context, *UpdateAdministratorReq) (*emptypb.Empty, error) VerifyAdministratorPassword(context.Context, *VerifyAdministratorPasswordReq) (*emptypb.Empty, error) }
type AdministratorServiceServer ¶
type AdministratorServiceServer interface { // 列表 GetAdministratorList(context.Context, *GetAdministratorListReq) (*GetAdministratorListPageRes, error) // 新增管理员 CreateAdministrator(context.Context, *CreateAdministratorReq) (*Administrator, error) // 更新管理员 UpdateAdministrator(context.Context, *UpdateAdministratorReq) (*emptypb.Empty, error) // 管理员详情 GetAdministrator(context.Context, *GetAdministratorReq) (*Administrator, error) // 删除管理员 DeleteAdministrator(context.Context, *DeleteAdministratorReq) (*emptypb.Empty, error) // 恢复管理员 RecoverAdministrator(context.Context, *RecoverAdministratorReq) (*emptypb.Empty, error) // 验证管理员密码 VerifyAdministratorPassword(context.Context, *VerifyAdministratorPasswordReq) (*emptypb.Empty, error) // 更改管理员状态 AdministratorStatusChange(context.Context, *AdministratorStatusChangeReq) (*emptypb.Empty, error) AdministratorLoginSuccess(context.Context, *AdministratorLoginSuccessReq) (*emptypb.Empty, error) // contains filtered or unexported methods }
AdministratorServiceServer is the server API for AdministratorService service. All implementations must embed UnimplementedAdministratorServiceServer for forward compatibility
type AdministratorStatusChangeReq ¶
type AdministratorStatusChangeReq struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 状态 true正常 false冻结 Status bool `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AdministratorStatusChangeReq) Descriptor
deprecated
func (*AdministratorStatusChangeReq) Descriptor() ([]byte, []int)
Deprecated: Use AdministratorStatusChangeReq.ProtoReflect.Descriptor instead.
func (*AdministratorStatusChangeReq) GetId ¶
func (x *AdministratorStatusChangeReq) GetId() int64
func (*AdministratorStatusChangeReq) GetStatus ¶
func (x *AdministratorStatusChangeReq) GetStatus() bool
func (*AdministratorStatusChangeReq) ProtoMessage ¶
func (*AdministratorStatusChangeReq) ProtoMessage()
func (*AdministratorStatusChangeReq) ProtoReflect ¶
func (x *AdministratorStatusChangeReq) ProtoReflect() protoreflect.Message
func (*AdministratorStatusChangeReq) Reset ¶
func (x *AdministratorStatusChangeReq) Reset()
func (*AdministratorStatusChangeReq) String ¶
func (x *AdministratorStatusChangeReq) String() string
func (*AdministratorStatusChangeReq) Validate ¶
func (m *AdministratorStatusChangeReq) Validate() error
Validate checks the field values on AdministratorStatusChangeReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AdministratorStatusChangeReq) ValidateAll ¶
func (m *AdministratorStatusChangeReq) ValidateAll() error
ValidateAll checks the field values on AdministratorStatusChangeReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AdministratorStatusChangeReqMultiError, or nil if none found.
type AdministratorStatusChangeReqMultiError ¶
type AdministratorStatusChangeReqMultiError []error
AdministratorStatusChangeReqMultiError is an error wrapping multiple validation errors returned by AdministratorStatusChangeReq.ValidateAll() if the designated constraints aren't met.
func (AdministratorStatusChangeReqMultiError) AllErrors ¶
func (m AdministratorStatusChangeReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AdministratorStatusChangeReqMultiError) Error ¶
func (m AdministratorStatusChangeReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AdministratorStatusChangeReqValidationError ¶
type AdministratorStatusChangeReqValidationError struct {
// contains filtered or unexported fields
}
AdministratorStatusChangeReqValidationError is the validation error returned by AdministratorStatusChangeReq.Validate if the designated constraints aren't met.
func (AdministratorStatusChangeReqValidationError) Cause ¶
func (e AdministratorStatusChangeReqValidationError) Cause() error
Cause function returns cause value.
func (AdministratorStatusChangeReqValidationError) Error ¶
func (e AdministratorStatusChangeReqValidationError) Error() string
Error satisfies the builtin error interface
func (AdministratorStatusChangeReqValidationError) ErrorName ¶
func (e AdministratorStatusChangeReqValidationError) ErrorName() string
ErrorName returns error name.
func (AdministratorStatusChangeReqValidationError) Field ¶
func (e AdministratorStatusChangeReqValidationError) Field() string
Field function returns field value.
func (AdministratorStatusChangeReqValidationError) Key ¶
func (e AdministratorStatusChangeReqValidationError) Key() bool
Key function returns key value.
func (AdministratorStatusChangeReqValidationError) Reason ¶
func (e AdministratorStatusChangeReqValidationError) Reason() string
Reason function returns reason value.
type AdministratorValidationError ¶
type AdministratorValidationError struct {
// contains filtered or unexported fields
}
AdministratorValidationError is the validation error returned by Administrator.Validate if the designated constraints aren't met.
func (AdministratorValidationError) Cause ¶
func (e AdministratorValidationError) Cause() error
Cause function returns cause value.
func (AdministratorValidationError) Error ¶
func (e AdministratorValidationError) Error() string
Error satisfies the builtin error interface
func (AdministratorValidationError) ErrorName ¶
func (e AdministratorValidationError) ErrorName() string
ErrorName returns error name.
func (AdministratorValidationError) Field ¶
func (e AdministratorValidationError) Field() string
Field function returns field value.
func (AdministratorValidationError) Key ¶
func (e AdministratorValidationError) Key() bool
Key function returns key value.
func (AdministratorValidationError) Reason ¶
func (e AdministratorValidationError) Reason() string
Reason function returns reason value.
type CreateAdministratorReq ¶
type CreateAdministratorReq struct { // 用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 密码 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 手机号 Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` // 昵称 Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"` // 头像 Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` // 状态 true正常 false冻结 Status bool `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` // 当前角色 Role string `protobuf:"bytes,7,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*CreateAdministratorReq) Descriptor
deprecated
func (*CreateAdministratorReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateAdministratorReq.ProtoReflect.Descriptor instead.
func (*CreateAdministratorReq) GetAvatar ¶
func (x *CreateAdministratorReq) GetAvatar() string
func (*CreateAdministratorReq) GetMobile ¶
func (x *CreateAdministratorReq) GetMobile() string
func (*CreateAdministratorReq) GetNickname ¶
func (x *CreateAdministratorReq) GetNickname() string
func (*CreateAdministratorReq) GetPassword ¶
func (x *CreateAdministratorReq) GetPassword() string
func (*CreateAdministratorReq) GetRole ¶
func (x *CreateAdministratorReq) GetRole() string
func (*CreateAdministratorReq) GetStatus ¶
func (x *CreateAdministratorReq) GetStatus() bool
func (*CreateAdministratorReq) GetUsername ¶
func (x *CreateAdministratorReq) GetUsername() string
func (*CreateAdministratorReq) ProtoMessage ¶
func (*CreateAdministratorReq) ProtoMessage()
func (*CreateAdministratorReq) ProtoReflect ¶
func (x *CreateAdministratorReq) ProtoReflect() protoreflect.Message
func (*CreateAdministratorReq) Reset ¶
func (x *CreateAdministratorReq) Reset()
func (*CreateAdministratorReq) String ¶
func (x *CreateAdministratorReq) String() string
func (*CreateAdministratorReq) Validate ¶
func (m *CreateAdministratorReq) Validate() error
Validate checks the field values on CreateAdministratorReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateAdministratorReq) ValidateAll ¶
func (m *CreateAdministratorReq) ValidateAll() error
ValidateAll checks the field values on CreateAdministratorReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateAdministratorReqMultiError, or nil if none found.
type CreateAdministratorReqMultiError ¶
type CreateAdministratorReqMultiError []error
CreateAdministratorReqMultiError is an error wrapping multiple validation errors returned by CreateAdministratorReq.ValidateAll() if the designated constraints aren't met.
func (CreateAdministratorReqMultiError) AllErrors ¶
func (m CreateAdministratorReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAdministratorReqMultiError) Error ¶
func (m CreateAdministratorReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAdministratorReqValidationError ¶
type CreateAdministratorReqValidationError struct {
// contains filtered or unexported fields
}
CreateAdministratorReqValidationError is the validation error returned by CreateAdministratorReq.Validate if the designated constraints aren't met.
func (CreateAdministratorReqValidationError) Cause ¶
func (e CreateAdministratorReqValidationError) Cause() error
Cause function returns cause value.
func (CreateAdministratorReqValidationError) Error ¶
func (e CreateAdministratorReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAdministratorReqValidationError) ErrorName ¶
func (e CreateAdministratorReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAdministratorReqValidationError) Field ¶
func (e CreateAdministratorReqValidationError) Field() string
Field function returns field value.
func (CreateAdministratorReqValidationError) Key ¶
func (e CreateAdministratorReqValidationError) Key() bool
Key function returns key value.
func (CreateAdministratorReqValidationError) Reason ¶
func (e CreateAdministratorReqValidationError) Reason() string
Reason function returns reason value.
type DeleteAdministratorReq ¶
type DeleteAdministratorReq struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteAdministratorReq) Descriptor
deprecated
func (*DeleteAdministratorReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAdministratorReq.ProtoReflect.Descriptor instead.
func (*DeleteAdministratorReq) GetId ¶
func (x *DeleteAdministratorReq) GetId() int64
func (*DeleteAdministratorReq) ProtoMessage ¶
func (*DeleteAdministratorReq) ProtoMessage()
func (*DeleteAdministratorReq) ProtoReflect ¶
func (x *DeleteAdministratorReq) ProtoReflect() protoreflect.Message
func (*DeleteAdministratorReq) Reset ¶
func (x *DeleteAdministratorReq) Reset()
func (*DeleteAdministratorReq) String ¶
func (x *DeleteAdministratorReq) String() string
func (*DeleteAdministratorReq) Validate ¶
func (m *DeleteAdministratorReq) Validate() error
Validate checks the field values on DeleteAdministratorReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteAdministratorReq) ValidateAll ¶
func (m *DeleteAdministratorReq) ValidateAll() error
ValidateAll checks the field values on DeleteAdministratorReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteAdministratorReqMultiError, or nil if none found.
type DeleteAdministratorReqMultiError ¶
type DeleteAdministratorReqMultiError []error
DeleteAdministratorReqMultiError is an error wrapping multiple validation errors returned by DeleteAdministratorReq.ValidateAll() if the designated constraints aren't met.
func (DeleteAdministratorReqMultiError) AllErrors ¶
func (m DeleteAdministratorReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteAdministratorReqMultiError) Error ¶
func (m DeleteAdministratorReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteAdministratorReqValidationError ¶
type DeleteAdministratorReqValidationError struct {
// contains filtered or unexported fields
}
DeleteAdministratorReqValidationError is the validation error returned by DeleteAdministratorReq.Validate if the designated constraints aren't met.
func (DeleteAdministratorReqValidationError) Cause ¶
func (e DeleteAdministratorReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteAdministratorReqValidationError) Error ¶
func (e DeleteAdministratorReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteAdministratorReqValidationError) ErrorName ¶
func (e DeleteAdministratorReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteAdministratorReqValidationError) Field ¶
func (e DeleteAdministratorReqValidationError) Field() string
Field function returns field value.
func (DeleteAdministratorReqValidationError) Key ¶
func (e DeleteAdministratorReqValidationError) Key() bool
Key function returns key value.
func (DeleteAdministratorReqValidationError) Reason ¶
func (e DeleteAdministratorReqValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_RECORD_NOT_FOUND ErrorReason = 0 ErrorReason_RECORD_ALREADY_EXISTS ErrorReason = 1 ErrorReason_BAD_REQUEST ErrorReason = 2 ErrorReason_SYSTEM_ERROR ErrorReason = 3 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type GetAdministratorListPageRes ¶
type GetAdministratorListPageRes struct { // 总记录数 Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 列表 List []*Administrator `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetAdministratorListPageRes) Descriptor
deprecated
func (*GetAdministratorListPageRes) Descriptor() ([]byte, []int)
Deprecated: Use GetAdministratorListPageRes.ProtoReflect.Descriptor instead.
func (*GetAdministratorListPageRes) GetList ¶
func (x *GetAdministratorListPageRes) GetList() []*Administrator
func (*GetAdministratorListPageRes) GetTotal ¶
func (x *GetAdministratorListPageRes) GetTotal() int64
func (*GetAdministratorListPageRes) ProtoMessage ¶
func (*GetAdministratorListPageRes) ProtoMessage()
func (*GetAdministratorListPageRes) ProtoReflect ¶
func (x *GetAdministratorListPageRes) ProtoReflect() protoreflect.Message
func (*GetAdministratorListPageRes) Reset ¶
func (x *GetAdministratorListPageRes) Reset()
func (*GetAdministratorListPageRes) String ¶
func (x *GetAdministratorListPageRes) String() string
func (*GetAdministratorListPageRes) Validate ¶
func (m *GetAdministratorListPageRes) Validate() error
Validate checks the field values on GetAdministratorListPageRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetAdministratorListPageRes) ValidateAll ¶
func (m *GetAdministratorListPageRes) ValidateAll() error
ValidateAll checks the field values on GetAdministratorListPageRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAdministratorListPageResMultiError, or nil if none found.
type GetAdministratorListPageResMultiError ¶
type GetAdministratorListPageResMultiError []error
GetAdministratorListPageResMultiError is an error wrapping multiple validation errors returned by GetAdministratorListPageRes.ValidateAll() if the designated constraints aren't met.
func (GetAdministratorListPageResMultiError) AllErrors ¶
func (m GetAdministratorListPageResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAdministratorListPageResMultiError) Error ¶
func (m GetAdministratorListPageResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAdministratorListPageResValidationError ¶
type GetAdministratorListPageResValidationError struct {
// contains filtered or unexported fields
}
GetAdministratorListPageResValidationError is the validation error returned by GetAdministratorListPageRes.Validate if the designated constraints aren't met.
func (GetAdministratorListPageResValidationError) Cause ¶
func (e GetAdministratorListPageResValidationError) Cause() error
Cause function returns cause value.
func (GetAdministratorListPageResValidationError) Error ¶
func (e GetAdministratorListPageResValidationError) Error() string
Error satisfies the builtin error interface
func (GetAdministratorListPageResValidationError) ErrorName ¶
func (e GetAdministratorListPageResValidationError) ErrorName() string
ErrorName returns error name.
func (GetAdministratorListPageResValidationError) Field ¶
func (e GetAdministratorListPageResValidationError) Field() string
Field function returns field value.
func (GetAdministratorListPageResValidationError) Key ¶
func (e GetAdministratorListPageResValidationError) Key() bool
Key function returns key value.
func (GetAdministratorListPageResValidationError) Reason ¶
func (e GetAdministratorListPageResValidationError) Reason() string
Reason function returns reason value.
type GetAdministratorListReq ¶
type GetAdministratorListReq struct { // 页码 Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 页记录数 PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 用户名 Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // 手机号 Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` // 昵称 Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` // 状态 true正常 false冻结 Status *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` // 创建开始时间 YYYY-MM-dd CreatedAtStart string `protobuf:"bytes,7,opt,name=created_at_start,json=createdAtStart,proto3" json:"created_at_start,omitempty"` // 创建结束时间 YYYY-MM-dd CreatedAtEnd string `protobuf:"bytes,8,opt,name=created_at_end,json=createdAtEnd,proto3" json:"created_at_end,omitempty"` // contains filtered or unexported fields }
func (*GetAdministratorListReq) Descriptor
deprecated
func (*GetAdministratorListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAdministratorListReq.ProtoReflect.Descriptor instead.
func (*GetAdministratorListReq) GetCreatedAtEnd ¶
func (x *GetAdministratorListReq) GetCreatedAtEnd() string
func (*GetAdministratorListReq) GetCreatedAtStart ¶
func (x *GetAdministratorListReq) GetCreatedAtStart() string
func (*GetAdministratorListReq) GetMobile ¶
func (x *GetAdministratorListReq) GetMobile() string
func (*GetAdministratorListReq) GetNickname ¶
func (x *GetAdministratorListReq) GetNickname() string
func (*GetAdministratorListReq) GetPage ¶
func (x *GetAdministratorListReq) GetPage() int64
func (*GetAdministratorListReq) GetPageSize ¶
func (x *GetAdministratorListReq) GetPageSize() int64
func (*GetAdministratorListReq) GetStatus ¶
func (x *GetAdministratorListReq) GetStatus() *wrapperspb.BoolValue
func (*GetAdministratorListReq) GetUsername ¶
func (x *GetAdministratorListReq) GetUsername() string
func (*GetAdministratorListReq) ProtoMessage ¶
func (*GetAdministratorListReq) ProtoMessage()
func (*GetAdministratorListReq) ProtoReflect ¶
func (x *GetAdministratorListReq) ProtoReflect() protoreflect.Message
func (*GetAdministratorListReq) Reset ¶
func (x *GetAdministratorListReq) Reset()
func (*GetAdministratorListReq) String ¶
func (x *GetAdministratorListReq) String() string
func (*GetAdministratorListReq) Validate ¶
func (m *GetAdministratorListReq) Validate() error
Validate checks the field values on GetAdministratorListReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetAdministratorListReq) ValidateAll ¶
func (m *GetAdministratorListReq) ValidateAll() error
ValidateAll checks the field values on GetAdministratorListReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAdministratorListReqMultiError, or nil if none found.
type GetAdministratorListReqMultiError ¶
type GetAdministratorListReqMultiError []error
GetAdministratorListReqMultiError is an error wrapping multiple validation errors returned by GetAdministratorListReq.ValidateAll() if the designated constraints aren't met.
func (GetAdministratorListReqMultiError) AllErrors ¶
func (m GetAdministratorListReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAdministratorListReqMultiError) Error ¶
func (m GetAdministratorListReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAdministratorListReqValidationError ¶
type GetAdministratorListReqValidationError struct {
// contains filtered or unexported fields
}
GetAdministratorListReqValidationError is the validation error returned by GetAdministratorListReq.Validate if the designated constraints aren't met.
func (GetAdministratorListReqValidationError) Cause ¶
func (e GetAdministratorListReqValidationError) Cause() error
Cause function returns cause value.
func (GetAdministratorListReqValidationError) Error ¶
func (e GetAdministratorListReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetAdministratorListReqValidationError) ErrorName ¶
func (e GetAdministratorListReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetAdministratorListReqValidationError) Field ¶
func (e GetAdministratorListReqValidationError) Field() string
Field function returns field value.
func (GetAdministratorListReqValidationError) Key ¶
func (e GetAdministratorListReqValidationError) Key() bool
Key function returns key value.
func (GetAdministratorListReqValidationError) Reason ¶
func (e GetAdministratorListReqValidationError) Reason() string
Reason function returns reason value.
type GetAdministratorReq ¶
type GetAdministratorReq struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户名 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // 手机号 Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` // 角色 Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*GetAdministratorReq) Descriptor
deprecated
func (*GetAdministratorReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAdministratorReq.ProtoReflect.Descriptor instead.
func (*GetAdministratorReq) GetId ¶
func (x *GetAdministratorReq) GetId() int64
func (*GetAdministratorReq) GetMobile ¶
func (x *GetAdministratorReq) GetMobile() string
func (*GetAdministratorReq) GetRole ¶
func (x *GetAdministratorReq) GetRole() string
func (*GetAdministratorReq) GetUsername ¶
func (x *GetAdministratorReq) GetUsername() string
func (*GetAdministratorReq) ProtoMessage ¶
func (*GetAdministratorReq) ProtoMessage()
func (*GetAdministratorReq) ProtoReflect ¶
func (x *GetAdministratorReq) ProtoReflect() protoreflect.Message
func (*GetAdministratorReq) Reset ¶
func (x *GetAdministratorReq) Reset()
func (*GetAdministratorReq) String ¶
func (x *GetAdministratorReq) String() string
func (*GetAdministratorReq) Validate ¶
func (m *GetAdministratorReq) Validate() error
Validate checks the field values on GetAdministratorReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetAdministratorReq) ValidateAll ¶
func (m *GetAdministratorReq) ValidateAll() error
ValidateAll checks the field values on GetAdministratorReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAdministratorReqMultiError, or nil if none found.
type GetAdministratorReqMultiError ¶
type GetAdministratorReqMultiError []error
GetAdministratorReqMultiError is an error wrapping multiple validation errors returned by GetAdministratorReq.ValidateAll() if the designated constraints aren't met.
func (GetAdministratorReqMultiError) AllErrors ¶
func (m GetAdministratorReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAdministratorReqMultiError) Error ¶
func (m GetAdministratorReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAdministratorReqValidationError ¶
type GetAdministratorReqValidationError struct {
// contains filtered or unexported fields
}
GetAdministratorReqValidationError is the validation error returned by GetAdministratorReq.Validate if the designated constraints aren't met.
func (GetAdministratorReqValidationError) Cause ¶
func (e GetAdministratorReqValidationError) Cause() error
Cause function returns cause value.
func (GetAdministratorReqValidationError) Error ¶
func (e GetAdministratorReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetAdministratorReqValidationError) ErrorName ¶
func (e GetAdministratorReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetAdministratorReqValidationError) Field ¶
func (e GetAdministratorReqValidationError) Field() string
Field function returns field value.
func (GetAdministratorReqValidationError) Key ¶
func (e GetAdministratorReqValidationError) Key() bool
Key function returns key value.
func (GetAdministratorReqValidationError) Reason ¶
func (e GetAdministratorReqValidationError) Reason() string
Reason function returns reason value.
type RecoverAdministratorReq ¶
type RecoverAdministratorReq struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RecoverAdministratorReq) Descriptor
deprecated
func (*RecoverAdministratorReq) Descriptor() ([]byte, []int)
Deprecated: Use RecoverAdministratorReq.ProtoReflect.Descriptor instead.
func (*RecoverAdministratorReq) GetId ¶
func (x *RecoverAdministratorReq) GetId() int64
func (*RecoverAdministratorReq) ProtoMessage ¶
func (*RecoverAdministratorReq) ProtoMessage()
func (*RecoverAdministratorReq) ProtoReflect ¶
func (x *RecoverAdministratorReq) ProtoReflect() protoreflect.Message
func (*RecoverAdministratorReq) Reset ¶
func (x *RecoverAdministratorReq) Reset()
func (*RecoverAdministratorReq) String ¶
func (x *RecoverAdministratorReq) String() string
func (*RecoverAdministratorReq) Validate ¶
func (m *RecoverAdministratorReq) Validate() error
Validate checks the field values on RecoverAdministratorReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RecoverAdministratorReq) ValidateAll ¶
func (m *RecoverAdministratorReq) ValidateAll() error
ValidateAll checks the field values on RecoverAdministratorReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RecoverAdministratorReqMultiError, or nil if none found.
type RecoverAdministratorReqMultiError ¶
type RecoverAdministratorReqMultiError []error
RecoverAdministratorReqMultiError is an error wrapping multiple validation errors returned by RecoverAdministratorReq.ValidateAll() if the designated constraints aren't met.
func (RecoverAdministratorReqMultiError) AllErrors ¶
func (m RecoverAdministratorReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RecoverAdministratorReqMultiError) Error ¶
func (m RecoverAdministratorReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RecoverAdministratorReqValidationError ¶
type RecoverAdministratorReqValidationError struct {
// contains filtered or unexported fields
}
RecoverAdministratorReqValidationError is the validation error returned by RecoverAdministratorReq.Validate if the designated constraints aren't met.
func (RecoverAdministratorReqValidationError) Cause ¶
func (e RecoverAdministratorReqValidationError) Cause() error
Cause function returns cause value.
func (RecoverAdministratorReqValidationError) Error ¶
func (e RecoverAdministratorReqValidationError) Error() string
Error satisfies the builtin error interface
func (RecoverAdministratorReqValidationError) ErrorName ¶
func (e RecoverAdministratorReqValidationError) ErrorName() string
ErrorName returns error name.
func (RecoverAdministratorReqValidationError) Field ¶
func (e RecoverAdministratorReqValidationError) Field() string
Field function returns field value.
func (RecoverAdministratorReqValidationError) Key ¶
func (e RecoverAdministratorReqValidationError) Key() bool
Key function returns key value.
func (RecoverAdministratorReqValidationError) Reason ¶
func (e RecoverAdministratorReqValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAdministratorServiceServer ¶
type UnimplementedAdministratorServiceServer struct { }
UnimplementedAdministratorServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAdministratorServiceServer) AdministratorLoginSuccess ¶
func (UnimplementedAdministratorServiceServer) AdministratorLoginSuccess(context.Context, *AdministratorLoginSuccessReq) (*emptypb.Empty, error)
func (UnimplementedAdministratorServiceServer) AdministratorStatusChange ¶
func (UnimplementedAdministratorServiceServer) AdministratorStatusChange(context.Context, *AdministratorStatusChangeReq) (*emptypb.Empty, error)
func (UnimplementedAdministratorServiceServer) CreateAdministrator ¶
func (UnimplementedAdministratorServiceServer) CreateAdministrator(context.Context, *CreateAdministratorReq) (*Administrator, error)
func (UnimplementedAdministratorServiceServer) DeleteAdministrator ¶
func (UnimplementedAdministratorServiceServer) DeleteAdministrator(context.Context, *DeleteAdministratorReq) (*emptypb.Empty, error)
func (UnimplementedAdministratorServiceServer) GetAdministrator ¶
func (UnimplementedAdministratorServiceServer) GetAdministrator(context.Context, *GetAdministratorReq) (*Administrator, error)
func (UnimplementedAdministratorServiceServer) GetAdministratorList ¶
func (UnimplementedAdministratorServiceServer) GetAdministratorList(context.Context, *GetAdministratorListReq) (*GetAdministratorListPageRes, error)
func (UnimplementedAdministratorServiceServer) RecoverAdministrator ¶
func (UnimplementedAdministratorServiceServer) RecoverAdministrator(context.Context, *RecoverAdministratorReq) (*emptypb.Empty, error)
func (UnimplementedAdministratorServiceServer) UpdateAdministrator ¶
func (UnimplementedAdministratorServiceServer) UpdateAdministrator(context.Context, *UpdateAdministratorReq) (*emptypb.Empty, error)
func (UnimplementedAdministratorServiceServer) VerifyAdministratorPassword ¶
func (UnimplementedAdministratorServiceServer) VerifyAdministratorPassword(context.Context, *VerifyAdministratorPasswordReq) (*emptypb.Empty, error)
type UnsafeAdministratorServiceServer ¶
type UnsafeAdministratorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAdministratorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdministratorServiceServer will result in compilation errors.
type UpdateAdministratorReq ¶
type UpdateAdministratorReq struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户名 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // 密码 Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // 手机号 Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` // 昵称 Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` // 头像 Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` // 状态 true正常 false冻结 Status bool `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` // 角色 Role string `protobuf:"bytes,8,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*UpdateAdministratorReq) Descriptor
deprecated
func (*UpdateAdministratorReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAdministratorReq.ProtoReflect.Descriptor instead.
func (*UpdateAdministratorReq) GetAvatar ¶
func (x *UpdateAdministratorReq) GetAvatar() string
func (*UpdateAdministratorReq) GetId ¶
func (x *UpdateAdministratorReq) GetId() int64
func (*UpdateAdministratorReq) GetMobile ¶
func (x *UpdateAdministratorReq) GetMobile() string
func (*UpdateAdministratorReq) GetNickname ¶
func (x *UpdateAdministratorReq) GetNickname() string
func (*UpdateAdministratorReq) GetPassword ¶
func (x *UpdateAdministratorReq) GetPassword() string
func (*UpdateAdministratorReq) GetRole ¶
func (x *UpdateAdministratorReq) GetRole() string
func (*UpdateAdministratorReq) GetStatus ¶
func (x *UpdateAdministratorReq) GetStatus() bool
func (*UpdateAdministratorReq) GetUsername ¶
func (x *UpdateAdministratorReq) GetUsername() string
func (*UpdateAdministratorReq) ProtoMessage ¶
func (*UpdateAdministratorReq) ProtoMessage()
func (*UpdateAdministratorReq) ProtoReflect ¶
func (x *UpdateAdministratorReq) ProtoReflect() protoreflect.Message
func (*UpdateAdministratorReq) Reset ¶
func (x *UpdateAdministratorReq) Reset()
func (*UpdateAdministratorReq) String ¶
func (x *UpdateAdministratorReq) String() string
func (*UpdateAdministratorReq) Validate ¶
func (m *UpdateAdministratorReq) Validate() error
Validate checks the field values on UpdateAdministratorReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateAdministratorReq) ValidateAll ¶
func (m *UpdateAdministratorReq) ValidateAll() error
ValidateAll checks the field values on UpdateAdministratorReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateAdministratorReqMultiError, or nil if none found.
type UpdateAdministratorReqMultiError ¶
type UpdateAdministratorReqMultiError []error
UpdateAdministratorReqMultiError is an error wrapping multiple validation errors returned by UpdateAdministratorReq.ValidateAll() if the designated constraints aren't met.
func (UpdateAdministratorReqMultiError) AllErrors ¶
func (m UpdateAdministratorReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateAdministratorReqMultiError) Error ¶
func (m UpdateAdministratorReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateAdministratorReqValidationError ¶
type UpdateAdministratorReqValidationError struct {
// contains filtered or unexported fields
}
UpdateAdministratorReqValidationError is the validation error returned by UpdateAdministratorReq.Validate if the designated constraints aren't met.
func (UpdateAdministratorReqValidationError) Cause ¶
func (e UpdateAdministratorReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateAdministratorReqValidationError) Error ¶
func (e UpdateAdministratorReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAdministratorReqValidationError) ErrorName ¶
func (e UpdateAdministratorReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAdministratorReqValidationError) Field ¶
func (e UpdateAdministratorReqValidationError) Field() string
Field function returns field value.
func (UpdateAdministratorReqValidationError) Key ¶
func (e UpdateAdministratorReqValidationError) Key() bool
Key function returns key value.
func (UpdateAdministratorReqValidationError) Reason ¶
func (e UpdateAdministratorReqValidationError) Reason() string
Reason function returns reason value.
type VerifyAdministratorPasswordReq ¶
type VerifyAdministratorPasswordReq struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 密码 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*VerifyAdministratorPasswordReq) Descriptor
deprecated
func (*VerifyAdministratorPasswordReq) Descriptor() ([]byte, []int)
Deprecated: Use VerifyAdministratorPasswordReq.ProtoReflect.Descriptor instead.
func (*VerifyAdministratorPasswordReq) GetId ¶
func (x *VerifyAdministratorPasswordReq) GetId() int64
func (*VerifyAdministratorPasswordReq) GetPassword ¶
func (x *VerifyAdministratorPasswordReq) GetPassword() string
func (*VerifyAdministratorPasswordReq) ProtoMessage ¶
func (*VerifyAdministratorPasswordReq) ProtoMessage()
func (*VerifyAdministratorPasswordReq) ProtoReflect ¶
func (x *VerifyAdministratorPasswordReq) ProtoReflect() protoreflect.Message
func (*VerifyAdministratorPasswordReq) Reset ¶
func (x *VerifyAdministratorPasswordReq) Reset()
func (*VerifyAdministratorPasswordReq) String ¶
func (x *VerifyAdministratorPasswordReq) String() string
func (*VerifyAdministratorPasswordReq) Validate ¶
func (m *VerifyAdministratorPasswordReq) Validate() error
Validate checks the field values on VerifyAdministratorPasswordReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*VerifyAdministratorPasswordReq) ValidateAll ¶
func (m *VerifyAdministratorPasswordReq) ValidateAll() error
ValidateAll checks the field values on VerifyAdministratorPasswordReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyAdministratorPasswordReqMultiError, or nil if none found.
type VerifyAdministratorPasswordReqMultiError ¶
type VerifyAdministratorPasswordReqMultiError []error
VerifyAdministratorPasswordReqMultiError is an error wrapping multiple validation errors returned by VerifyAdministratorPasswordReq.ValidateAll() if the designated constraints aren't met.
func (VerifyAdministratorPasswordReqMultiError) AllErrors ¶
func (m VerifyAdministratorPasswordReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyAdministratorPasswordReqMultiError) Error ¶
func (m VerifyAdministratorPasswordReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyAdministratorPasswordReqValidationError ¶
type VerifyAdministratorPasswordReqValidationError struct {
// contains filtered or unexported fields
}
VerifyAdministratorPasswordReqValidationError is the validation error returned by VerifyAdministratorPasswordReq.Validate if the designated constraints aren't met.
func (VerifyAdministratorPasswordReqValidationError) Cause ¶
func (e VerifyAdministratorPasswordReqValidationError) Cause() error
Cause function returns cause value.
func (VerifyAdministratorPasswordReqValidationError) Error ¶
func (e VerifyAdministratorPasswordReqValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyAdministratorPasswordReqValidationError) ErrorName ¶
func (e VerifyAdministratorPasswordReqValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyAdministratorPasswordReqValidationError) Field ¶
func (e VerifyAdministratorPasswordReqValidationError) Field() string
Field function returns field value.
func (VerifyAdministratorPasswordReqValidationError) Key ¶
func (e VerifyAdministratorPasswordReqValidationError) Key() bool
Key function returns key value.
func (VerifyAdministratorPasswordReqValidationError) Reason ¶
func (e VerifyAdministratorPasswordReqValidationError) Reason() string
Reason function returns reason value.