v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationAdministratorServiceAdministratorLoginSuccess = "/administrator.v1.AdministratorService/AdministratorLoginSuccess"
View Source
const OperationAdministratorServiceAdministratorStatusChange = "/administrator.v1.AdministratorService/AdministratorStatusChange"
View Source
const OperationAdministratorServiceCreateAdministrator = "/administrator.v1.AdministratorService/CreateAdministrator"
View Source
const OperationAdministratorServiceDeleteAdministrator = "/administrator.v1.AdministratorService/DeleteAdministrator"
View Source
const OperationAdministratorServiceGetAdministrator = "/administrator.v1.AdministratorService/GetAdministrator"
View Source
const OperationAdministratorServiceGetAdministratorList = "/administrator.v1.AdministratorService/GetAdministratorList"
View Source
const OperationAdministratorServiceRecoverAdministrator = "/administrator.v1.AdministratorService/RecoverAdministrator"
View Source
const OperationAdministratorServiceUpdateAdministrator = "/administrator.v1.AdministratorService/UpdateAdministrator"
View Source
const OperationAdministratorServiceVerifyAdministratorPassword = "/administrator.v1.AdministratorService/VerifyAdministratorPassword"

Variables

View Source
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.

View Source
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)

View Source
var File_administrator_v1_administrator_proto protoreflect.FileDescriptor
View Source
var File_administrator_v1_error_reason_proto protoreflect.FileDescriptor

Functions

func ErrorBadRequest

func ErrorBadRequest(format string, args ...interface{}) *errors.Error

func ErrorRecordAlreadyExists

func ErrorRecordAlreadyExists(format string, args ...interface{}) *errors.Error

func ErrorRecordNotFound

func ErrorRecordNotFound(format string, args ...interface{}) *errors.Error

func ErrorSystemError

func ErrorSystemError(format string, args ...interface{}) *errors.Error

func IsBadRequest

func IsBadRequest(err error) bool

func IsRecordAlreadyExists

func IsRecordAlreadyExists(err error) bool

func IsRecordNotFound

func IsRecordNotFound(err error) bool

func IsSystemError

func IsSystemError(err error) bool

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 (*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 (*AdministratorLoginSuccessReq) Reset

func (x *AdministratorLoginSuccessReq) Reset()

func (*AdministratorLoginSuccessReq) 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

AllErrors returns a list of validation violation errors.

func (AdministratorLoginSuccessReqMultiError) Error

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

Cause function returns cause value.

func (AdministratorLoginSuccessReqValidationError) Error

Error satisfies the builtin error interface

func (AdministratorLoginSuccessReqValidationError) ErrorName

ErrorName returns error name.

func (AdministratorLoginSuccessReqValidationError) Field

Field function returns field value.

func (AdministratorLoginSuccessReqValidationError) Key

Key function returns key value.

func (AdministratorLoginSuccessReqValidationError) Reason

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.

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 (*AdministratorServiceHTTPClientImpl) AdministratorStatusChange

func (*AdministratorServiceHTTPClientImpl) CreateAdministrator

func (*AdministratorServiceHTTPClientImpl) DeleteAdministrator

func (*AdministratorServiceHTTPClientImpl) GetAdministrator

func (*AdministratorServiceHTTPClientImpl) GetAdministratorList

func (*AdministratorServiceHTTPClientImpl) RecoverAdministrator

func (*AdministratorServiceHTTPClientImpl) UpdateAdministrator

func (*AdministratorServiceHTTPClientImpl) VerifyAdministratorPassword

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 (*AdministratorStatusChangeReq) GetStatus

func (x *AdministratorStatusChangeReq) GetStatus() bool

func (*AdministratorStatusChangeReq) ProtoMessage

func (*AdministratorStatusChangeReq) ProtoMessage()

func (*AdministratorStatusChangeReq) ProtoReflect

func (*AdministratorStatusChangeReq) Reset

func (x *AdministratorStatusChangeReq) Reset()

func (*AdministratorStatusChangeReq) 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

AllErrors returns a list of validation violation errors.

func (AdministratorStatusChangeReqMultiError) Error

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

Cause function returns cause value.

func (AdministratorStatusChangeReqValidationError) Error

Error satisfies the builtin error interface

func (AdministratorStatusChangeReqValidationError) ErrorName

ErrorName returns error name.

func (AdministratorStatusChangeReqValidationError) Field

Field function returns field value.

func (AdministratorStatusChangeReqValidationError) Key

Key function returns key value.

func (AdministratorStatusChangeReqValidationError) Reason

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

Cause function returns cause value.

func (AdministratorValidationError) Error

Error satisfies the builtin error interface

func (AdministratorValidationError) ErrorName

func (e AdministratorValidationError) ErrorName() string

ErrorName returns error name.

func (AdministratorValidationError) Field

Field function returns field value.

func (AdministratorValidationError) Key

Key function returns key value.

func (AdministratorValidationError) Reason

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

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

Cause function returns cause value.

func (CreateAdministratorReqValidationError) Error

Error satisfies the builtin error interface

func (CreateAdministratorReqValidationError) ErrorName

ErrorName returns error name.

func (CreateAdministratorReqValidationError) Field

Field function returns field value.

func (CreateAdministratorReqValidationError) Key

Key function returns key value.

func (CreateAdministratorReqValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteAdministratorReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteAdministratorReqValidationError) ErrorName

ErrorName returns error name.

func (DeleteAdministratorReqValidationError) Field

Field function returns field value.

func (DeleteAdministratorReqValidationError) Key

Key function returns key value.

func (DeleteAdministratorReqValidationError) Reason

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) 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

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 (*GetAdministratorListPageRes) GetTotal

