Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAdminHTTPServer(s *http.Server, srv AdminHTTPServer)
- func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)
- type AdminClient
- type AdminHTTPClient
- type AdminHTTPClientImpl
- func (c *AdminHTTPClientImpl) AdminStatus(ctx context.Context, in *AdminStatusReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AdminHTTPClientImpl) CreateAdmin(ctx context.Context, in *CreateAdminReq, opts ...http.CallOption) (*AdminInfoRep, error)
- func (c *AdminHTTPClientImpl) DeleteAdmin(ctx context.Context, in *DeleteAdminReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AdminHTTPClientImpl) GetAdmin(ctx context.Context, in *GetAdminReq, opts ...http.CallOption) (*AdminInfoRep, error)
- func (c *AdminHTTPClientImpl) ListAdmin(ctx context.Context, in *ListAdminReq, opts ...http.CallOption) (*ListAdminRep, error)
- func (c *AdminHTTPClientImpl) RecoverAdmin(ctx context.Context, in *RecoverAdminReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AdminHTTPClientImpl) UpdateAdmin(ctx context.Context, in *UpdateAdminReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AdminHTTPClientImpl) UpdateAdminIpAndTime(ctx context.Context, in *UpdateAdminIpAndTimeReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AdminHTTPClientImpl) VerifyAdminPasswd(ctx context.Context, in *VerifyAdminPasswdReq, opts ...http.CallOption) (*RepStatus, error)
- type AdminHTTPServer
- type AdminInfoRep
- func (*AdminInfoRep) Descriptor() ([]byte, []int)deprecated
- func (x *AdminInfoRep) GetAvatar() string
- func (x *AdminInfoRep) GetCreatedAt() string
- func (x *AdminInfoRep) GetDeletedAt() string
- func (x *AdminInfoRep) GetEmail() string
- func (x *AdminInfoRep) GetId() uint64
- func (x *AdminInfoRep) GetLastLoginIp() string
- func (x *AdminInfoRep) GetLastLoginTime() string
- func (x *AdminInfoRep) GetMobile() string
- func (x *AdminInfoRep) GetNickname() string
- func (x *AdminInfoRep) GetRole() string
- func (x *AdminInfoRep) GetStatus() bool
- func (x *AdminInfoRep) GetUpdatedAt() string
- func (x *AdminInfoRep) GetUsername() string
- func (*AdminInfoRep) ProtoMessage()
- func (x *AdminInfoRep) ProtoReflect() protoreflect.Message
- func (x *AdminInfoRep) Reset()
- func (x *AdminInfoRep) String() string
- func (m *AdminInfoRep) Validate() error
- func (m *AdminInfoRep) ValidateAll() error
- type AdminInfoRepMultiError
- type AdminInfoRepValidationError
- func (e AdminInfoRepValidationError) Cause() error
- func (e AdminInfoRepValidationError) Error() string
- func (e AdminInfoRepValidationError) ErrorName() string
- func (e AdminInfoRepValidationError) Field() string
- func (e AdminInfoRepValidationError) Key() bool
- func (e AdminInfoRepValidationError) Reason() string
- type AdminServer
- type AdminStatusReq
- func (*AdminStatusReq) Descriptor() ([]byte, []int)deprecated
- func (x *AdminStatusReq) GetId() uint64
- func (x *AdminStatusReq) GetStatus() bool
- func (*AdminStatusReq) ProtoMessage()
- func (x *AdminStatusReq) ProtoReflect() protoreflect.Message
- func (x *AdminStatusReq) Reset()
- func (x *AdminStatusReq) String() string
- func (m *AdminStatusReq) Validate() error
- func (m *AdminStatusReq) ValidateAll() error
- type AdminStatusReqMultiError
- type AdminStatusReqValidationError
- func (e AdminStatusReqValidationError) Cause() error
- func (e AdminStatusReqValidationError) Error() string
- func (e AdminStatusReqValidationError) ErrorName() string
- func (e AdminStatusReqValidationError) Field() string
- func (e AdminStatusReqValidationError) Key() bool
- func (e AdminStatusReqValidationError) Reason() string
- type CreateAdminReq
- func (*CreateAdminReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAdminReq) GetAvatar() string
- func (x *CreateAdminReq) GetEmail() string
- func (x *CreateAdminReq) GetMobile() string
- func (x *CreateAdminReq) GetNickname() string
- func (x *CreateAdminReq) GetPassword() string
- func (x *CreateAdminReq) GetRole() string
- func (x *CreateAdminReq) GetStatus() bool
- func (x *CreateAdminReq) GetUsername() string
- func (*CreateAdminReq) ProtoMessage()
- func (x *CreateAdminReq) ProtoReflect() protoreflect.Message
- func (x *CreateAdminReq) Reset()
- func (x *CreateAdminReq) String() string
- func (m *CreateAdminReq) Validate() error
- func (m *CreateAdminReq) ValidateAll() error
- type CreateAdminReqMultiError
- type CreateAdminReqValidationError
- func (e CreateAdminReqValidationError) Cause() error
- func (e CreateAdminReqValidationError) Error() string
- func (e CreateAdminReqValidationError) ErrorName() string
- func (e CreateAdminReqValidationError) Field() string
- func (e CreateAdminReqValidationError) Key() bool
- func (e CreateAdminReqValidationError) Reason() string
- type DeleteAdminReq
- func (*DeleteAdminReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAdminReq) GetId() uint64
- func (*DeleteAdminReq) ProtoMessage()
- func (x *DeleteAdminReq) ProtoReflect() protoreflect.Message
- func (x *DeleteAdminReq) Reset()
- func (x *DeleteAdminReq) String() string
- func (m *DeleteAdminReq) Validate() error
- func (m *DeleteAdminReq) ValidateAll() error
- type DeleteAdminReqMultiError
- type DeleteAdminReqValidationError
- func (e DeleteAdminReqValidationError) Cause() error
- func (e DeleteAdminReqValidationError) Error() string
- func (e DeleteAdminReqValidationError) ErrorName() string
- func (e DeleteAdminReqValidationError) Field() string
- func (e DeleteAdminReqValidationError) Key() bool
- func (e DeleteAdminReqValidationError) Reason() string
- type GetAdminReq
- func (*GetAdminReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdminReq) GetId() uint64
- func (x *GetAdminReq) GetMobile() string
- func (x *GetAdminReq) GetRole() string
- func (x *GetAdminReq) GetUsername() string
- func (*GetAdminReq) ProtoMessage()
- func (x *GetAdminReq) ProtoReflect() protoreflect.Message
- func (x *GetAdminReq) Reset()
- func (x *GetAdminReq) String() string
- func (m *GetAdminReq) Validate() error
- func (m *GetAdminReq) ValidateAll() error
- type GetAdminReqMultiError
- type GetAdminReqValidationError
- func (e GetAdminReqValidationError) Cause() error
- func (e GetAdminReqValidationError) Error() string
- func (e GetAdminReqValidationError) ErrorName() string
- func (e GetAdminReqValidationError) Field() string
- func (e GetAdminReqValidationError) Key() bool
- func (e GetAdminReqValidationError) Reason() string
- type ListAdminRep
- func (*ListAdminRep) Descriptor() ([]byte, []int)deprecated
- func (x *ListAdminRep) GetList() []*AdminInfoRep
- func (x *ListAdminRep) GetTotal() uint64
- func (*ListAdminRep) ProtoMessage()
- func (x *ListAdminRep) ProtoReflect() protoreflect.Message
- func (x *ListAdminRep) Reset()
- func (x *ListAdminRep) String() string
- func (m *ListAdminRep) Validate() error
- func (m *ListAdminRep) ValidateAll() error
- type ListAdminRepMultiError
- type ListAdminRepValidationError
- func (e ListAdminRepValidationError) Cause() error
- func (e ListAdminRepValidationError) Error() string
- func (e ListAdminRepValidationError) ErrorName() string
- func (e ListAdminRepValidationError) Field() string
- func (e ListAdminRepValidationError) Key() bool
- func (e ListAdminRepValidationError) Reason() string
- type ListAdminReq
- func (*ListAdminReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListAdminReq) GetCreatedAtEnd() string
- func (x *ListAdminReq) GetCreatedAtStart() string
- func (x *ListAdminReq) GetMobile() string
- func (x *ListAdminReq) GetNickname() string
- func (x *ListAdminReq) GetPage() uint64
- func (x *ListAdminReq) GetPageSize() uint64
- func (x *ListAdminReq) GetStatus() *wrapperspb.BoolValue
- func (x *ListAdminReq) GetUsername() string
- func (*ListAdminReq) ProtoMessage()
- func (x *ListAdminReq) ProtoReflect() protoreflect.Message
- func (x *ListAdminReq) Reset()
- func (x *ListAdminReq) String() string
- func (m *ListAdminReq) Validate() error
- func (m *ListAdminReq) ValidateAll() error
- type ListAdminReqMultiError
- type ListAdminReqValidationError
- func (e ListAdminReqValidationError) Cause() error
- func (e ListAdminReqValidationError) Error() string
- func (e ListAdminReqValidationError) ErrorName() string
- func (e ListAdminReqValidationError) Field() string
- func (e ListAdminReqValidationError) Key() bool
- func (e ListAdminReqValidationError) Reason() string
- type RecoverAdminReq
- func (*RecoverAdminReq) Descriptor() ([]byte, []int)deprecated
- func (x *RecoverAdminReq) GetId() uint64
- func (*RecoverAdminReq) ProtoMessage()
- func (x *RecoverAdminReq) ProtoReflect() protoreflect.Message
- func (x *RecoverAdminReq) Reset()
- func (x *RecoverAdminReq) String() string
- func (m *RecoverAdminReq) Validate() error
- func (m *RecoverAdminReq) ValidateAll() error
- type RecoverAdminReqMultiError
- type RecoverAdminReqValidationError
- func (e RecoverAdminReqValidationError) Cause() error
- func (e RecoverAdminReqValidationError) Error() string
- func (e RecoverAdminReqValidationError) ErrorName() string
- func (e RecoverAdminReqValidationError) Field() string
- func (e RecoverAdminReqValidationError) Key() bool
- func (e RecoverAdminReqValidationError) Reason() string
- type RepStatus
- func (*RepStatus) Descriptor() ([]byte, []int)deprecated
- func (x *RepStatus) GetSuccess() bool
- func (*RepStatus) ProtoMessage()
- func (x *RepStatus) ProtoReflect() protoreflect.Message
- func (x *RepStatus) Reset()
- func (x *RepStatus) String() string
- func (m *RepStatus) Validate() error
- func (m *RepStatus) ValidateAll() error
- type RepStatusMultiError
- type RepStatusValidationError
- type UnimplementedAdminServer
- func (UnimplementedAdminServer) AdminStatus(context.Context, *AdminStatusReq) (*RepStatus, error)
- func (UnimplementedAdminServer) CreateAdmin(context.Context, *CreateAdminReq) (*AdminInfoRep, error)
- func (UnimplementedAdminServer) DeleteAdmin(context.Context, *DeleteAdminReq) (*RepStatus, error)
- func (UnimplementedAdminServer) GetAdmin(context.Context, *GetAdminReq) (*AdminInfoRep, error)
- func (UnimplementedAdminServer) ListAdmin(context.Context, *ListAdminReq) (*ListAdminRep, error)
- func (UnimplementedAdminServer) RecoverAdmin(context.Context, *RecoverAdminReq) (*RepStatus, error)
- func (UnimplementedAdminServer) UpdateAdmin(context.Context, *UpdateAdminReq) (*RepStatus, error)
- func (UnimplementedAdminServer) UpdateAdminIpAndTime(context.Context, *UpdateAdminIpAndTimeReq) (*RepStatus, error)
- func (UnimplementedAdminServer) VerifyAdminPasswd(context.Context, *VerifyAdminPasswdReq) (*RepStatus, error)
- type UnsafeAdminServer
- type UpdateAdminIpAndTimeReq
- func (*UpdateAdminIpAndTimeReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAdminIpAndTimeReq) GetId() uint64
- func (x *UpdateAdminIpAndTimeReq) GetIp() string
- func (x *UpdateAdminIpAndTimeReq) GetTime() string
- func (*UpdateAdminIpAndTimeReq) ProtoMessage()
- func (x *UpdateAdminIpAndTimeReq) ProtoReflect() protoreflect.Message
- func (x *UpdateAdminIpAndTimeReq) Reset()
- func (x *UpdateAdminIpAndTimeReq) String() string
- func (m *UpdateAdminIpAndTimeReq) Validate() error
- func (m *UpdateAdminIpAndTimeReq) ValidateAll() error
- type UpdateAdminIpAndTimeReqMultiError
- type UpdateAdminIpAndTimeReqValidationError
- func (e UpdateAdminIpAndTimeReqValidationError) Cause() error
- func (e UpdateAdminIpAndTimeReqValidationError) Error() string
- func (e UpdateAdminIpAndTimeReqValidationError) ErrorName() string
- func (e UpdateAdminIpAndTimeReqValidationError) Field() string
- func (e UpdateAdminIpAndTimeReqValidationError) Key() bool
- func (e UpdateAdminIpAndTimeReqValidationError) Reason() string
- type UpdateAdminReq
- func (*UpdateAdminReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAdminReq) GetAvatar() string
- func (x *UpdateAdminReq) GetId() uint64
- func (x *UpdateAdminReq) GetMobile() string
- func (x *UpdateAdminReq) GetNickname() string
- func (x *UpdateAdminReq) GetPassword() string
- func (x *UpdateAdminReq) GetRole() string
- func (x *UpdateAdminReq) GetStatus() bool
- func (x *UpdateAdminReq) GetUsername() string
- func (*UpdateAdminReq) ProtoMessage()
- func (x *UpdateAdminReq) ProtoReflect() protoreflect.Message
- func (x *UpdateAdminReq) Reset()
- func (x *UpdateAdminReq) String() string
- func (m *UpdateAdminReq) Validate() error
- func (m *UpdateAdminReq) ValidateAll() error
- type UpdateAdminReqMultiError
- type UpdateAdminReqValidationError
- func (e UpdateAdminReqValidationError) Cause() error
- func (e UpdateAdminReqValidationError) Error() string
- func (e UpdateAdminReqValidationError) ErrorName() string
- func (e UpdateAdminReqValidationError) Field() string
- func (e UpdateAdminReqValidationError) Key() bool
- func (e UpdateAdminReqValidationError) Reason() string
- type VerifyAdminPasswdReq
- func (*VerifyAdminPasswdReq) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyAdminPasswdReq) GetId() uint64
- func (x *VerifyAdminPasswdReq) GetPassword() string
- func (*VerifyAdminPasswdReq) ProtoMessage()
- func (x *VerifyAdminPasswdReq) ProtoReflect() protoreflect.Message
- func (x *VerifyAdminPasswdReq) Reset()
- func (x *VerifyAdminPasswdReq) String() string
- func (m *VerifyAdminPasswdReq) Validate() error
- func (m *VerifyAdminPasswdReq) ValidateAll() error
- type VerifyAdminPasswdReqMultiError
- type VerifyAdminPasswdReqValidationError
- func (e VerifyAdminPasswdReqValidationError) Cause() error
- func (e VerifyAdminPasswdReqValidationError) Error() string
- func (e VerifyAdminPasswdReqValidationError) ErrorName() string
- func (e VerifyAdminPasswdReqValidationError) Field() string
- func (e VerifyAdminPasswdReqValidationError) Key() bool
- func (e VerifyAdminPasswdReqValidationError) Reason() string
Constants ¶
const ( Admin_CreateAdmin_FullMethodName = "/api.admin.v1.Admin/CreateAdmin" Admin_UpdateAdminIpAndTime_FullMethodName = "/api.admin.v1.Admin/UpdateAdminIpAndTime" Admin_UpdateAdmin_FullMethodName = "/api.admin.v1.Admin/UpdateAdmin" Admin_DeleteAdmin_FullMethodName = "/api.admin.v1.Admin/DeleteAdmin" Admin_RecoverAdmin_FullMethodName = "/api.admin.v1.Admin/RecoverAdmin" Admin_AdminStatus_FullMethodName = "/api.admin.v1.Admin/AdminStatus" Admin_VerifyAdminPasswd_FullMethodName = "/api.admin.v1.Admin/VerifyAdminPasswd" Admin_GetAdmin_FullMethodName = "/api.admin.v1.Admin/GetAdmin" Admin_ListAdmin_FullMethodName = "/api.admin.v1.Admin/ListAdmin" )
const OperationAdminAdminStatus = "/api.admin.v1.Admin/AdminStatus"
const OperationAdminCreateAdmin = "/api.admin.v1.Admin/CreateAdmin"
const OperationAdminDeleteAdmin = "/api.admin.v1.Admin/DeleteAdmin"
const OperationAdminGetAdmin = "/api.admin.v1.Admin/GetAdmin"
const OperationAdminListAdmin = "/api.admin.v1.Admin/ListAdmin"
const OperationAdminRecoverAdmin = "/api.admin.v1.Admin/RecoverAdmin"
const OperationAdminUpdateAdmin = "/api.admin.v1.Admin/UpdateAdmin"
const OperationAdminUpdateAdminIpAndTime = "/api.admin.v1.Admin/UpdateAdminIpAndTime"
const OperationAdminVerifyAdminPasswd = "/api.admin.v1.Admin/VerifyAdminPasswd"
Variables ¶
var Admin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.admin.v1.Admin", HandlerType: (*AdminServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateAdmin", Handler: _Admin_CreateAdmin_Handler, }, { MethodName: "UpdateAdminIpAndTime", Handler: _Admin_UpdateAdminIpAndTime_Handler, }, { MethodName: "UpdateAdmin", Handler: _Admin_UpdateAdmin_Handler, }, { MethodName: "DeleteAdmin", Handler: _Admin_DeleteAdmin_Handler, }, { MethodName: "RecoverAdmin", Handler: _Admin_RecoverAdmin_Handler, }, { MethodName: "AdminStatus", Handler: _Admin_AdminStatus_Handler, }, { MethodName: "VerifyAdminPasswd", Handler: _Admin_VerifyAdminPasswd_Handler, }, { MethodName: "GetAdmin", Handler: _Admin_GetAdmin_Handler, }, { MethodName: "ListAdmin", Handler: _Admin_ListAdmin_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "admin/v1/admin.proto", }
Admin_ServiceDesc is the grpc.ServiceDesc for Admin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_admin_v1_admin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAdminHTTPServer ¶
func RegisterAdminHTTPServer(s *http.Server, srv AdminHTTPServer)
func RegisterAdminServer ¶
func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)
Types ¶
type AdminClient ¶
type AdminClient interface { // 创建管理员 CreateAdmin(ctx context.Context, in *CreateAdminReq, opts ...grpc.CallOption) (*AdminInfoRep, error) // 更新用户登录时间和IP UpdateAdminIpAndTime(ctx context.Context, in *UpdateAdminIpAndTimeReq, opts ...grpc.CallOption) (*RepStatus, error) // 编辑管理员 UpdateAdmin(ctx context.Context, in *UpdateAdminReq, opts ...grpc.CallOption) (*RepStatus, error) // 删除管理员 DeleteAdmin(ctx context.Context, in *DeleteAdminReq, opts ...grpc.CallOption) (*RepStatus, error) // 恢复管理员 RecoverAdmin(ctx context.Context, in *RecoverAdminReq, opts ...grpc.CallOption) (*RepStatus, error) // 管理员状态 AdminStatus(ctx context.Context, in *AdminStatusReq, opts ...grpc.CallOption) (*RepStatus, error) // 验证管理员密码 VerifyAdminPasswd(ctx context.Context, in *VerifyAdminPasswdReq, opts ...grpc.CallOption) (*RepStatus, error) // 获取管理员详情 GetAdmin(ctx context.Context, in *GetAdminReq, opts ...grpc.CallOption) (*AdminInfoRep, error) // 获取管理员列表 ListAdmin(ctx context.Context, in *ListAdminReq, opts ...grpc.CallOption) (*ListAdminRep, error) }
AdminClient is the client API for Admin 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 NewAdminClient ¶
func NewAdminClient(cc grpc.ClientConnInterface) AdminClient
type AdminHTTPClient ¶
type AdminHTTPClient interface { AdminStatus(ctx context.Context, req *AdminStatusReq, opts ...http.CallOption) (rsp *RepStatus, err error) CreateAdmin(ctx context.Context, req *CreateAdminReq, opts ...http.CallOption) (rsp *AdminInfoRep, err error) DeleteAdmin(ctx context.Context, req *DeleteAdminReq, opts ...http.CallOption) (rsp *RepStatus, err error) GetAdmin(ctx context.Context, req *GetAdminReq, opts ...http.CallOption) (rsp *AdminInfoRep, err error) ListAdmin(ctx context.Context, req *ListAdminReq, opts ...http.CallOption) (rsp *ListAdminRep, err error) RecoverAdmin(ctx context.Context, req *RecoverAdminReq, opts ...http.CallOption) (rsp *RepStatus, err error) UpdateAdmin(ctx context.Context, req *UpdateAdminReq, opts ...http.CallOption) (rsp *RepStatus, err error) UpdateAdminIpAndTime(ctx context.Context, req *UpdateAdminIpAndTimeReq, opts ...http.CallOption) (rsp *RepStatus, err error) VerifyAdminPasswd(ctx context.Context, req *VerifyAdminPasswdReq, opts ...http.CallOption) (rsp *RepStatus, err error) }
func NewAdminHTTPClient ¶
func NewAdminHTTPClient(client *http.Client) AdminHTTPClient
type AdminHTTPClientImpl ¶
type AdminHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AdminHTTPClientImpl) AdminStatus ¶
func (c *AdminHTTPClientImpl) AdminStatus(ctx context.Context, in *AdminStatusReq, opts ...http.CallOption) (*RepStatus, error)
func (*AdminHTTPClientImpl) CreateAdmin ¶
func (c *AdminHTTPClientImpl) CreateAdmin(ctx context.Context, in *CreateAdminReq, opts ...http.CallOption) (*AdminInfoRep, error)
func (*AdminHTTPClientImpl) DeleteAdmin ¶
func (c *AdminHTTPClientImpl) DeleteAdmin(ctx context.Context, in *DeleteAdminReq, opts ...http.CallOption) (*RepStatus, error)
func (*AdminHTTPClientImpl) GetAdmin ¶
func (c *AdminHTTPClientImpl) GetAdmin(ctx context.Context, in *GetAdminReq, opts ...http.CallOption) (*AdminInfoRep, error)
func (*AdminHTTPClientImpl) ListAdmin ¶
func (c *AdminHTTPClientImpl) ListAdmin(ctx context.Context, in *ListAdminReq, opts ...http.CallOption) (*ListAdminRep, error)
func (*AdminHTTPClientImpl) RecoverAdmin ¶
func (c *AdminHTTPClientImpl) RecoverAdmin(ctx context.Context, in *RecoverAdminReq, opts ...http.CallOption) (*RepStatus, error)
func (*AdminHTTPClientImpl) UpdateAdmin ¶
func (c *AdminHTTPClientImpl) UpdateAdmin(ctx context.Context, in *UpdateAdminReq, opts ...http.CallOption) (*RepStatus, error)
func (*AdminHTTPClientImpl) UpdateAdminIpAndTime ¶ added in v0.0.43
func (c *AdminHTTPClientImpl) UpdateAdminIpAndTime(ctx context.Context, in *UpdateAdminIpAndTimeReq, opts ...http.CallOption) (*RepStatus, error)
func (*AdminHTTPClientImpl) VerifyAdminPasswd ¶
func (c *AdminHTTPClientImpl) VerifyAdminPasswd(ctx context.Context, in *VerifyAdminPasswdReq, opts ...http.CallOption) (*RepStatus, error)
type AdminHTTPServer ¶
type AdminHTTPServer interface { // AdminStatus 管理员状态 AdminStatus(context.Context, *AdminStatusReq) (*RepStatus, error) // CreateAdmin 创建管理员 CreateAdmin(context.Context, *CreateAdminReq) (*AdminInfoRep, error) // DeleteAdmin 删除管理员 DeleteAdmin(context.Context, *DeleteAdminReq) (*RepStatus, error) // GetAdmin 获取管理员详情 GetAdmin(context.Context, *GetAdminReq) (*AdminInfoRep, error) // ListAdmin 获取管理员列表 ListAdmin(context.Context, *ListAdminReq) (*ListAdminRep, error) // RecoverAdmin 恢复管理员 RecoverAdmin(context.Context, *RecoverAdminReq) (*RepStatus, error) // UpdateAdmin 编辑管理员 UpdateAdmin(context.Context, *UpdateAdminReq) (*RepStatus, error) // UpdateAdminIpAndTime 更新用户登录时间和IP UpdateAdminIpAndTime(context.Context, *UpdateAdminIpAndTimeReq) (*RepStatus, error) // VerifyAdminPasswd 验证管理员密码 VerifyAdminPasswd(context.Context, *VerifyAdminPasswdReq) (*RepStatus, error) }
type AdminInfoRep ¶
type AdminInfoRep struct { // id Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户名 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // Email Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,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"` // 上次登录时间 LastLoginTime string `protobuf:"bytes,9,opt,name=last_login_time,json=lastLoginTime,proto3" json:"last_login_time,omitempty"` // 上次登录ip LastLoginIp string `protobuf:"bytes,10,opt,name=last_login_ip,json=lastLoginIp,proto3" json:"last_login_ip,omitempty"` // 创建时间 CreatedAt string `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 更新时间 UpdatedAt string `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 删除时间 DeletedAt string `protobuf:"bytes,13,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*AdminInfoRep) Descriptor
deprecated
func (*AdminInfoRep) Descriptor() ([]byte, []int)
Deprecated: Use AdminInfoRep.ProtoReflect.Descriptor instead.
func (*AdminInfoRep) GetAvatar ¶
func (x *AdminInfoRep) GetAvatar() string
func (*AdminInfoRep) GetCreatedAt ¶
func (x *AdminInfoRep) GetCreatedAt() string
func (*AdminInfoRep) GetDeletedAt ¶
func (x *AdminInfoRep) GetDeletedAt() string
func (*AdminInfoRep) GetEmail ¶
func (x *AdminInfoRep) GetEmail() string
func (*AdminInfoRep) GetId ¶
func (x *AdminInfoRep) GetId() uint64
func (*AdminInfoRep) GetLastLoginIp ¶
func (x *AdminInfoRep) GetLastLoginIp() string
func (*AdminInfoRep) GetLastLoginTime ¶
func (x *AdminInfoRep) GetLastLoginTime() string
func (*AdminInfoRep) GetMobile ¶
func (x *AdminInfoRep) GetMobile() string
func (*AdminInfoRep) GetNickname ¶
func (x *AdminInfoRep) GetNickname() string
func (*AdminInfoRep) GetRole ¶
func (x *AdminInfoRep) GetRole() string
func (*AdminInfoRep) GetStatus ¶
func (x *AdminInfoRep) GetStatus() bool
func (*AdminInfoRep) GetUpdatedAt ¶
func (x *AdminInfoRep) GetUpdatedAt() string
func (*AdminInfoRep) GetUsername ¶
func (x *AdminInfoRep) GetUsername() string
func (*AdminInfoRep) ProtoMessage ¶
func (*AdminInfoRep) ProtoMessage()
func (*AdminInfoRep) ProtoReflect ¶
func (x *AdminInfoRep) ProtoReflect() protoreflect.Message
func (*AdminInfoRep) Reset ¶
func (x *AdminInfoRep) Reset()
func (*AdminInfoRep) String ¶
func (x *AdminInfoRep) String() string
func (*AdminInfoRep) Validate ¶ added in v0.0.19
func (m *AdminInfoRep) Validate() error
Validate checks the field values on AdminInfoRep 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 (*AdminInfoRep) ValidateAll ¶ added in v0.0.19
func (m *AdminInfoRep) ValidateAll() error
ValidateAll checks the field values on AdminInfoRep 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 AdminInfoRepMultiError, or nil if none found.
type AdminInfoRepMultiError ¶ added in v0.0.19
type AdminInfoRepMultiError []error
AdminInfoRepMultiError is an error wrapping multiple validation errors returned by AdminInfoRep.ValidateAll() if the designated constraints aren't met.
func (AdminInfoRepMultiError) AllErrors ¶ added in v0.0.19
func (m AdminInfoRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AdminInfoRepMultiError) Error ¶ added in v0.0.19
func (m AdminInfoRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AdminInfoRepValidationError ¶ added in v0.0.19
type AdminInfoRepValidationError struct {
// contains filtered or unexported fields
}
AdminInfoRepValidationError is the validation error returned by AdminInfoRep.Validate if the designated constraints aren't met.
func (AdminInfoRepValidationError) Cause ¶ added in v0.0.19
func (e AdminInfoRepValidationError) Cause() error
Cause function returns cause value.
func (AdminInfoRepValidationError) Error ¶ added in v0.0.19
func (e AdminInfoRepValidationError) Error() string
Error satisfies the builtin error interface
func (AdminInfoRepValidationError) ErrorName ¶ added in v0.0.19
func (e AdminInfoRepValidationError) ErrorName() string
ErrorName returns error name.
func (AdminInfoRepValidationError) Field ¶ added in v0.0.19
func (e AdminInfoRepValidationError) Field() string
Field function returns field value.
func (AdminInfoRepValidationError) Key ¶ added in v0.0.19
func (e AdminInfoRepValidationError) Key() bool
Key function returns key value.
func (AdminInfoRepValidationError) Reason ¶ added in v0.0.19
func (e AdminInfoRepValidationError) Reason() string
Reason function returns reason value.
type AdminServer ¶
type AdminServer interface { // 创建管理员 CreateAdmin(context.Context, *CreateAdminReq) (*AdminInfoRep, error) // 更新用户登录时间和IP UpdateAdminIpAndTime(context.Context, *UpdateAdminIpAndTimeReq) (*RepStatus, error) // 编辑管理员 UpdateAdmin(context.Context, *UpdateAdminReq) (*RepStatus, error) // 删除管理员 DeleteAdmin(context.Context, *DeleteAdminReq) (*RepStatus, error) // 恢复管理员 RecoverAdmin(context.Context, *RecoverAdminReq) (*RepStatus, error) // 管理员状态 AdminStatus(context.Context, *AdminStatusReq) (*RepStatus, error) // 验证管理员密码 VerifyAdminPasswd(context.Context, *VerifyAdminPasswdReq) (*RepStatus, error) // 获取管理员详情 GetAdmin(context.Context, *GetAdminReq) (*AdminInfoRep, error) // 获取管理员列表 ListAdmin(context.Context, *ListAdminReq) (*ListAdminRep, error) // contains filtered or unexported methods }
AdminServer is the server API for Admin service. All implementations must embed UnimplementedAdminServer for forward compatibility
type AdminStatusReq ¶
type AdminStatusReq struct { // id Id uint64 `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 (*AdminStatusReq) Descriptor
deprecated
func (*AdminStatusReq) Descriptor() ([]byte, []int)
Deprecated: Use AdminStatusReq.ProtoReflect.Descriptor instead.
func (*AdminStatusReq) GetId ¶
func (x *AdminStatusReq) GetId() uint64
func (*AdminStatusReq) GetStatus ¶
func (x *AdminStatusReq) GetStatus() bool
func (*AdminStatusReq) ProtoMessage ¶
func (*AdminStatusReq) ProtoMessage()
func (*AdminStatusReq) ProtoReflect ¶
func (x *AdminStatusReq) ProtoReflect() protoreflect.Message
func (*AdminStatusReq) Reset ¶
func (x *AdminStatusReq) Reset()
func (*AdminStatusReq) String ¶
func (x *AdminStatusReq) String() string
func (*AdminStatusReq) Validate ¶ added in v0.0.19
func (m *AdminStatusReq) Validate() error
Validate checks the field values on AdminStatusReq 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 (*AdminStatusReq) ValidateAll ¶ added in v0.0.19
func (m *AdminStatusReq) ValidateAll() error
ValidateAll checks the field values on AdminStatusReq 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 AdminStatusReqMultiError, or nil if none found.
type AdminStatusReqMultiError ¶ added in v0.0.19
type AdminStatusReqMultiError []error
AdminStatusReqMultiError is an error wrapping multiple validation errors returned by AdminStatusReq.ValidateAll() if the designated constraints aren't met.
func (AdminStatusReqMultiError) AllErrors ¶ added in v0.0.19
func (m AdminStatusReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AdminStatusReqMultiError) Error ¶ added in v0.0.19
func (m AdminStatusReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AdminStatusReqValidationError ¶ added in v0.0.19
type AdminStatusReqValidationError struct {
// contains filtered or unexported fields
}
AdminStatusReqValidationError is the validation error returned by AdminStatusReq.Validate if the designated constraints aren't met.
func (AdminStatusReqValidationError) Cause ¶ added in v0.0.19
func (e AdminStatusReqValidationError) Cause() error
Cause function returns cause value.
func (AdminStatusReqValidationError) Error ¶ added in v0.0.19
func (e AdminStatusReqValidationError) Error() string
Error satisfies the builtin error interface
func (AdminStatusReqValidationError) ErrorName ¶ added in v0.0.19
func (e AdminStatusReqValidationError) ErrorName() string
ErrorName returns error name.
func (AdminStatusReqValidationError) Field ¶ added in v0.0.19
func (e AdminStatusReqValidationError) Field() string
Field function returns field value.
func (AdminStatusReqValidationError) Key ¶ added in v0.0.19
func (e AdminStatusReqValidationError) Key() bool
Key function returns key value.
func (AdminStatusReqValidationError) Reason ¶ added in v0.0.19
func (e AdminStatusReqValidationError) Reason() string
Reason function returns reason value.
type CreateAdminReq ¶
type CreateAdminReq struct { // 用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 用户名 Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,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"` 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 (*CreateAdminReq) Descriptor
deprecated
func (*CreateAdminReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateAdminReq.ProtoReflect.Descriptor instead.
func (*CreateAdminReq) GetAvatar ¶
func (x *CreateAdminReq) GetAvatar() string
func (*CreateAdminReq) GetEmail ¶
func (x *CreateAdminReq) GetEmail() string
func (*CreateAdminReq) GetMobile ¶
func (x *CreateAdminReq) GetMobile() string
func (*CreateAdminReq) GetNickname ¶
func (x *CreateAdminReq) GetNickname() string
func (*CreateAdminReq) GetPassword ¶
func (x *CreateAdminReq) GetPassword() string
func (*CreateAdminReq) GetRole ¶
func (x *CreateAdminReq) GetRole() string
func (*CreateAdminReq) GetStatus ¶
func (x *CreateAdminReq) GetStatus() bool
func (*CreateAdminReq) GetUsername ¶
func (x *CreateAdminReq) GetUsername() string
func (*CreateAdminReq) ProtoMessage ¶
func (*CreateAdminReq) ProtoMessage()
func (*CreateAdminReq) ProtoReflect ¶
func (x *CreateAdminReq) ProtoReflect() protoreflect.Message
func (*CreateAdminReq) Reset ¶
func (x *CreateAdminReq) Reset()
func (*CreateAdminReq) String ¶
func (x *CreateAdminReq) String() string
func (*CreateAdminReq) Validate ¶ added in v0.0.19
func (m *CreateAdminReq) Validate() error
Validate checks the field values on CreateAdminReq 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 (*CreateAdminReq) ValidateAll ¶ added in v0.0.19
func (m *CreateAdminReq) ValidateAll() error
ValidateAll checks the field values on CreateAdminReq 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 CreateAdminReqMultiError, or nil if none found.
type CreateAdminReqMultiError ¶ added in v0.0.19
type CreateAdminReqMultiError []error
CreateAdminReqMultiError is an error wrapping multiple validation errors returned by CreateAdminReq.ValidateAll() if the designated constraints aren't met.
func (CreateAdminReqMultiError) AllErrors ¶ added in v0.0.19
func (m CreateAdminReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAdminReqMultiError) Error ¶ added in v0.0.19
func (m CreateAdminReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAdminReqValidationError ¶ added in v0.0.19
type CreateAdminReqValidationError struct {
// contains filtered or unexported fields
}
CreateAdminReqValidationError is the validation error returned by CreateAdminReq.Validate if the designated constraints aren't met.
func (CreateAdminReqValidationError) Cause ¶ added in v0.0.19
func (e CreateAdminReqValidationError) Cause() error
Cause function returns cause value.
func (CreateAdminReqValidationError) Error ¶ added in v0.0.19
func (e CreateAdminReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAdminReqValidationError) ErrorName ¶ added in v0.0.19
func (e CreateAdminReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAdminReqValidationError) Field ¶ added in v0.0.19
func (e CreateAdminReqValidationError) Field() string
Field function returns field value.
func (CreateAdminReqValidationError) Key ¶ added in v0.0.19
func (e CreateAdminReqValidationError) Key() bool
Key function returns key value.
func (CreateAdminReqValidationError) Reason ¶ added in v0.0.19
func (e CreateAdminReqValidationError) Reason() string
Reason function returns reason value.
type DeleteAdminReq ¶
type DeleteAdminReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
删除管理员
func (*DeleteAdminReq) Descriptor
deprecated
func (*DeleteAdminReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAdminReq.ProtoReflect.Descriptor instead.
func (*DeleteAdminReq) GetId ¶
func (x *DeleteAdminReq) GetId() uint64
func (*DeleteAdminReq) ProtoMessage ¶
func (*DeleteAdminReq) ProtoMessage()
func (*DeleteAdminReq) ProtoReflect ¶
func (x *DeleteAdminReq) ProtoReflect() protoreflect.Message
func (*DeleteAdminReq) Reset ¶
func (x *DeleteAdminReq) Reset()
func (*DeleteAdminReq) String ¶
func (x *DeleteAdminReq) String() string
func (*DeleteAdminReq) Validate ¶ added in v0.0.19
func (m *DeleteAdminReq) Validate() error
Validate checks the field values on DeleteAdminReq 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 (*DeleteAdminReq) ValidateAll ¶ added in v0.0.19
func (m *DeleteAdminReq) ValidateAll() error
ValidateAll checks the field values on DeleteAdminReq 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 DeleteAdminReqMultiError, or nil if none found.
type DeleteAdminReqMultiError ¶ added in v0.0.19
type DeleteAdminReqMultiError []error
DeleteAdminReqMultiError is an error wrapping multiple validation errors returned by DeleteAdminReq.ValidateAll() if the designated constraints aren't met.
func (DeleteAdminReqMultiError) AllErrors ¶ added in v0.0.19
func (m DeleteAdminReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteAdminReqMultiError) Error ¶ added in v0.0.19
func (m DeleteAdminReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteAdminReqValidationError ¶ added in v0.0.19
type DeleteAdminReqValidationError struct {
// contains filtered or unexported fields
}
DeleteAdminReqValidationError is the validation error returned by DeleteAdminReq.Validate if the designated constraints aren't met.
func (DeleteAdminReqValidationError) Cause ¶ added in v0.0.19
func (e DeleteAdminReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteAdminReqValidationError) Error ¶ added in v0.0.19
func (e DeleteAdminReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteAdminReqValidationError) ErrorName ¶ added in v0.0.19
func (e DeleteAdminReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteAdminReqValidationError) Field ¶ added in v0.0.19
func (e DeleteAdminReqValidationError) Field() string
Field function returns field value.
func (DeleteAdminReqValidationError) Key ¶ added in v0.0.19
func (e DeleteAdminReqValidationError) Key() bool
Key function returns key value.
func (DeleteAdminReqValidationError) Reason ¶ added in v0.0.19
func (e DeleteAdminReqValidationError) Reason() string
Reason function returns reason value.
type GetAdminReq ¶
type GetAdminReq struct { // id Id uint64 `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 (*GetAdminReq) Descriptor
deprecated
func (*GetAdminReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAdminReq.ProtoReflect.Descriptor instead.
func (*GetAdminReq) GetId ¶
func (x *GetAdminReq) GetId() uint64
func (*GetAdminReq) GetMobile ¶
func (x *GetAdminReq) GetMobile() string
func (*GetAdminReq) GetRole ¶
func (x *GetAdminReq) GetRole() string
func (*GetAdminReq) GetUsername ¶
func (x *GetAdminReq) GetUsername() string
func (*GetAdminReq) ProtoMessage ¶
func (*GetAdminReq) ProtoMessage()
func (*GetAdminReq) ProtoReflect ¶
func (x *GetAdminReq) ProtoReflect() protoreflect.Message
func (*GetAdminReq) Reset ¶
func (x *GetAdminReq) Reset()
func (*GetAdminReq) String ¶
func (x *GetAdminReq) String() string
func (*GetAdminReq) Validate ¶ added in v0.0.19
func (m *GetAdminReq) Validate() error
Validate checks the field values on GetAdminReq 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 (*GetAdminReq) ValidateAll ¶ added in v0.0.19
func (m *GetAdminReq) ValidateAll() error
ValidateAll checks the field values on GetAdminReq 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 GetAdminReqMultiError, or nil if none found.
type GetAdminReqMultiError ¶ added in v0.0.19
type GetAdminReqMultiError []error
GetAdminReqMultiError is an error wrapping multiple validation errors returned by GetAdminReq.ValidateAll() if the designated constraints aren't met.
func (GetAdminReqMultiError) AllErrors ¶ added in v0.0.19
func (m GetAdminReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAdminReqMultiError) Error ¶ added in v0.0.19
func (m GetAdminReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAdminReqValidationError ¶ added in v0.0.19
type GetAdminReqValidationError struct {
// contains filtered or unexported fields
}
GetAdminReqValidationError is the validation error returned by GetAdminReq.Validate if the designated constraints aren't met.
func (GetAdminReqValidationError) Cause ¶ added in v0.0.19
func (e GetAdminReqValidationError) Cause() error
Cause function returns cause value.
func (GetAdminReqValidationError) Error ¶ added in v0.0.19
func (e GetAdminReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetAdminReqValidationError) ErrorName ¶ added in v0.0.19
func (e GetAdminReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetAdminReqValidationError) Field ¶ added in v0.0.19
func (e GetAdminReqValidationError) Field() string
Field function returns field value.
func (GetAdminReqValidationError) Key ¶ added in v0.0.19
func (e GetAdminReqValidationError) Key() bool
Key function returns key value.
func (GetAdminReqValidationError) Reason ¶ added in v0.0.19
func (e GetAdminReqValidationError) Reason() string
Reason function returns reason value.
type ListAdminRep ¶
type ListAdminRep struct { // 总记录数 Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 列表 List []*AdminInfoRep `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ListAdminRep) Descriptor
deprecated
func (*ListAdminRep) Descriptor() ([]byte, []int)
Deprecated: Use ListAdminRep.ProtoReflect.Descriptor instead.
func (*ListAdminRep) GetList ¶
func (x *ListAdminRep) GetList() []*AdminInfoRep
func (*ListAdminRep) GetTotal ¶
func (x *ListAdminRep) GetTotal() uint64
func (*ListAdminRep) ProtoMessage ¶
func (*ListAdminRep) ProtoMessage()
func (*ListAdminRep) ProtoReflect ¶
func (x *ListAdminRep) ProtoReflect() protoreflect.Message
func (*ListAdminRep) Reset ¶
func (x *ListAdminRep) Reset()
func (*ListAdminRep) String ¶
func (x *ListAdminRep) String() string
func (*ListAdminRep) Validate ¶ added in v0.0.19
func (m *ListAdminRep) Validate() error
Validate checks the field values on ListAdminRep 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 (*ListAdminRep) ValidateAll ¶ added in v0.0.19
func (m *ListAdminRep) ValidateAll() error
ValidateAll checks the field values on ListAdminRep 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 ListAdminRepMultiError, or nil if none found.
type ListAdminRepMultiError ¶ added in v0.0.19
type ListAdminRepMultiError []error
ListAdminRepMultiError is an error wrapping multiple validation errors returned by ListAdminRep.ValidateAll() if the designated constraints aren't met.
func (ListAdminRepMultiError) AllErrors ¶ added in v0.0.19
func (m ListAdminRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListAdminRepMultiError) Error ¶ added in v0.0.19
func (m ListAdminRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListAdminRepValidationError ¶ added in v0.0.19
type ListAdminRepValidationError struct {
// contains filtered or unexported fields
}
ListAdminRepValidationError is the validation error returned by ListAdminRep.Validate if the designated constraints aren't met.
func (ListAdminRepValidationError) Cause ¶ added in v0.0.19
func (e ListAdminRepValidationError) Cause() error
Cause function returns cause value.
func (ListAdminRepValidationError) Error ¶ added in v0.0.19
func (e ListAdminRepValidationError) Error() string
Error satisfies the builtin error interface
func (ListAdminRepValidationError) ErrorName ¶ added in v0.0.19
func (e ListAdminRepValidationError) ErrorName() string
ErrorName returns error name.
func (ListAdminRepValidationError) Field ¶ added in v0.0.19
func (e ListAdminRepValidationError) Field() string
Field function returns field value.
func (ListAdminRepValidationError) Key ¶ added in v0.0.19
func (e ListAdminRepValidationError) Key() bool
Key function returns key value.
func (ListAdminRepValidationError) Reason ¶ added in v0.0.19
func (e ListAdminRepValidationError) Reason() string
Reason function returns reason value.
type ListAdminReq ¶
type ListAdminReq struct { // 页码 Page uint64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 页记录数 PageSize uint64 `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 (*ListAdminReq) Descriptor
deprecated
func (*ListAdminReq) Descriptor() ([]byte, []int)
Deprecated: Use ListAdminReq.ProtoReflect.Descriptor instead.
func (*ListAdminReq) GetCreatedAtEnd ¶
func (x *ListAdminReq) GetCreatedAtEnd() string
func (*ListAdminReq) GetCreatedAtStart ¶
func (x *ListAdminReq) GetCreatedAtStart() string
func (*ListAdminReq) GetMobile ¶
func (x *ListAdminReq) GetMobile() string
func (*ListAdminReq) GetNickname ¶
func (x *ListAdminReq) GetNickname() string
func (*ListAdminReq) GetPage ¶
func (x *ListAdminReq) GetPage() uint64
func (*ListAdminReq) GetPageSize ¶
func (x *ListAdminReq) GetPageSize() uint64
func (*ListAdminReq) GetStatus ¶
func (x *ListAdminReq) GetStatus() *wrapperspb.BoolValue
func (*ListAdminReq) GetUsername ¶
func (x *ListAdminReq) GetUsername() string
func (*ListAdminReq) ProtoMessage ¶
func (*ListAdminReq) ProtoMessage()
func (*ListAdminReq) ProtoReflect ¶
func (x *ListAdminReq) ProtoReflect() protoreflect.Message
func (*ListAdminReq) Reset ¶
func (x *ListAdminReq) Reset()
func (*ListAdminReq) String ¶
func (x *ListAdminReq) String() string
func (*ListAdminReq) Validate ¶ added in v0.0.19
func (m *ListAdminReq) Validate() error
Validate checks the field values on ListAdminReq 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 (*ListAdminReq) ValidateAll ¶ added in v0.0.19
func (m *ListAdminReq) ValidateAll() error
ValidateAll checks the field values on ListAdminReq 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 ListAdminReqMultiError, or nil if none found.
type ListAdminReqMultiError ¶ added in v0.0.19
type ListAdminReqMultiError []error
ListAdminReqMultiError is an error wrapping multiple validation errors returned by ListAdminReq.ValidateAll() if the designated constraints aren't met.
func (ListAdminReqMultiError) AllErrors ¶ added in v0.0.19
func (m ListAdminReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListAdminReqMultiError) Error ¶ added in v0.0.19
func (m ListAdminReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListAdminReqValidationError ¶ added in v0.0.19
type ListAdminReqValidationError struct {
// contains filtered or unexported fields
}
ListAdminReqValidationError is the validation error returned by ListAdminReq.Validate if the designated constraints aren't met.
func (ListAdminReqValidationError) Cause ¶ added in v0.0.19
func (e ListAdminReqValidationError) Cause() error
Cause function returns cause value.
func (ListAdminReqValidationError) Error ¶ added in v0.0.19
func (e ListAdminReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListAdminReqValidationError) ErrorName ¶ added in v0.0.19
func (e ListAdminReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListAdminReqValidationError) Field ¶ added in v0.0.19
func (e ListAdminReqValidationError) Field() string
Field function returns field value.
func (ListAdminReqValidationError) Key ¶ added in v0.0.19
func (e ListAdminReqValidationError) Key() bool
Key function returns key value.
func (ListAdminReqValidationError) Reason ¶ added in v0.0.19
func (e ListAdminReqValidationError) Reason() string
Reason function returns reason value.
type RecoverAdminReq ¶
type RecoverAdminReq struct { // id Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
恢复管理员
func (*RecoverAdminReq) Descriptor
deprecated
func (*RecoverAdminReq) Descriptor() ([]byte, []int)
Deprecated: Use RecoverAdminReq.ProtoReflect.Descriptor instead.
func (*RecoverAdminReq) GetId ¶
func (x *RecoverAdminReq) GetId() uint64
func (*RecoverAdminReq) ProtoMessage ¶
func (*RecoverAdminReq) ProtoMessage()
func (*RecoverAdminReq) ProtoReflect ¶
func (x *RecoverAdminReq) ProtoReflect() protoreflect.Message
func (*RecoverAdminReq) Reset ¶
func (x *RecoverAdminReq) Reset()
func (*RecoverAdminReq) String ¶
func (x *RecoverAdminReq) String() string
func (*RecoverAdminReq) Validate ¶ added in v0.0.19
func (m *RecoverAdminReq) Validate() error
Validate checks the field values on RecoverAdminReq 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 (*RecoverAdminReq) ValidateAll ¶ added in v0.0.19
func (m *RecoverAdminReq) ValidateAll() error
ValidateAll checks the field values on RecoverAdminReq 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 RecoverAdminReqMultiError, or nil if none found.
type RecoverAdminReqMultiError ¶ added in v0.0.19
type RecoverAdminReqMultiError []error
RecoverAdminReqMultiError is an error wrapping multiple validation errors returned by RecoverAdminReq.ValidateAll() if the designated constraints aren't met.
func (RecoverAdminReqMultiError) AllErrors ¶ added in v0.0.19
func (m RecoverAdminReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RecoverAdminReqMultiError) Error ¶ added in v0.0.19
func (m RecoverAdminReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RecoverAdminReqValidationError ¶ added in v0.0.19
type RecoverAdminReqValidationError struct {
// contains filtered or unexported fields
}
RecoverAdminReqValidationError is the validation error returned by RecoverAdminReq.Validate if the designated constraints aren't met.
func (RecoverAdminReqValidationError) Cause ¶ added in v0.0.19
func (e RecoverAdminReqValidationError) Cause() error
Cause function returns cause value.
func (RecoverAdminReqValidationError) Error ¶ added in v0.0.19
func (e RecoverAdminReqValidationError) Error() string
Error satisfies the builtin error interface
func (RecoverAdminReqValidationError) ErrorName ¶ added in v0.0.19
func (e RecoverAdminReqValidationError) ErrorName() string
ErrorName returns error name.
func (RecoverAdminReqValidationError) Field ¶ added in v0.0.19
func (e RecoverAdminReqValidationError) Field() string
Field function returns field value.
func (RecoverAdminReqValidationError) Key ¶ added in v0.0.19
func (e RecoverAdminReqValidationError) Key() bool
Key function returns key value.
func (RecoverAdminReqValidationError) Reason ¶ added in v0.0.19
func (e RecoverAdminReqValidationError) Reason() string
Reason function returns reason value.
type RepStatus ¶
type RepStatus struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
状态
func (*RepStatus) Descriptor
deprecated
func (*RepStatus) GetSuccess ¶
func (*RepStatus) ProtoMessage ¶
func (*RepStatus) ProtoMessage()
func (*RepStatus) ProtoReflect ¶
func (x *RepStatus) ProtoReflect() protoreflect.Message
func (*RepStatus) Validate ¶ added in v0.0.19
Validate checks the field values on RepStatus 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 (*RepStatus) ValidateAll ¶ added in v0.0.19
ValidateAll checks the field values on RepStatus 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 RepStatusMultiError, or nil if none found.
type RepStatusMultiError ¶ added in v0.0.19
type RepStatusMultiError []error
RepStatusMultiError is an error wrapping multiple validation errors returned by RepStatus.ValidateAll() if the designated constraints aren't met.
func (RepStatusMultiError) AllErrors ¶ added in v0.0.19
func (m RepStatusMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RepStatusMultiError) Error ¶ added in v0.0.19
func (m RepStatusMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RepStatusValidationError ¶ added in v0.0.19
type RepStatusValidationError struct {
// contains filtered or unexported fields
}
RepStatusValidationError is the validation error returned by RepStatus.Validate if the designated constraints aren't met.
func (RepStatusValidationError) Cause ¶ added in v0.0.19
func (e RepStatusValidationError) Cause() error
Cause function returns cause value.
func (RepStatusValidationError) Error ¶ added in v0.0.19
func (e RepStatusValidationError) Error() string
Error satisfies the builtin error interface
func (RepStatusValidationError) ErrorName ¶ added in v0.0.19
func (e RepStatusValidationError) ErrorName() string
ErrorName returns error name.
func (RepStatusValidationError) Field ¶ added in v0.0.19
func (e RepStatusValidationError) Field() string
Field function returns field value.
func (RepStatusValidationError) Key ¶ added in v0.0.19
func (e RepStatusValidationError) Key() bool
Key function returns key value.
func (RepStatusValidationError) Reason ¶ added in v0.0.19
func (e RepStatusValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAdminServer ¶
type UnimplementedAdminServer struct { }
UnimplementedAdminServer must be embedded to have forward compatible implementations.
func (UnimplementedAdminServer) AdminStatus ¶
func (UnimplementedAdminServer) AdminStatus(context.Context, *AdminStatusReq) (*RepStatus, error)
func (UnimplementedAdminServer) CreateAdmin ¶
func (UnimplementedAdminServer) CreateAdmin(context.Context, *CreateAdminReq) (*AdminInfoRep, error)
func (UnimplementedAdminServer) DeleteAdmin ¶
func (UnimplementedAdminServer) DeleteAdmin(context.Context, *DeleteAdminReq) (*RepStatus, error)
func (UnimplementedAdminServer) GetAdmin ¶
func (UnimplementedAdminServer) GetAdmin(context.Context, *GetAdminReq) (*AdminInfoRep, error)
func (UnimplementedAdminServer) ListAdmin ¶
func (UnimplementedAdminServer) ListAdmin(context.Context, *ListAdminReq) (*ListAdminRep, error)
func (UnimplementedAdminServer) RecoverAdmin ¶
func (UnimplementedAdminServer) RecoverAdmin(context.Context, *RecoverAdminReq) (*RepStatus, error)
func (UnimplementedAdminServer) UpdateAdmin ¶
func (UnimplementedAdminServer) UpdateAdmin(context.Context, *UpdateAdminReq) (*RepStatus, error)
func (UnimplementedAdminServer) UpdateAdminIpAndTime ¶ added in v0.0.43
func (UnimplementedAdminServer) UpdateAdminIpAndTime(context.Context, *UpdateAdminIpAndTimeReq) (*RepStatus, error)
func (UnimplementedAdminServer) VerifyAdminPasswd ¶
func (UnimplementedAdminServer) VerifyAdminPasswd(context.Context, *VerifyAdminPasswdReq) (*RepStatus, error)
type UnsafeAdminServer ¶
type UnsafeAdminServer interface {
// contains filtered or unexported methods
}
UnsafeAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServer will result in compilation errors.
type UpdateAdminIpAndTimeReq ¶ added in v0.0.43
type UpdateAdminIpAndTimeReq struct { // id Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ip Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` // time Time string `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
更新管理员登录IP与时间
func (*UpdateAdminIpAndTimeReq) Descriptor
deprecated
added in
v0.0.43
func (*UpdateAdminIpAndTimeReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAdminIpAndTimeReq.ProtoReflect.Descriptor instead.
func (*UpdateAdminIpAndTimeReq) GetId ¶ added in v0.0.43
func (x *UpdateAdminIpAndTimeReq) GetId() uint64
func (*UpdateAdminIpAndTimeReq) GetIp ¶ added in v0.0.43
func (x *UpdateAdminIpAndTimeReq) GetIp() string
func (*UpdateAdminIpAndTimeReq) GetTime ¶ added in v0.0.43
func (x *UpdateAdminIpAndTimeReq) GetTime() string
func (*UpdateAdminIpAndTimeReq) ProtoMessage ¶ added in v0.0.43
func (*UpdateAdminIpAndTimeReq) ProtoMessage()
func (*UpdateAdminIpAndTimeReq) ProtoReflect ¶ added in v0.0.43
func (x *UpdateAdminIpAndTimeReq) ProtoReflect() protoreflect.Message
func (*UpdateAdminIpAndTimeReq) Reset ¶ added in v0.0.43
func (x *UpdateAdminIpAndTimeReq) Reset()
func (*UpdateAdminIpAndTimeReq) String ¶ added in v0.0.43
func (x *UpdateAdminIpAndTimeReq) String() string
func (*UpdateAdminIpAndTimeReq) Validate ¶ added in v0.0.43
func (m *UpdateAdminIpAndTimeReq) Validate() error
Validate checks the field values on UpdateAdminIpAndTimeReq 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 (*UpdateAdminIpAndTimeReq) ValidateAll ¶ added in v0.0.43
func (m *UpdateAdminIpAndTimeReq) ValidateAll() error
ValidateAll checks the field values on UpdateAdminIpAndTimeReq 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 UpdateAdminIpAndTimeReqMultiError, or nil if none found.
type UpdateAdminIpAndTimeReqMultiError ¶ added in v0.0.43
type UpdateAdminIpAndTimeReqMultiError []error
UpdateAdminIpAndTimeReqMultiError is an error wrapping multiple validation errors returned by UpdateAdminIpAndTimeReq.ValidateAll() if the designated constraints aren't met.
func (UpdateAdminIpAndTimeReqMultiError) AllErrors ¶ added in v0.0.43
func (m UpdateAdminIpAndTimeReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateAdminIpAndTimeReqMultiError) Error ¶ added in v0.0.43
func (m UpdateAdminIpAndTimeReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateAdminIpAndTimeReqValidationError ¶ added in v0.0.43
type UpdateAdminIpAndTimeReqValidationError struct {
// contains filtered or unexported fields
}
UpdateAdminIpAndTimeReqValidationError is the validation error returned by UpdateAdminIpAndTimeReq.Validate if the designated constraints aren't met.
func (UpdateAdminIpAndTimeReqValidationError) Cause ¶ added in v0.0.43
func (e UpdateAdminIpAndTimeReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateAdminIpAndTimeReqValidationError) Error ¶ added in v0.0.43
func (e UpdateAdminIpAndTimeReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAdminIpAndTimeReqValidationError) ErrorName ¶ added in v0.0.43
func (e UpdateAdminIpAndTimeReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAdminIpAndTimeReqValidationError) Field ¶ added in v0.0.43
func (e UpdateAdminIpAndTimeReqValidationError) Field() string
Field function returns field value.
func (UpdateAdminIpAndTimeReqValidationError) Key ¶ added in v0.0.43
func (e UpdateAdminIpAndTimeReqValidationError) Key() bool
Key function returns key value.
func (UpdateAdminIpAndTimeReqValidationError) Reason ¶ added in v0.0.43
func (e UpdateAdminIpAndTimeReqValidationError) Reason() string
Reason function returns reason value.
type UpdateAdminReq ¶
type UpdateAdminReq struct { // id Id uint64 `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 (*UpdateAdminReq) Descriptor
deprecated
func (*UpdateAdminReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAdminReq.ProtoReflect.Descriptor instead.
func (*UpdateAdminReq) GetAvatar ¶
func (x *UpdateAdminReq) GetAvatar() string
func (*UpdateAdminReq) GetId ¶
func (x *UpdateAdminReq) GetId() uint64
func (*UpdateAdminReq) GetMobile ¶
func (x *UpdateAdminReq) GetMobile() string
func (*UpdateAdminReq) GetNickname ¶
func (x *UpdateAdminReq) GetNickname() string
func (*UpdateAdminReq) GetPassword ¶
func (x *UpdateAdminReq) GetPassword() string
func (*UpdateAdminReq) GetRole ¶
func (x *UpdateAdminReq) GetRole() string
func (*UpdateAdminReq) GetStatus ¶
func (x *UpdateAdminReq) GetStatus() bool
func (*UpdateAdminReq) GetUsername ¶
func (x *UpdateAdminReq) GetUsername() string
func (*UpdateAdminReq) ProtoMessage ¶
func (*UpdateAdminReq) ProtoMessage()
func (*UpdateAdminReq) ProtoReflect ¶
func (x *UpdateAdminReq) ProtoReflect() protoreflect.Message
func (*UpdateAdminReq) Reset ¶
func (x *UpdateAdminReq) Reset()
func (*UpdateAdminReq) String ¶
func (x *UpdateAdminReq) String() string
func (*UpdateAdminReq) Validate ¶ added in v0.0.19
func (m *UpdateAdminReq) Validate() error
Validate checks the field values on UpdateAdminReq 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 (*UpdateAdminReq) ValidateAll ¶ added in v0.0.19
func (m *UpdateAdminReq) ValidateAll() error
ValidateAll checks the field values on UpdateAdminReq 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 UpdateAdminReqMultiError, or nil if none found.
type UpdateAdminReqMultiError ¶ added in v0.0.19
type UpdateAdminReqMultiError []error
UpdateAdminReqMultiError is an error wrapping multiple validation errors returned by UpdateAdminReq.ValidateAll() if the designated constraints aren't met.
func (UpdateAdminReqMultiError) AllErrors ¶ added in v0.0.19
func (m UpdateAdminReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateAdminReqMultiError) Error ¶ added in v0.0.19
func (m UpdateAdminReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateAdminReqValidationError ¶ added in v0.0.19
type UpdateAdminReqValidationError struct {
// contains filtered or unexported fields
}
UpdateAdminReqValidationError is the validation error returned by UpdateAdminReq.Validate if the designated constraints aren't met.
func (UpdateAdminReqValidationError) Cause ¶ added in v0.0.19
func (e UpdateAdminReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateAdminReqValidationError) Error ¶ added in v0.0.19
func (e UpdateAdminReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAdminReqValidationError) ErrorName ¶ added in v0.0.19
func (e UpdateAdminReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAdminReqValidationError) Field ¶ added in v0.0.19
func (e UpdateAdminReqValidationError) Field() string
Field function returns field value.
func (UpdateAdminReqValidationError) Key ¶ added in v0.0.19
func (e UpdateAdminReqValidationError) Key() bool
Key function returns key value.
func (UpdateAdminReqValidationError) Reason ¶ added in v0.0.19
func (e UpdateAdminReqValidationError) Reason() string
Reason function returns reason value.
type VerifyAdminPasswdReq ¶
type VerifyAdminPasswdReq struct { // id Id uint64 `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 (*VerifyAdminPasswdReq) Descriptor
deprecated
func (*VerifyAdminPasswdReq) Descriptor() ([]byte, []int)
Deprecated: Use VerifyAdminPasswdReq.ProtoReflect.Descriptor instead.
func (*VerifyAdminPasswdReq) GetId ¶
func (x *VerifyAdminPasswdReq) GetId() uint64
func (*VerifyAdminPasswdReq) GetPassword ¶
func (x *VerifyAdminPasswdReq) GetPassword() string
func (*VerifyAdminPasswdReq) ProtoMessage ¶
func (*VerifyAdminPasswdReq) ProtoMessage()
func (*VerifyAdminPasswdReq) ProtoReflect ¶
func (x *VerifyAdminPasswdReq) ProtoReflect() protoreflect.Message
func (*VerifyAdminPasswdReq) Reset ¶
func (x *VerifyAdminPasswdReq) Reset()
func (*VerifyAdminPasswdReq) String ¶
func (x *VerifyAdminPasswdReq) String() string
func (*VerifyAdminPasswdReq) Validate ¶ added in v0.0.19
func (m *VerifyAdminPasswdReq) Validate() error
Validate checks the field values on VerifyAdminPasswdReq 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 (*VerifyAdminPasswdReq) ValidateAll ¶ added in v0.0.19
func (m *VerifyAdminPasswdReq) ValidateAll() error
ValidateAll checks the field values on VerifyAdminPasswdReq 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 VerifyAdminPasswdReqMultiError, or nil if none found.
type VerifyAdminPasswdReqMultiError ¶ added in v0.0.19
type VerifyAdminPasswdReqMultiError []error
VerifyAdminPasswdReqMultiError is an error wrapping multiple validation errors returned by VerifyAdminPasswdReq.ValidateAll() if the designated constraints aren't met.
func (VerifyAdminPasswdReqMultiError) AllErrors ¶ added in v0.0.19
func (m VerifyAdminPasswdReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyAdminPasswdReqMultiError) Error ¶ added in v0.0.19
func (m VerifyAdminPasswdReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyAdminPasswdReqValidationError ¶ added in v0.0.19
type VerifyAdminPasswdReqValidationError struct {
// contains filtered or unexported fields
}
VerifyAdminPasswdReqValidationError is the validation error returned by VerifyAdminPasswdReq.Validate if the designated constraints aren't met.
func (VerifyAdminPasswdReqValidationError) Cause ¶ added in v0.0.19
func (e VerifyAdminPasswdReqValidationError) Cause() error
Cause function returns cause value.
func (VerifyAdminPasswdReqValidationError) Error ¶ added in v0.0.19
func (e VerifyAdminPasswdReqValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyAdminPasswdReqValidationError) ErrorName ¶ added in v0.0.19
func (e VerifyAdminPasswdReqValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyAdminPasswdReqValidationError) Field ¶ added in v0.0.19
func (e VerifyAdminPasswdReqValidationError) Field() string
Field function returns field value.
func (VerifyAdminPasswdReqValidationError) Key ¶ added in v0.0.19
func (e VerifyAdminPasswdReqValidationError) Key() bool
Key function returns key value.
func (VerifyAdminPasswdReqValidationError) Reason ¶ added in v0.0.19
func (e VerifyAdminPasswdReqValidationError) Reason() string
Reason function returns reason value.