v1

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Admin_CreateAdmin_FullMethodName       = "/api.admin.v1.Admin/CreateAdmin"
	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"
)
View Source
const OperationAdminAdminStatus = "/api.admin.v1.Admin/AdminStatus"
View Source
const OperationAdminCreateAdmin = "/api.admin.v1.Admin/CreateAdmin"
View Source
const OperationAdminDeleteAdmin = "/api.admin.v1.Admin/DeleteAdmin"
View Source
const OperationAdminGetAdmin = "/api.admin.v1.Admin/GetAdmin"
View Source
const OperationAdminListAdmin = "/api.admin.v1.Admin/ListAdmin"
View Source
const OperationAdminRecoverAdmin = "/api.admin.v1.Admin/RecoverAdmin"
View Source
const OperationAdminUpdateAdmin = "/api.admin.v1.Admin/UpdateAdmin"
View Source
const OperationAdminVerifyAdminPasswd = "/api.admin.v1.Admin/VerifyAdminPasswd"

Variables

View Source
var Admin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.admin.v1.Admin",
	HandlerType: (*AdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateAdmin",
			Handler:    _Admin_CreateAdmin_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)

View Source
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)
	// 编辑管理员
	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)
	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) 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)
	// 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

Cause function returns cause value.

func (AdminInfoRepValidationError) Error added in v0.0.19

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

Field function returns field value.

func (AdminInfoRepValidationError) Key added in v0.0.19

Key function returns key value.

func (AdminInfoRepValidationError) Reason added in v0.0.19

Reason function returns reason value.

type AdminServer

type AdminServer interface {
	// 创建管理员
	CreateAdmin(context.Context, *CreateAdminReq) (*AdminInfoRep, 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

Cause function returns cause value.

func (AdminStatusReqValidationError) Error added in v0.0.19

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

Field function returns field value.

func (AdminStatusReqValidationError) Key added in v0.0.19

Key function returns key value.

func (AdminStatusReqValidationError) Reason added in v0.0.19

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

Cause function returns cause value.

func (CreateAdminReqValidationError) Error added in v0.0.19

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

Field function returns field value.

func (CreateAdminReqValidationError) Key added in v0.0.19

Key function returns key value.

func (CreateAdminReqValidationError) Reason added in v0.0.19

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

Cause function returns cause value.

func (DeleteAdminReqValidationError) Error added in v0.0.19

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

Field function returns field value.

func (DeleteAdminReqValidationError) Key added in v0.0.19

Key function returns key value.

func (DeleteAdminReqValidationError) Reason added in v0.0.19

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

Cause function returns cause value.

func (GetAdminReqValidationError) Error added in v0.0.19

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

Field function returns field value.

func (GetAdminReqValidationError) Key added in v0.0.19

Key function returns key value.

func (GetAdminReqValidationError) Reason added in v0.0.19

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

Cause function returns cause value.

func (ListAdminRepValidationError) Error added in v0.0.19

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

Field function returns field value.

func (ListAdminRepValidationError) Key added in v0.0.19

Key function returns key value.

func (ListAdminRepValidationError) Reason added in v0.0.19

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

Cause function returns cause value.

func (ListAdminReqValidationError) Error added in v0.0.19

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

Field function returns field value.

func (ListAdminReqValidationError) Key added in v0.0.19

Key function returns key value.

func (ListAdminReqValidationError) Reason added in v0.0.19

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

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

Cause function returns cause value.

func (RecoverAdminReqValidationError) Error added in v0.0.19

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

Field function returns field value.

func (RecoverAdminReqValidationError) Key added in v0.0.19

Key function returns key value.

func (RecoverAdminReqValidationError) Reason added in v0.0.19

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) Descriptor() ([]byte, []int)

Deprecated: Use RepStatus.ProtoReflect.Descriptor instead.

func (*RepStatus) GetSuccess

func (x *RepStatus) GetSuccess() bool

func (*RepStatus) ProtoMessage

func (*RepStatus) ProtoMessage()

func (*RepStatus) ProtoReflect

func (x *RepStatus) ProtoReflect() protoreflect.Message

func (*RepStatus) Reset

func (x *RepStatus) Reset()

func (*RepStatus) String

func (x *RepStatus) String() string

func (*RepStatus) Validate added in v0.0.19

func (m *RepStatus) Validate() error

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

func (m *RepStatus) ValidateAll() error

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

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

func (UnimplementedAdminServer) DeleteAdmin

func (UnimplementedAdminServer) GetAdmin

func (UnimplementedAdminServer) ListAdmin

func (UnimplementedAdminServer) RecoverAdmin

func (UnimplementedAdminServer) UpdateAdmin

func (UnimplementedAdminServer) VerifyAdminPasswd

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

Cause function returns cause value.

func (UpdateAdminReqValidationError) Error added in v0.0.19

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

Field function returns field value.

func (UpdateAdminReqValidationError) Key added in v0.0.19

Key function returns key value.

func (UpdateAdminReqValidationError) Reason added in v0.0.19

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

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

Cause function returns cause value.

func (VerifyAdminPasswdReqValidationError) Error added in v0.0.19

Error satisfies the builtin error interface

func (VerifyAdminPasswdReqValidationError) ErrorName added in v0.0.19

ErrorName returns error name.

func (VerifyAdminPasswdReqValidationError) Field added in v0.0.19

Field function returns field value.

func (VerifyAdminPasswdReqValidationError) Key added in v0.0.19

Key function returns key value.

func (VerifyAdminPasswdReqValidationError) Reason added in v0.0.19

Reason function returns reason value.

Jump to

Keyboard shortcuts

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