func (x *GetAdministratorListPageRes) GetTotal() int64

func (*GetAdministratorListPageRes) ProtoMessage

func (*GetAdministratorListPageRes) ProtoMessage()

func (*GetAdministratorListPageRes) ProtoReflect

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

AllErrors returns a list of validation violation errors.

func (GetAdministratorListPageResMultiError) Error

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

Cause function returns cause value.

func (GetAdministratorListPageResValidationError) Error

Error satisfies the builtin error interface

func (GetAdministratorListPageResValidationError) ErrorName

ErrorName returns error name.

func (GetAdministratorListPageResValidationError) Field

Field function returns field value.

func (GetAdministratorListPageResValidationError) Key

Key function returns key value.

func (GetAdministratorListPageResValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (GetAdministratorListReqValidationError) Error

Error satisfies the builtin error interface

func (GetAdministratorListReqValidationError) ErrorName

ErrorName returns error name.

func (GetAdministratorListReqValidationError) Field

Field function returns field value.

func (GetAdministratorListReqValidationError) Key

Key function returns key value.

func (GetAdministratorListReqValidationError) Reason

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

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

Cause function returns cause value.

func (GetAdministratorReqValidationError) Error

Error satisfies the builtin error interface

func (GetAdministratorReqValidationError) ErrorName

ErrorName returns error name.

func (GetAdministratorReqValidationError) Field

Field function returns field value.

func (GetAdministratorReqValidationError) Key

Key function returns key value.

func (GetAdministratorReqValidationError) Reason

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

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

Cause function returns cause value.

func (RecoverAdministratorReqValidationError) Error

Error satisfies the builtin error interface

func (RecoverAdministratorReqValidationError) ErrorName

ErrorName returns error name.

func (RecoverAdministratorReqValidationError) Field

Field function returns field value.

func (RecoverAdministratorReqValidationError) Key

Key function returns key value.

func (RecoverAdministratorReqValidationError) Reason

Reason function returns reason value.

type UnimplementedAdministratorServiceServer

type UnimplementedAdministratorServiceServer struct {
}

UnimplementedAdministratorServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAdministratorServiceServer) AdministratorLoginSuccess

func (UnimplementedAdministratorServiceServer) AdministratorStatusChange

func (UnimplementedAdministratorServiceServer) CreateAdministrator

func (UnimplementedAdministratorServiceServer) DeleteAdministrator

func (UnimplementedAdministratorServiceServer) GetAdministrator

func (UnimplementedAdministratorServiceServer) GetAdministratorList

func (UnimplementedAdministratorServiceServer) RecoverAdministrator

func (UnimplementedAdministratorServiceServer) UpdateAdministrator

func (UnimplementedAdministratorServiceServer) VerifyAdministratorPassword

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

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

Cause function returns cause value.

func (UpdateAdministratorReqValidationError) Error

Error satisfies the builtin error interface

func (UpdateAdministratorReqValidationError) ErrorName

ErrorName returns error name.

func (UpdateAdministratorReqValidationError) Field

Field function returns field value.

func (UpdateAdministratorReqValidationError) Key

Key function returns key value.

func (UpdateAdministratorReqValidationError) Reason

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 (*VerifyAdministratorPasswordReq) GetPassword

func (x *VerifyAdministratorPasswordReq) GetPassword() string

func (*VerifyAdministratorPasswordReq) ProtoMessage

func (*VerifyAdministratorPasswordReq) ProtoMessage()

func (*VerifyAdministratorPasswordReq) ProtoReflect

func (*VerifyAdministratorPasswordReq) Reset

func (x *VerifyAdministratorPasswordReq) Reset()

func (*VerifyAdministratorPasswordReq) 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

AllErrors returns a list of validation violation errors.

func (VerifyAdministratorPasswordReqMultiError) Error

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

Cause function returns cause value.

func (VerifyAdministratorPasswordReqValidationError) Error

Error satisfies the builtin error interface

func (VerifyAdministratorPasswordReqValidationError) ErrorName

ErrorName returns error name.

func (VerifyAdministratorPasswordReqValidationError) Field

Field function returns field value.

func (VerifyAdministratorPasswordReqValidationError) Key

Key function returns key value.

func (VerifyAdministratorPasswordReqValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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