v1

package
v0.0.0-...-96f2668 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthService_Register_FullMethodName     = "/core.service.v1.AuthService/Register"
	AuthService_IsAuthorized_FullMethodName = "/core.service.v1.AuthService/IsAuthorized"
)
View Source
const (
	DeptService_CreateDept_FullMethodName = "/core.service.v1.DeptService/CreateDept"
	DeptService_UpdateDept_FullMethodName = "/core.service.v1.DeptService/UpdateDept"
	DeptService_DeleteDept_FullMethodName = "/core.service.v1.DeptService/DeleteDept"
	DeptService_GetDept_FullMethodName    = "/core.service.v1.DeptService/GetDept"
	DeptService_ListDept_FullMethodName   = "/core.service.v1.DeptService/ListDept"
)
View Source
const (
	MenuService_CreateMenu_FullMethodName = "/core.service.v1.MenuService/CreateMenu"
	MenuService_UpdateMenu_FullMethodName = "/core.service.v1.MenuService/UpdateMenu"
	MenuService_DeleteMenu_FullMethodName = "/core.service.v1.MenuService/DeleteMenu"
	MenuService_GetMenu_FullMethodName    = "/core.service.v1.MenuService/GetMenu"
	MenuService_ListMenu_FullMethodName   = "/core.service.v1.MenuService/ListMenu"
)
View Source
const (
	PostService_CreatePost_FullMethodName = "/core.service.v1.PostService/CreatePost"
	PostService_UpdatePost_FullMethodName = "/core.service.v1.PostService/UpdatePost"
	PostService_DeletePost_FullMethodName = "/core.service.v1.PostService/DeletePost"
	PostService_GetPost_FullMethodName    = "/core.service.v1.PostService/GetPost"
	PostService_ListPost_FullMethodName   = "/core.service.v1.PostService/ListPost"
)
View Source
const (
	RoleService_CreateRole_FullMethodName = "/core.service.v1.RoleService/CreateRole"
	RoleService_UpdateRole_FullMethodName = "/core.service.v1.RoleService/UpdateRole"
	RoleService_DeleteRole_FullMethodName = "/core.service.v1.RoleService/DeleteRole"
	RoleService_GetRole_FullMethodName    = "/core.service.v1.RoleService/GetRole"
	RoleService_ListRole_FullMethodName   = "/core.service.v1.RoleService/ListRole"
)
View Source
const (
	UserService_CreateUser_FullMethodName     = "/core.service.v1.UserService/CreateUser"
	UserService_UpdateUser_FullMethodName     = "/core.service.v1.UserService/UpdateUser"
	UserService_DeleteUser_FullMethodName     = "/core.service.v1.UserService/DeleteUser"
	UserService_GetUser_FullMethodName        = "/core.service.v1.UserService/GetUser"
	UserService_ListUser_FullMethodName       = "/core.service.v1.UserService/ListUser"
	UserService_GetUserByName_FullMethodName  = "/core.service.v1.UserService/GetUserByName"
	UserService_VerifyPassword_FullMethodName = "/core.service.v1.UserService/VerifyPassword"
	UserService_UserExists_FullMethodName     = "/core.service.v1.UserService/UserExists"
)

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0:  "UNSPECIFIED",
		11: "USER_NOT_FOUND",
	}
	ErrorReason_value = map[string]int32{
		"UNSPECIFIED":    0,
		"USER_NOT_FOUND": 11,
	}
)

Enum value maps for ErrorReason.

View Source
var (
	VerifyPassword_name = map[int32]string{
		0: "VERIFY_PASSWORD_UNSPECIFIED",
		1: "VERIFY_PASSWORD_SUCCESS",
		2: "VERIFY_PASSWORD_ACCOUNT_NOT_EXISTS",
		3: "VERIFY_PASSWORD_WRONG_PASSWORD",
		4: "VERIFY_PASSWORD_FREEZE",
		5: "VERIFY_PASSWORD_DELETED",
	}
	VerifyPassword_value = map[string]int32{
		"VERIFY_PASSWORD_UNSPECIFIED":        0,
		"VERIFY_PASSWORD_SUCCESS":            1,
		"VERIFY_PASSWORD_ACCOUNT_NOT_EXISTS": 2,
		"VERIFY_PASSWORD_WRONG_PASSWORD":     3,
		"VERIFY_PASSWORD_FREEZE":             4,
		"VERIFY_PASSWORD_DELETED":            5,
	}
)

Enum value maps for VerifyPassword.

View Source
var (
	Authority_name = map[int32]string{
		0: "AUTHORITY_UNSPECIFIED",
		1: "AUTHORITY_SYS_ADMIN",
		2: "AUTHORITY_CUSTOMER_USER",
		3: "AUTHORITY_GUEST_USER",
	}
	Authority_value = map[string]int32{
		"AUTHORITY_UNSPECIFIED":   0,
		"AUTHORITY_SYS_ADMIN":     1,
		"AUTHORITY_CUSTOMER_USER": 2,
		"AUTHORITY_GUEST_USER":    3,
	}
)

Enum value maps for Authority.

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "core.service.v1.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _AuthService_Register_Handler,
		},
		{
			MethodName: "IsAuthorized",
			Handler:    _AuthService_IsAuthorized_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "core/service/v1/auth.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService 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 DeptService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "core.service.v1.DeptService",
	HandlerType: (*DeptServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateDept",
			Handler:    _DeptService_CreateDept_Handler,
		},
		{
			MethodName: "UpdateDept",
			Handler:    _DeptService_UpdateDept_Handler,
		},
		{
			MethodName: "DeleteDept",
			Handler:    _DeptService_DeleteDept_Handler,
		},
		{
			MethodName: "GetDept",
			Handler:    _DeptService_GetDept_Handler,
		},
		{
			MethodName: "ListDept",
			Handler:    _DeptService_ListDept_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "core/service/v1/dept.proto",
}

DeptService_ServiceDesc is the grpc.ServiceDesc for DeptService 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_core_service_v1_auth_proto protoreflect.FileDescriptor
View Source
var File_core_service_v1_dept_proto protoreflect.FileDescriptor
View Source
var File_core_service_v1_error_reason_proto protoreflect.FileDescriptor
View Source
var File_core_service_v1_menu_proto protoreflect.FileDescriptor
View Source
var File_core_service_v1_post_proto protoreflect.FileDescriptor
View Source
var File_core_service_v1_role_proto protoreflect.FileDescriptor
View Source
var File_core_service_v1_user_proto protoreflect.FileDescriptor
View Source
var MenuService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "core.service.v1.MenuService",
	HandlerType: (*MenuServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateMenu",
			Handler:    _MenuService_CreateMenu_Handler,
		},
		{
			MethodName: "UpdateMenu",
			Handler:    _MenuService_UpdateMenu_Handler,
		},
		{
			MethodName: "DeleteMenu",
			Handler:    _MenuService_DeleteMenu_Handler,
		},
		{
			MethodName: "GetMenu",
			Handler:    _MenuService_GetMenu_Handler,
		},
		{
			MethodName: "ListMenu",
			Handler:    _MenuService_ListMenu_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "core/service/v1/menu.proto",
}

MenuService_ServiceDesc is the grpc.ServiceDesc for MenuService 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 PostService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "core.service.v1.PostService",
	HandlerType: (*PostServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePost",
			Handler:    _PostService_CreatePost_Handler,
		},
		{
			MethodName: "UpdatePost",
			Handler:    _PostService_UpdatePost_Handler,
		},
		{
			MethodName: "DeletePost",
			Handler:    _PostService_DeletePost_Handler,
		},
		{
			MethodName: "GetPost",
			Handler:    _PostService_GetPost_Handler,
		},
		{
			MethodName: "ListPost",
			Handler:    _PostService_ListPost_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "core/service/v1/post.proto",
}

PostService_ServiceDesc is the grpc.ServiceDesc for PostService 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 RoleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "core.service.v1.RoleService",
	HandlerType: (*RoleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateRole",
			Handler:    _RoleService_CreateRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _RoleService_UpdateRole_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _RoleService_DeleteRole_Handler,
		},
		{
			MethodName: "GetRole",
			Handler:    _RoleService_GetRole_Handler,
		},
		{
			MethodName: "ListRole",
			Handler:    _RoleService_ListRole_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "core/service/v1/role.proto",
}

RoleService_ServiceDesc is the grpc.ServiceDesc for RoleService 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 UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "core.service.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "ListUser",
			Handler:    _UserService_ListUser_Handler,
		},
		{
			MethodName: "GetUserByName",
			Handler:    _UserService_GetUserByName_Handler,
		},
		{
			MethodName: "VerifyPassword",
			Handler:    _UserService_VerifyPassword_Handler,
		},
		{
			MethodName: "UserExists",
			Handler:    _UserService_UserExists_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "core/service/v1/user.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func ErrorUnspecified

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

func ErrorUserNotFound

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

func IsUnspecified

func IsUnspecified(err error) bool

func IsUserNotFound

func IsUserNotFound(err error) bool

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

func RegisterDeptServiceServer

func RegisterDeptServiceServer(s grpc.ServiceRegistrar, srv DeptServiceServer)

func RegisterMenuServiceServer

func RegisterMenuServiceServer(s grpc.ServiceRegistrar, srv MenuServiceServer)

func RegisterPostServiceServer

func RegisterPostServiceServer(s grpc.ServiceRegistrar, srv PostServiceServer)

func RegisterRoleServiceServer

func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer)

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	// 注册 - 暂保留
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	// 鉴权
	IsAuthorized(ctx context.Context, in *IsAuthorizedRequest, opts ...grpc.CallOption) (*IsAuthorizedResponse, error)
}

AuthServiceClient is the client API for AuthService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AuthServiceServer

type AuthServiceServer interface {
	// 注册 - 暂保留
	Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
	// 鉴权
	IsAuthorized(context.Context, *IsAuthorizedRequest) (*IsAuthorizedResponse, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility

type Authority

type Authority int32

用户权限

const (
	Authority_AUTHORITY_UNSPECIFIED   Authority = 0
	Authority_AUTHORITY_SYS_ADMIN     Authority = 1 // 系统超级用户
	Authority_AUTHORITY_CUSTOMER_USER Authority = 2 // 普通用户
	Authority_AUTHORITY_GUEST_USER    Authority = 3 // 游客
)

func (Authority) Descriptor

func (Authority) Descriptor() protoreflect.EnumDescriptor

func (Authority) Enum

func (x Authority) Enum() *Authority

func (Authority) EnumDescriptor deprecated

func (Authority) EnumDescriptor() ([]byte, []int)

Deprecated: Use Authority.Descriptor instead.

func (Authority) Number

func (x Authority) Number() protoreflect.EnumNumber

func (Authority) String

func (x Authority) String() string

func (Authority) Type

type CreateDeptRequest

type CreateDeptRequest struct {
	Dept       *Dept  `protobuf:"bytes,1,opt,name=dept,proto3" json:"dept,omitempty"`
	OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDeptRequest) Descriptor deprecated

func (*CreateDeptRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateDeptRequest.ProtoReflect.Descriptor instead.

func (*CreateDeptRequest) GetDept

func (x *CreateDeptRequest) GetDept() *Dept

func (*CreateDeptRequest) GetOperatorId

func (x *CreateDeptRequest) GetOperatorId() uint32

func (*CreateDeptRequest) ProtoMessage

func (*CreateDeptRequest) ProtoMessage()

func (*CreateDeptRequest) ProtoReflect

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

func (*CreateDeptRequest) Reset

func (x *CreateDeptRequest) Reset()

func (*CreateDeptRequest) String

func (x *CreateDeptRequest) String() string

func (*CreateDeptRequest) Validate

func (m *CreateDeptRequest) Validate() error

Validate checks the field values on CreateDeptRequest 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 (*CreateDeptRequest) ValidateAll

func (m *CreateDeptRequest) ValidateAll() error

ValidateAll checks the field values on CreateDeptRequest 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 CreateDeptRequestMultiError, or nil if none found.

type CreateDeptRequestMultiError

type CreateDeptRequestMultiError []error

CreateDeptRequestMultiError is an error wrapping multiple validation errors returned by CreateDeptRequest.ValidateAll() if the designated constraints aren't met.

func (CreateDeptRequestMultiError) AllErrors

func (m CreateDeptRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDeptRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateDeptRequestValidationError

type CreateDeptRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateDeptRequestValidationError is the validation error returned by CreateDeptRequest.Validate if the designated constraints aren't met.

func (CreateDeptRequestValidationError) Cause

Cause function returns cause value.

func (CreateDeptRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateDeptRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateDeptRequestValidationError) Field

Field function returns field value.

func (CreateDeptRequestValidationError) Key

Key function returns key value.

func (CreateDeptRequestValidationError) Reason

Reason function returns reason value.

type CreateDeptResponse

type CreateDeptResponse struct {
	// contains filtered or unexported fields
}

func (*CreateDeptResponse) Descriptor deprecated

func (*CreateDeptResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateDeptResponse.ProtoReflect.Descriptor instead.

func (*CreateDeptResponse) ProtoMessage

func (*CreateDeptResponse) ProtoMessage()

func (*CreateDeptResponse) ProtoReflect

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

func (*CreateDeptResponse) Reset

func (x *CreateDeptResponse) Reset()

func (*CreateDeptResponse) String

func (x *CreateDeptResponse) String() string

func (*CreateDeptResponse) Validate

func (m *CreateDeptResponse) Validate() error

Validate checks the field values on CreateDeptResponse 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 (*CreateDeptResponse) ValidateAll

func (m *CreateDeptResponse) ValidateAll() error

ValidateAll checks the field values on CreateDeptResponse 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 CreateDeptResponseMultiError, or nil if none found.

type CreateDeptResponseMultiError

type CreateDeptResponseMultiError []error

CreateDeptResponseMultiError is an error wrapping multiple validation errors returned by CreateDeptResponse.ValidateAll() if the designated constraints aren't met.

func (CreateDeptResponseMultiError) AllErrors

func (m CreateDeptResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDeptResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateDeptResponseValidationError

type CreateDeptResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateDeptResponseValidationError is the validation error returned by CreateDeptResponse.Validate if the designated constraints aren't met.

func (CreateDeptResponseValidationError) Cause

Cause function returns cause value.

func (CreateDeptResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateDeptResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateDeptResponseValidationError) Field

Field function returns field value.

func (CreateDeptResponseValidationError) Key

Key function returns key value.

func (CreateDeptResponseValidationError) Reason

Reason function returns reason value.

type CreateMenuRequest

type CreateMenuRequest struct {
	Menu       *Menu  `protobuf:"bytes,1,opt,name=menu,proto3" json:"menu,omitempty"`
	OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMenuRequest) Descriptor deprecated

func (*CreateMenuRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateMenuRequest.ProtoReflect.Descriptor instead.

func (*CreateMenuRequest) GetMenu

func (x *CreateMenuRequest) GetMenu() *Menu

func (*CreateMenuRequest) GetOperatorId

func (x *CreateMenuRequest) GetOperatorId() uint32

func (*CreateMenuRequest) ProtoMessage

func (*CreateMenuRequest) ProtoMessage()

func (*CreateMenuRequest) ProtoReflect

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

func (*CreateMenuRequest) Reset

func (x *CreateMenuRequest) Reset()

func (*CreateMenuRequest) String

func (x *CreateMenuRequest) String() string

func (*CreateMenuRequest) Validate

func (m *CreateMenuRequest) Validate() error

Validate checks the field values on CreateMenuRequest 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 (*CreateMenuRequest) ValidateAll

func (m *CreateMenuRequest) ValidateAll() error

ValidateAll checks the field values on CreateMenuRequest 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 CreateMenuRequestMultiError, or nil if none found.

type CreateMenuRequestMultiError

type CreateMenuRequestMultiError []error

CreateMenuRequestMultiError is an error wrapping multiple validation errors returned by CreateMenuRequest.ValidateAll() if the designated constraints aren't met.

func (CreateMenuRequestMultiError) AllErrors

func (m CreateMenuRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateMenuRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateMenuRequestValidationError

type CreateMenuRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateMenuRequestValidationError is the validation error returned by CreateMenuRequest.Validate if the designated constraints aren't met.

func (CreateMenuRequestValidationError) Cause

Cause function returns cause value.

func (CreateMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateMenuRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateMenuRequestValidationError) Field

Field function returns field value.

func (CreateMenuRequestValidationError) Key

Key function returns key value.

func (CreateMenuRequestValidationError) Reason

Reason function returns reason value.

type CreateMenuResponse

type CreateMenuResponse struct {
	// contains filtered or unexported fields
}

func (*CreateMenuResponse) Descriptor deprecated

func (*CreateMenuResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateMenuResponse.ProtoReflect.Descriptor instead.

func (*CreateMenuResponse) ProtoMessage

func (*CreateMenuResponse) ProtoMessage()

func (*CreateMenuResponse) ProtoReflect

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

func (*CreateMenuResponse) Reset

func (x *CreateMenuResponse) Reset()

func (*CreateMenuResponse) String

func (x *CreateMenuResponse) String() string

func (*CreateMenuResponse) Validate

func (m *CreateMenuResponse) Validate() error

Validate checks the field values on CreateMenuResponse 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 (*CreateMenuResponse) ValidateAll

func (m *CreateMenuResponse) ValidateAll() error

ValidateAll checks the field values on CreateMenuResponse 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 CreateMenuResponseMultiError, or nil if none found.

type CreateMenuResponseMultiError

type CreateMenuResponseMultiError []error

CreateMenuResponseMultiError is an error wrapping multiple validation errors returned by CreateMenuResponse.ValidateAll() if the designated constraints aren't met.

func (CreateMenuResponseMultiError) AllErrors

func (m CreateMenuResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateMenuResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateMenuResponseValidationError

type CreateMenuResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateMenuResponseValidationError is the validation error returned by CreateMenuResponse.Validate if the designated constraints aren't met.

func (CreateMenuResponseValidationError) Cause

Cause function returns cause value.

func (CreateMenuResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateMenuResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateMenuResponseValidationError) Field

Field function returns field value.

func (CreateMenuResponseValidationError) Key

Key function returns key value.

func (CreateMenuResponseValidationError) Reason

Reason function returns reason value.

type CreatePostRequest

type CreatePostRequest struct {
	Post       *Post  `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"`
	OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePostRequest) Descriptor deprecated

func (*CreatePostRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreatePostRequest.ProtoReflect.Descriptor instead.

func (*CreatePostRequest) GetOperatorId

func (x *CreatePostRequest) GetOperatorId() uint32

func (*CreatePostRequest) GetPost

func (x *CreatePostRequest) GetPost() *Post

func (*CreatePostRequest) ProtoMessage

func (*CreatePostRequest) ProtoMessage()

func (*CreatePostRequest) ProtoReflect

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

func (*CreatePostRequest) Reset

func (x *CreatePostRequest) Reset()

func (*CreatePostRequest) String

func (x *CreatePostRequest) String() string

func (*CreatePostRequest) Validate

func (m *CreatePostRequest) Validate() error

Validate checks the field values on CreatePostRequest 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 (*CreatePostRequest) ValidateAll

func (m *CreatePostRequest) ValidateAll() error

ValidateAll checks the field values on CreatePostRequest 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 CreatePostRequestMultiError, or nil if none found.

type CreatePostRequestMultiError

type CreatePostRequestMultiError []error

CreatePostRequestMultiError is an error wrapping multiple validation errors returned by CreatePostRequest.ValidateAll() if the designated constraints aren't met.

func (CreatePostRequestMultiError) AllErrors

func (m CreatePostRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreatePostRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreatePostRequestValidationError

type CreatePostRequestValidationError struct {
	// contains filtered or unexported fields
}

CreatePostRequestValidationError is the validation error returned by CreatePostRequest.Validate if the designated constraints aren't met.

func (CreatePostRequestValidationError) Cause

Cause function returns cause value.

func (CreatePostRequestValidationError) Error

Error satisfies the builtin error interface

func (CreatePostRequestValidationError) ErrorName

ErrorName returns error name.

func (CreatePostRequestValidationError) Field

Field function returns field value.

func (CreatePostRequestValidationError) Key

Key function returns key value.

func (CreatePostRequestValidationError) Reason

Reason function returns reason value.

type CreatePostResponse

type CreatePostResponse struct {
	// contains filtered or unexported fields
}

func (*CreatePostResponse) Descriptor deprecated

func (*CreatePostResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreatePostResponse.ProtoReflect.Descriptor instead.

func (*CreatePostResponse) ProtoMessage

func (*CreatePostResponse) ProtoMessage()

func (*CreatePostResponse) ProtoReflect

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

func (*CreatePostResponse) Reset

func (x *CreatePostResponse) Reset()

func (*CreatePostResponse) String

func (x *CreatePostResponse) String() string

func (*CreatePostResponse) Validate

func (m *CreatePostResponse) Validate() error

Validate checks the field values on CreatePostResponse 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 (*CreatePostResponse) ValidateAll

func (m *CreatePostResponse) ValidateAll() error

ValidateAll checks the field values on CreatePostResponse 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 CreatePostResponseMultiError, or nil if none found.

type CreatePostResponseMultiError

type CreatePostResponseMultiError []error

CreatePostResponseMultiError is an error wrapping multiple validation errors returned by CreatePostResponse.ValidateAll() if the designated constraints aren't met.

func (CreatePostResponseMultiError) AllErrors

func (m CreatePostResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreatePostResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreatePostResponseValidationError

type CreatePostResponseValidationError struct {
	// contains filtered or unexported fields
}

CreatePostResponseValidationError is the validation error returned by CreatePostResponse.Validate if the designated constraints aren't met.

func (CreatePostResponseValidationError) Cause

Cause function returns cause value.

func (CreatePostResponseValidationError) Error

Error satisfies the builtin error interface

func (CreatePostResponseValidationError) ErrorName

ErrorName returns error name.

func (CreatePostResponseValidationError) Field

Field function returns field value.

func (CreatePostResponseValidationError) Key

Key function returns key value.

func (CreatePostResponseValidationError) Reason

Reason function returns reason value.

type CreateRoleRequest

type CreateRoleRequest struct {
	Role       *Role  `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoleRequest) Descriptor deprecated

func (*CreateRoleRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.

func (*CreateRoleRequest) GetOperatorId

func (x *CreateRoleRequest) GetOperatorId() uint32

func (*CreateRoleRequest) GetRole

func (x *CreateRoleRequest) GetRole() *Role

func (*CreateRoleRequest) ProtoMessage

func (*CreateRoleRequest) ProtoMessage()

func (*CreateRoleRequest) ProtoReflect

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

func (*CreateRoleRequest) Reset

func (x *CreateRoleRequest) Reset()

func (*CreateRoleRequest) String

func (x *CreateRoleRequest) String() string

func (*CreateRoleRequest) Validate

func (m *CreateRoleRequest) Validate() error

Validate checks the field values on CreateRoleRequest 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 (*CreateRoleRequest) ValidateAll

func (m *CreateRoleRequest) ValidateAll() error

ValidateAll checks the field values on CreateRoleRequest 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 CreateRoleRequestMultiError, or nil if none found.

type CreateRoleRequestMultiError

type CreateRoleRequestMultiError []error

CreateRoleRequestMultiError is an error wrapping multiple validation errors returned by CreateRoleRequest.ValidateAll() if the designated constraints aren't met.

func (CreateRoleRequestMultiError) AllErrors

func (m CreateRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateRoleRequestValidationError

type CreateRoleRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateRoleRequestValidationError is the validation error returned by CreateRoleRequest.Validate if the designated constraints aren't met.

func (CreateRoleRequestValidationError) Cause

Cause function returns cause value.

func (CreateRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateRoleRequestValidationError) Field

Field function returns field value.

func (CreateRoleRequestValidationError) Key

Key function returns key value.

func (CreateRoleRequestValidationError) Reason

Reason function returns reason value.

type CreateRoleResponse

type CreateRoleResponse struct {
	// contains filtered or unexported fields
}

func (*CreateRoleResponse) Descriptor deprecated

func (*CreateRoleResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateRoleResponse.ProtoReflect.Descriptor instead.

func (*CreateRoleResponse) ProtoMessage

func (*CreateRoleResponse) ProtoMessage()

func (*CreateRoleResponse) ProtoReflect

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

func (*CreateRoleResponse) Reset

func (x *CreateRoleResponse) Reset()

func (*CreateRoleResponse) String

func (x *CreateRoleResponse) String() string

func (*CreateRoleResponse) Validate

func (m *CreateRoleResponse) Validate() error

Validate checks the field values on CreateRoleResponse 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 (*CreateRoleResponse) ValidateAll

func (m *CreateRoleResponse) ValidateAll() error

ValidateAll checks the field values on CreateRoleResponse 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 CreateRoleResponseMultiError, or nil if none found.

type CreateRoleResponseMultiError

type CreateRoleResponseMultiError []error

CreateRoleResponseMultiError is an error wrapping multiple validation errors returned by CreateRoleResponse.ValidateAll() if the designated constraints aren't met.

func (CreateRoleResponseMultiError) AllErrors

func (m CreateRoleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRoleResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateRoleResponseValidationError

type CreateRoleResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateRoleResponseValidationError is the validation error returned by CreateRoleResponse.Validate if the designated constraints aren't met.

func (CreateRoleResponseValidationError) Cause

Cause function returns cause value.

func (CreateRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateRoleResponseValidationError) Field

Field function returns field value.

func (CreateRoleResponseValidationError) Key

Key function returns key value.

func (CreateRoleResponseValidationError) Reason

Reason function returns reason value.

type CreateUserRequest

type CreateUserRequest struct {
	User       *User  `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

func (*CreateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetOperatorId

func (x *CreateUserRequest) GetOperatorId() uint32

func (*CreateUserRequest) GetUser

func (x *CreateUserRequest) GetUser() *User

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

func (*CreateUserRequest) Validate

func (m *CreateUserRequest) Validate() error

Validate checks the field values on CreateUserRequest 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 (*CreateUserRequest) ValidateAll

func (m *CreateUserRequest) ValidateAll() error

ValidateAll checks the field values on CreateUserRequest 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 CreateUserRequestMultiError, or nil if none found.

type CreateUserRequestMultiError

type CreateUserRequestMultiError []error

CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.

func (CreateUserRequestMultiError) AllErrors

func (m CreateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserRequestValidationError

type CreateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.

func (CreateUserRequestValidationError) Cause

Cause function returns cause value.

func (CreateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserRequestValidationError) Field

Field function returns field value.

func (CreateUserRequestValidationError) Key

Key function returns key value.

func (CreateUserRequestValidationError) Reason

Reason function returns reason value.

type CreateUserResponse

type CreateUserResponse struct {
	// contains filtered or unexported fields
}

func (*CreateUserResponse) Descriptor deprecated

func (*CreateUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect

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

func (*CreateUserResponse) Reset

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (x *CreateUserResponse) String() string

func (*CreateUserResponse) Validate

func (m *CreateUserResponse) Validate() error

Validate checks the field values on CreateUserResponse 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 (*CreateUserResponse) ValidateAll

func (m *CreateUserResponse) ValidateAll() error

ValidateAll checks the field values on CreateUserResponse 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 CreateUserResponseMultiError, or nil if none found.

type CreateUserResponseMultiError

type CreateUserResponseMultiError []error

CreateUserResponseMultiError is an error wrapping multiple validation errors returned by CreateUserResponse.ValidateAll() if the designated constraints aren't met.

func (CreateUserResponseMultiError) AllErrors

func (m CreateUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserResponseValidationError

type CreateUserResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateUserResponseValidationError is the validation error returned by CreateUserResponse.Validate if the designated constraints aren't met.

func (CreateUserResponseValidationError) Cause

Cause function returns cause value.

func (CreateUserResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateUserResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateUserResponseValidationError) Field

Field function returns field value.

func (CreateUserResponseValidationError) Key

Key function returns key value.

func (CreateUserResponseValidationError) Reason

Reason function returns reason value.

type DeleteDeptRequest

type DeleteDeptRequest struct {
	Id         uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDeptRequest) Descriptor deprecated

func (*DeleteDeptRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteDeptRequest.ProtoReflect.Descriptor instead.

func (*DeleteDeptRequest) GetId

func (x *DeleteDeptRequest) GetId() uint32

func (*DeleteDeptRequest) GetOperatorId

func (x *DeleteDeptRequest) GetOperatorId() uint32

func (*DeleteDeptRequest) ProtoMessage

func (*DeleteDeptRequest) ProtoMessage()

func (*DeleteDeptRequest) ProtoReflect

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

func (*DeleteDeptRequest) Reset

func (x *DeleteDeptRequest) Reset()

func (*DeleteDeptRequest) String

func (x *DeleteDeptRequest) String() string

func (*DeleteDeptRequest) Validate

func (m *DeleteDeptRequest) Validate() error

Validate checks the field values on DeleteDeptRequest 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 (*DeleteDeptRequest) ValidateAll

func (m *DeleteDeptRequest) ValidateAll() error

ValidateAll checks the field values on DeleteDeptRequest 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 DeleteDeptRequestMultiError, or nil if none found.

type DeleteDeptRequestMultiError

type DeleteDeptRequestMultiError []error

DeleteDeptRequestMultiError is an error wrapping multiple validation errors returned by DeleteDeptRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteDeptRequestMultiError) AllErrors

func (m DeleteDeptRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDeptRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteDeptRequestValidationError

type DeleteDeptRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteDeptRequestValidationError is the validation error returned by DeleteDeptRequest.Validate if the designated constraints aren't met.

func (DeleteDeptRequestValidationError) Cause

Cause function returns cause value.

func (DeleteDeptRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteDeptRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteDeptRequestValidationError) Field

Field function returns field value.

func (DeleteDeptRequestValidationError) Key

Key function returns key value.

func (DeleteDeptRequestValidationError) Reason

Reason function returns reason value.

type DeleteDeptResponse

type DeleteDeptResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteDeptResponse) Descriptor deprecated

func (*DeleteDeptResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteDeptResponse.ProtoReflect.Descriptor instead.

func (*DeleteDeptResponse) ProtoMessage

func (*DeleteDeptResponse) ProtoMessage()

func (*DeleteDeptResponse) ProtoReflect

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

func (*DeleteDeptResponse) Reset

func (x *DeleteDeptResponse) Reset()

func (*DeleteDeptResponse) String

func (x *DeleteDeptResponse) String() string

func (*DeleteDeptResponse) Validate

func (m *DeleteDeptResponse) Validate() error

Validate checks the field values on DeleteDeptResponse 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 (*DeleteDeptResponse) ValidateAll

func (m *DeleteDeptResponse) ValidateAll() error

ValidateAll checks the field values on DeleteDeptResponse 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 DeleteDeptResponseMultiError, or nil if none found.

type DeleteDeptResponseMultiError

type DeleteDeptResponseMultiError []error

DeleteDeptResponseMultiError is an error wrapping multiple validation errors returned by DeleteDeptResponse.ValidateAll() if the designated constraints aren't met.

func (DeleteDeptResponseMultiError) AllErrors

func (m DeleteDeptResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDeptResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteDeptResponseValidationError

type DeleteDeptResponseValidationError struct {
	// contains filtered or unexported fields
}

DeleteDeptResponseValidationError is the validation error returned by DeleteDeptResponse.Validate if the designated constraints aren't met.

func (DeleteDeptResponseValidationError) Cause

Cause function returns cause value.

func (DeleteDeptResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteDeptResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteDeptResponseValidationError) Field

Field function returns field value.

func (DeleteDeptResponseValidationError) Key

Key function returns key value.

func (DeleteDeptResponseValidationError) Reason

Reason function returns reason value.

type DeleteMenuRequest

type DeleteMenuRequest struct {
	Id         uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteMenuRequest) Descriptor deprecated

func (*DeleteMenuRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteMenuRequest.ProtoReflect.Descriptor instead.

func (*DeleteMenuRequest) GetId

func (x *DeleteMenuRequest) GetId() uint32

func (*DeleteMenuRequest) GetOperatorId

func (x *DeleteMenuRequest) GetOperatorId() uint32

func (*DeleteMenuRequest) ProtoMessage

func (*DeleteMenuRequest) ProtoMessage()

func (*DeleteMenuRequest) ProtoReflect

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

func (*DeleteMenuRequest) Reset

func (x *DeleteMenuRequest) Reset()

func (*DeleteMenuRequest) String

func (x *DeleteMenuRequest) String() string

func (*DeleteMenuRequest) Validate

func (m *DeleteMenuRequest) Validate() error

Validate checks the field values on DeleteMenuRequest 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 (*DeleteMenuRequest) ValidateAll

func (m *DeleteMenuRequest) ValidateAll() error

ValidateAll checks the field values on DeleteMenuRequest 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 DeleteMenuRequestMultiError, or nil if none found.

type DeleteMenuRequestMultiError

type DeleteMenuRequestMultiError []error

DeleteMenuRequestMultiError is an error wrapping multiple validation errors returned by DeleteMenuRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteMenuRequestMultiError) AllErrors

func (m DeleteMenuRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteMenuRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteMenuRequestValidationError

type DeleteMenuRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteMenuRequestValidationError is the validation error returned by DeleteMenuRequest.Validate if the designated constraints aren't met.

func (DeleteMenuRequestValidationError) Cause

Cause function returns cause value.

func (DeleteMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteMenuRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteMenuRequestValidationError) Field

Field function returns field value.

func (DeleteMenuRequestValidationError) Key

Key function returns key value.

func (DeleteMenuRequestValidationError) Reason

Reason function returns reason value.

type DeleteMenuResponse

type DeleteMenuResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteMenuResponse) Descriptor deprecated

func (*DeleteMenuResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteMenuResponse.ProtoReflect.Descriptor instead.

func (*DeleteMenuResponse) ProtoMessage

func (*DeleteMenuResponse) ProtoMessage()

func (*DeleteMenuResponse) ProtoReflect

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

func (*DeleteMenuResponse) Reset

func (x *DeleteMenuResponse) Reset()

func (*DeleteMenuResponse) String

func (x *DeleteMenuResponse) String() string

func (*DeleteMenuResponse) Validate

func (m *DeleteMenuResponse) Validate() error

Validate checks the field values on DeleteMenuResponse 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 (*DeleteMenuResponse) ValidateAll

func (m *DeleteMenuResponse) ValidateAll() error

ValidateAll checks the field values on DeleteMenuResponse 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 DeleteMenuResponseMultiError, or nil if none found.

type DeleteMenuResponseMultiError

type DeleteMenuResponseMultiError []error

DeleteMenuResponseMultiError is an error wrapping multiple validation errors returned by DeleteMenuResponse.ValidateAll() if the designated constraints aren't met.

func (DeleteMenuResponseMultiError) AllErrors

func (m DeleteMenuResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteMenuResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteMenuResponseValidationError

type DeleteMenuResponseValidationError struct {
	// contains filtered or unexported fields
}

DeleteMenuResponseValidationError is the validation error returned by DeleteMenuResponse.Validate if the designated constraints aren't met.

func (DeleteMenuResponseValidationError) Cause

Cause function returns cause value.

func (DeleteMenuResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteMenuResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteMenuResponseValidationError) Field

Field function returns field value.

func (DeleteMenuResponseValidationError) Key

Key function returns key value.

func (DeleteMenuResponseValidationError) Reason

Reason function returns reason value.

type DeletePostRequest

type DeletePostRequest struct {
	Id         uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePostRequest) Descriptor deprecated

func (*DeletePostRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeletePostRequest.ProtoReflect.Descriptor instead.

func (*DeletePostRequest) GetId

func (x *DeletePostRequest) GetId() uint32

func (*DeletePostRequest) GetOperatorId

func (x *DeletePostRequest) GetOperatorId() uint32

func (*DeletePostRequest) ProtoMessage

func (*DeletePostRequest) ProtoMessage()

func (*DeletePostRequest) ProtoReflect

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

func (*DeletePostRequest) Reset

func (x *DeletePostRequest) Reset()

func (*DeletePostRequest) String

func (x *DeletePostRequest) String() string

func (*DeletePostRequest) Validate

func (m *DeletePostRequest) Validate() error

Validate checks the field values on DeletePostRequest 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 (*DeletePostRequest) ValidateAll

func (m *DeletePostRequest) ValidateAll() error

ValidateAll checks the field values on DeletePostRequest 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 DeletePostRequestMultiError, or nil if none found.

type DeletePostRequestMultiError

type DeletePostRequestMultiError []error

DeletePostRequestMultiError is an error wrapping multiple validation errors returned by DeletePostRequest.ValidateAll() if the designated constraints aren't met.

func (DeletePostRequestMultiError) AllErrors

func (m DeletePostRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeletePostRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeletePostRequestValidationError

type DeletePostRequestValidationError struct {
	// contains filtered or unexported fields
}

DeletePostRequestValidationError is the validation error returned by DeletePostRequest.Validate if the designated constraints aren't met.

func (DeletePostRequestValidationError) Cause

Cause function returns cause value.

func (DeletePostRequestValidationError) Error

Error satisfies the builtin error interface

func (DeletePostRequestValidationError) ErrorName

ErrorName returns error name.

func (DeletePostRequestValidationError) Field

Field function returns field value.

func (DeletePostRequestValidationError) Key

Key function returns key value.

func (DeletePostRequestValidationError) Reason

Reason function returns reason value.

type DeletePostResponse

type DeletePostResponse struct {
	// contains filtered or unexported fields
}

func (*DeletePostResponse) Descriptor deprecated

func (*DeletePostResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeletePostResponse.ProtoReflect.Descriptor instead.

func (*DeletePostResponse) ProtoMessage

func (*DeletePostResponse) ProtoMessage()

func (*DeletePostResponse) ProtoReflect

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

func (*DeletePostResponse) Reset

func (x *DeletePostResponse) Reset()

func (*DeletePostResponse) String

func (x *DeletePostResponse) String() string

func (*DeletePostResponse) Validate

func (m *DeletePostResponse) Validate() error

Validate checks the field values on DeletePostResponse 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 (*DeletePostResponse) ValidateAll

func (m *DeletePostResponse) ValidateAll() error

ValidateAll checks the field values on DeletePostResponse 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 DeletePostResponseMultiError, or nil if none found.

type DeletePostResponseMultiError

type DeletePostResponseMultiError []error

DeletePostResponseMultiError is an error wrapping multiple validation errors returned by DeletePostResponse.ValidateAll() if the designated constraints aren't met.

func (DeletePostResponseMultiError) AllErrors

func (m DeletePostResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeletePostResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeletePostResponseValidationError

type DeletePostResponseValidationError struct {
	// contains filtered or unexported fields
}

DeletePostResponseValidationError is the validation error returned by DeletePostResponse.Validate if the designated constraints aren't met.

func (DeletePostResponseValidationError) Cause

Cause function returns cause value.

func (DeletePostResponseValidationError) Error

Error satisfies the builtin error interface

func (DeletePostResponseValidationError) ErrorName

ErrorName returns error name.

func (DeletePostResponseValidationError) Field

Field function returns field value.

func (DeletePostResponseValidationError) Key

Key function returns key value.

func (DeletePostResponseValidationError) Reason

Reason function returns reason value.

type DeleteRoleRequest

type DeleteRoleRequest struct {
	Id         uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRoleRequest) Descriptor deprecated

func (*DeleteRoleRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.

func (*DeleteRoleRequest) GetId

func (x *DeleteRoleRequest) GetId() uint32

func (*DeleteRoleRequest) GetOperatorId

func (x *DeleteRoleRequest) GetOperatorId() uint32

func (*DeleteRoleRequest) ProtoMessage

func (*DeleteRoleRequest) ProtoMessage()

func (*DeleteRoleRequest) ProtoReflect

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

func (*DeleteRoleRequest) Reset

func (x *DeleteRoleRequest) Reset()

func (*DeleteRoleRequest) String

func (x *DeleteRoleRequest) String() string

func (*DeleteRoleRequest) Validate

func (m *DeleteRoleRequest) Validate() error

Validate checks the field values on DeleteRoleRequest 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 (*DeleteRoleRequest) ValidateAll

func (m *DeleteRoleRequest) ValidateAll() error

ValidateAll checks the field values on DeleteRoleRequest 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 DeleteRoleRequestMultiError, or nil if none found.

type DeleteRoleRequestMultiError

type DeleteRoleRequestMultiError []error

DeleteRoleRequestMultiError is an error wrapping multiple validation errors returned by DeleteRoleRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteRoleRequestMultiError) AllErrors

func (m DeleteRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteRoleRequestValidationError

type DeleteRoleRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteRoleRequestValidationError is the validation error returned by DeleteRoleRequest.Validate if the designated constraints aren't met.

func (DeleteRoleRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteRoleRequestValidationError) Field

Field function returns field value.

func (DeleteRoleRequestValidationError) Key

Key function returns key value.

func (DeleteRoleRequestValidationError) Reason

Reason function returns reason value.

type DeleteRoleResponse

type DeleteRoleResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteRoleResponse) Descriptor deprecated

func (*DeleteRoleResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRoleResponse.ProtoReflect.Descriptor instead.

func (*DeleteRoleResponse) ProtoMessage

func (*DeleteRoleResponse) ProtoMessage()

func (*DeleteRoleResponse) ProtoReflect

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

func (*DeleteRoleResponse) Reset

func (x *DeleteRoleResponse) Reset()

func (*DeleteRoleResponse) String

func (x *DeleteRoleResponse) String() string

func (*DeleteRoleResponse) Validate

func (m *DeleteRoleResponse) Validate() error

Validate checks the field values on DeleteRoleResponse 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 (*DeleteRoleResponse) ValidateAll

func (m *DeleteRoleResponse) ValidateAll() error

ValidateAll checks the field values on DeleteRoleResponse 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 DeleteRoleResponseMultiError, or nil if none found.

type DeleteRoleResponseMultiError

type DeleteRoleResponseMultiError []error

DeleteRoleResponseMultiError is an error wrapping multiple validation errors returned by DeleteRoleResponse.ValidateAll() if the designated constraints aren't met.

func (DeleteRoleResponseMultiError) AllErrors

func (m DeleteRoleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRoleResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteRoleResponseValidationError

type DeleteRoleResponseValidationError struct {
	// contains filtered or unexported fields
}

DeleteRoleResponseValidationError is the validation error returned by DeleteRoleResponse.Validate if the designated constraints aren't met.

func (DeleteRoleResponseValidationError) Cause

Cause function returns cause value.

func (DeleteRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteRoleResponseValidationError) Field

Field function returns field value.

func (DeleteRoleResponseValidationError) Key

Key function returns key value.

func (DeleteRoleResponseValidationError) Reason

Reason function returns reason value.

type DeleteUserRequest

type DeleteUserRequest struct {
	Id         uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserRequest) Descriptor deprecated

func (*DeleteUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId

func (x *DeleteUserRequest) GetId() uint32

func (*DeleteUserRequest) GetOperatorId

func (x *DeleteUserRequest) GetOperatorId() uint32

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

func (*DeleteUserRequest) Validate

func (m *DeleteUserRequest) Validate() error

Validate checks the field values on DeleteUserRequest 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 (*DeleteUserRequest) ValidateAll

func (m *DeleteUserRequest) ValidateAll() error

ValidateAll checks the field values on DeleteUserRequest 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 DeleteUserRequestMultiError, or nil if none found.

type DeleteUserRequestMultiError

type DeleteUserRequestMultiError []error

DeleteUserRequestMultiError is an error wrapping multiple validation errors returned by DeleteUserRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteUserRequestMultiError) AllErrors

func (m DeleteUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteUserRequestValidationError

type DeleteUserRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteUserRequestValidationError is the validation error returned by DeleteUserRequest.Validate if the designated constraints aren't met.

func (DeleteUserRequestValidationError) Cause

Cause function returns cause value.

func (DeleteUserRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserRequestValidationError) Field

Field function returns field value.

func (DeleteUserRequestValidationError) Key

Key function returns key value.

func (DeleteUserRequestValidationError) Reason

Reason function returns reason value.

type DeleteUserResponse

type DeleteUserResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteUserResponse) Descriptor deprecated

func (*DeleteUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserResponse) ProtoMessage

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) ProtoReflect

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

func (*DeleteUserResponse) Reset

func (x *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String

func (x *DeleteUserResponse) String() string

func (*DeleteUserResponse) Validate

func (m *DeleteUserResponse) Validate() error

Validate checks the field values on DeleteUserResponse 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 (*DeleteUserResponse) ValidateAll

func (m *DeleteUserResponse) ValidateAll() error

ValidateAll checks the field values on DeleteUserResponse 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 DeleteUserResponseMultiError, or nil if none found.

type DeleteUserResponseMultiError

type DeleteUserResponseMultiError []error

DeleteUserResponseMultiError is an error wrapping multiple validation errors returned by DeleteUserResponse.ValidateAll() if the designated constraints aren't met.

func (DeleteUserResponseMultiError) AllErrors

func (m DeleteUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteUserResponseValidationError

type DeleteUserResponseValidationError struct {
	// contains filtered or unexported fields
}

DeleteUserResponseValidationError is the validation error returned by DeleteUserResponse.Validate if the designated constraints aren't met.

func (DeleteUserResponseValidationError) Cause

Cause function returns cause value.

func (DeleteUserResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserResponseValidationError) Field

Field function returns field value.

func (DeleteUserResponseValidationError) Key

Key function returns key value.

func (DeleteUserResponseValidationError) Reason

Reason function returns reason value.

type Dept

type Dept struct {
	CreatedAt *string `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	UpdatedAt *string `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	Id        uint32  `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	Name      *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Sort      *int32  `protobuf:"varint,5,opt,name=sort,proto3,oneof" json:"sort,omitempty"`
	State     *int32  `protobuf:"varint,6,opt,name=state,proto3,oneof" json:"state,omitempty"`
	Remark    *string `protobuf:"bytes,7,opt,name=remark,proto3,oneof" json:"remark,omitempty"`
	ParentId  *uint32 `protobuf:"varint,8,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"`
	LeaderId  *uint32 `protobuf:"varint,9,opt,name=leader_id,json=leaderId,proto3,oneof" json:"leader_id,omitempty"`
	// contains filtered or unexported fields
}

部门模块

func (*Dept) Descriptor deprecated

func (*Dept) Descriptor() ([]byte, []int)

Deprecated: Use Dept.ProtoReflect.Descriptor instead.

func (*Dept) GetCreatedAt

func (x *Dept) GetCreatedAt() string

func (*Dept) GetId

func (x *Dept) GetId() uint32

func (*Dept) GetLeaderId

func (x *Dept) GetLeaderId() uint32

func (*Dept) GetName

func (x *Dept) GetName() string

func (*Dept) GetParentId

func (x *Dept) GetParentId() uint32

func (*Dept) GetRemark

func (x *Dept) GetRemark() string

func (*Dept) GetSort

func (x *Dept) GetSort() int32

func (*Dept) GetState

func (x *Dept) GetState() int32

func (*Dept) GetUpdatedAt

func (x *Dept) GetUpdatedAt() string

func (*Dept) ProtoMessage

func (*Dept) ProtoMessage()

func (*Dept) ProtoReflect

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

func (*Dept) Reset

func (x *Dept) Reset()

func (*Dept) String

func (x *Dept) String() string

func (*Dept) Validate

func (m *Dept) Validate() error

Validate checks the field values on Dept 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 (*Dept) ValidateAll

func (m *Dept) ValidateAll() error

ValidateAll checks the field values on Dept 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 DeptMultiError, or nil if none found.

type DeptMultiError

type DeptMultiError []error

DeptMultiError is an error wrapping multiple validation errors returned by Dept.ValidateAll() if the designated constraints aren't met.

func (DeptMultiError) AllErrors

func (m DeptMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeptMultiError) Error

func (m DeptMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeptServiceClient

type DeptServiceClient interface {
	CreateDept(ctx context.Context, in *CreateDeptRequest, opts ...grpc.CallOption) (*CreateDeptResponse, error)
	UpdateDept(ctx context.Context, in *UpdateDeptRequest, opts ...grpc.CallOption) (*UpdateDeptResponse, error)
	DeleteDept(ctx context.Context, in *DeleteDeptRequest, opts ...grpc.CallOption) (*DeleteDeptResponse, error)
	GetDept(ctx context.Context, in *GetDeptRequest, opts ...grpc.CallOption) (*Dept, error)
	ListDept(ctx context.Context, in *pagination.PagingRequest, opts ...grpc.CallOption) (*ListDeptResponse, error)
}

DeptServiceClient is the client API for DeptService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type DeptServiceServer

type DeptServiceServer interface {
	CreateDept(context.Context, *CreateDeptRequest) (*CreateDeptResponse, error)
	UpdateDept(context.Context, *UpdateDeptRequest) (*UpdateDeptResponse, error)
	DeleteDept(context.Context, *DeleteDeptRequest) (*DeleteDeptResponse, error)
	GetDept(context.Context, *GetDeptRequest) (*Dept, error)
	ListDept(context.Context, *pagination.PagingRequest) (*ListDeptResponse, error)
	// contains filtered or unexported methods
}

DeptServiceServer is the server API for DeptService service. All implementations must embed UnimplementedDeptServiceServer for forward compatibility

type DeptValidationError

type DeptValidationError struct {
	// contains filtered or unexported fields
}

DeptValidationError is the validation error returned by Dept.Validate if the designated constraints aren't met.

func (DeptValidationError) Cause

func (e DeptValidationError) Cause() error

Cause function returns cause value.

func (DeptValidationError) Error

func (e DeptValidationError) Error() string

Error satisfies the builtin error interface

func (DeptValidationError) ErrorName

func (e DeptValidationError) ErrorName() string

ErrorName returns error name.

func (DeptValidationError) Field

func (e DeptValidationError) Field() string

Field function returns field value.

func (DeptValidationError) Key

func (e DeptValidationError) Key() bool

Key function returns key value.

func (DeptValidationError) Reason

func (e DeptValidationError) Reason() string

Reason function returns reason value.

type ErrorReason

type ErrorReason int32
const (
	ErrorReason_UNSPECIFIED    ErrorReason = 0
	ErrorReason_USER_NOT_FOUND ErrorReason = 11
)

func (ErrorReason) Descriptor

func (ErrorReason) Enum

func (x ErrorReason) Enum() *ErrorReason

func (ErrorReason) EnumDescriptor deprecated

func (ErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorReason.Descriptor instead.

func (ErrorReason) Number

func (x ErrorReason) Number() protoreflect.EnumNumber

func (ErrorReason) String

func (x ErrorReason) String() string

func (ErrorReason) Type

type GetDeptRequest

type GetDeptRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeptRequest) Descriptor deprecated

func (*GetDeptRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDeptRequest.ProtoReflect.Descriptor instead.

func (*GetDeptRequest) GetId

func (x *GetDeptRequest) GetId() uint32

func (*GetDeptRequest) ProtoMessage

func (*GetDeptRequest) ProtoMessage()

func (*GetDeptRequest) ProtoReflect

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

func (*GetDeptRequest) Reset

func (x *GetDeptRequest) Reset()

func (*GetDeptRequest) String

func (x *GetDeptRequest) String() string

func (*GetDeptRequest) Validate

func (m *GetDeptRequest) Validate() error

Validate checks the field values on GetDeptRequest 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 (*GetDeptRequest) ValidateAll

func (m *GetDeptRequest) ValidateAll() error

ValidateAll checks the field values on GetDeptRequest 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 GetDeptRequestMultiError, or nil if none found.

type GetDeptRequestMultiError

type GetDeptRequestMultiError []error

GetDeptRequestMultiError is an error wrapping multiple validation errors returned by GetDeptRequest.ValidateAll() if the designated constraints aren't met.

func (GetDeptRequestMultiError) AllErrors

func (m GetDeptRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDeptRequestMultiError) Error

func (m GetDeptRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetDeptRequestValidationError

type GetDeptRequestValidationError struct {
	// contains filtered or unexported fields
}

GetDeptRequestValidationError is the validation error returned by GetDeptRequest.Validate if the designated constraints aren't met.

func (GetDeptRequestValidationError) Cause

Cause function returns cause value.

func (GetDeptRequestValidationError) Error

Error satisfies the builtin error interface

func (GetDeptRequestValidationError) ErrorName

func (e GetDeptRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetDeptRequestValidationError) Field

Field function returns field value.

func (GetDeptRequestValidationError) Key

Key function returns key value.

func (GetDeptRequestValidationError) Reason

Reason function returns reason value.

type GetDeptResponse

type GetDeptResponse struct {
	// contains filtered or unexported fields
}

func (*GetDeptResponse) Descriptor deprecated

func (*GetDeptResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetDeptResponse.ProtoReflect.Descriptor instead.

func (*GetDeptResponse) ProtoMessage

func (*GetDeptResponse) ProtoMessage()

func (*GetDeptResponse) ProtoReflect

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

func (*GetDeptResponse) Reset

func (x *GetDeptResponse) Reset()

func (*GetDeptResponse) String

func (x *GetDeptResponse) String() string

func (*GetDeptResponse) Validate

func (m *GetDeptResponse) Validate() error

Validate checks the field values on GetDeptResponse 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 (*GetDeptResponse) ValidateAll

func (m *GetDeptResponse) ValidateAll() error

ValidateAll checks the field values on GetDeptResponse 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 GetDeptResponseMultiError, or nil if none found.

type GetDeptResponseMultiError

type GetDeptResponseMultiError []error

GetDeptResponseMultiError is an error wrapping multiple validation errors returned by GetDeptResponse.ValidateAll() if the designated constraints aren't met.

func (GetDeptResponseMultiError) AllErrors

func (m GetDeptResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDeptResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetDeptResponseValidationError

type GetDeptResponseValidationError struct {
	// contains filtered or unexported fields
}

GetDeptResponseValidationError is the validation error returned by GetDeptResponse.Validate if the designated constraints aren't met.

func (GetDeptResponseValidationError) Cause

Cause function returns cause value.

func (GetDeptResponseValidationError) Error

Error satisfies the builtin error interface

func (GetDeptResponseValidationError) ErrorName

func (e GetDeptResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetDeptResponseValidationError) Field

Field function returns field value.

func (GetDeptResponseValidationError) Key

Key function returns key value.

func (GetDeptResponseValidationError) Reason

Reason function returns reason value.

type GetMenuRequest

type GetMenuRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMenuRequest) Descriptor deprecated

func (*GetMenuRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMenuRequest.ProtoReflect.Descriptor instead.

func (*GetMenuRequest) GetId

func (x *GetMenuRequest) GetId() uint32

func (*GetMenuRequest) ProtoMessage

func (*GetMenuRequest) ProtoMessage()

func (*GetMenuRequest) ProtoReflect

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

func (*GetMenuRequest) Reset

func (x *GetMenuRequest) Reset()

func (*GetMenuRequest) String

func (x *GetMenuRequest) String() string

func (*GetMenuRequest) Validate

func (m *GetMenuRequest) Validate() error

Validate checks the field values on GetMenuRequest 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 (*GetMenuRequest) ValidateAll

func (m *GetMenuRequest) ValidateAll() error

ValidateAll checks the field values on GetMenuRequest 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 GetMenuRequestMultiError, or nil if none found.

type GetMenuRequestMultiError

type GetMenuRequestMultiError []error

GetMenuRequestMultiError is an error wrapping multiple validation errors returned by GetMenuRequest.ValidateAll() if the designated constraints aren't met.

func (GetMenuRequestMultiError) AllErrors

func (m GetMenuRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetMenuRequestMultiError) Error

func (m GetMenuRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetMenuRequestValidationError

type GetMenuRequestValidationError struct {
	// contains filtered or unexported fields
}

GetMenuRequestValidationError is the validation error returned by GetMenuRequest.Validate if the designated constraints aren't met.

func (GetMenuRequestValidationError) Cause

Cause function returns cause value.

func (GetMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (GetMenuRequestValidationError) ErrorName

func (e GetMenuRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetMenuRequestValidationError) Field

Field function returns field value.

func (GetMenuRequestValidationError) Key

Key function returns key value.

func (GetMenuRequestValidationError) Reason

Reason function returns reason value.

type GetMenuResponse

type GetMenuResponse struct {
	// contains filtered or unexported fields
}

func (*GetMenuResponse) Descriptor deprecated

func (*GetMenuResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetMenuResponse.ProtoReflect.Descriptor instead.

func (*GetMenuResponse) ProtoMessage

func (*GetMenuResponse) ProtoMessage()

func (*GetMenuResponse) ProtoReflect

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

func (*GetMenuResponse) Reset

func (x *GetMenuResponse) Reset()

func (*GetMenuResponse) String

func (x *GetMenuResponse) String() string

func (*GetMenuResponse) Validate

func (m *GetMenuResponse) Validate() error

Validate checks the field values on GetMenuResponse 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 (*GetMenuResponse) ValidateAll

func (m *GetMenuResponse) ValidateAll() error

ValidateAll checks the field values on GetMenuResponse 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 GetMenuResponseMultiError, or nil if none found.

type GetMenuResponseMultiError

type GetMenuResponseMultiError []error

GetMenuResponseMultiError is an error wrapping multiple validation errors returned by GetMenuResponse.ValidateAll() if the designated constraints aren't met.

func (GetMenuResponseMultiError) AllErrors

func (m GetMenuResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetMenuResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetMenuResponseValidationError

type GetMenuResponseValidationError struct {
	// contains filtered or unexported fields
}

GetMenuResponseValidationError is the validation error returned by GetMenuResponse.Validate if the designated constraints aren't met.

func (GetMenuResponseValidationError) Cause

Cause function returns cause value.

func (GetMenuResponseValidationError) Error

Error satisfies the builtin error interface

func (GetMenuResponseValidationError) ErrorName

func (e GetMenuResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetMenuResponseValidationError) Field

Field function returns field value.

func (GetMenuResponseValidationError) Key

Key function returns key value.

func (GetMenuResponseValidationError) Reason

Reason function returns reason value.

type GetPostRequest

type GetPostRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPostRequest) Descriptor deprecated

func (*GetPostRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetPostRequest.ProtoReflect.Descriptor instead.

func (*GetPostRequest) GetId

func (x *GetPostRequest) GetId() uint32

func (*GetPostRequest) ProtoMessage

func (*GetPostRequest) ProtoMessage()

func (*GetPostRequest) ProtoReflect

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

func (*GetPostRequest) Reset

func (x *GetPostRequest) Reset()

func (*GetPostRequest) String

func (x *GetPostRequest) String() string

func (*GetPostRequest) Validate

func (m *GetPostRequest) Validate() error

Validate checks the field values on GetPostRequest 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 (*GetPostRequest) ValidateAll

func (m *GetPostRequest) ValidateAll() error

ValidateAll checks the field values on GetPostRequest 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 GetPostRequestMultiError, or nil if none found.

type GetPostRequestMultiError

type GetPostRequestMultiError []error

GetPostRequestMultiError is an error wrapping multiple validation errors returned by GetPostRequest.ValidateAll() if the designated constraints aren't met.

func (GetPostRequestMultiError) AllErrors

func (m GetPostRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetPostRequestMultiError) Error

func (m GetPostRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetPostRequestValidationError

type GetPostRequestValidationError struct {
	// contains filtered or unexported fields
}

GetPostRequestValidationError is the validation error returned by GetPostRequest.Validate if the designated constraints aren't met.

func (GetPostRequestValidationError) Cause

Cause function returns cause value.

func (GetPostRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPostRequestValidationError) ErrorName

func (e GetPostRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetPostRequestValidationError) Field

Field function returns field value.

func (GetPostRequestValidationError) Key

Key function returns key value.

func (GetPostRequestValidationError) Reason

Reason function returns reason value.

type GetPostResponse

type GetPostResponse struct {
	// contains filtered or unexported fields
}

func (*GetPostResponse) Descriptor deprecated

func (*GetPostResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetPostResponse.ProtoReflect.Descriptor instead.

func (*GetPostResponse) ProtoMessage

func (*GetPostResponse) ProtoMessage()

func (*GetPostResponse) ProtoReflect

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

func (*GetPostResponse) Reset

func (x *GetPostResponse) Reset()

func (*GetPostResponse) String

func (x *GetPostResponse) String() string

func (*GetPostResponse) Validate

func (m *GetPostResponse) Validate() error

Validate checks the field values on GetPostResponse 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 (*GetPostResponse) ValidateAll

func (m *GetPostResponse) ValidateAll() error

ValidateAll checks the field values on GetPostResponse 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 GetPostResponseMultiError, or nil if none found.

type GetPostResponseMultiError

type GetPostResponseMultiError []error

GetPostResponseMultiError is an error wrapping multiple validation errors returned by GetPostResponse.ValidateAll() if the designated constraints aren't met.

func (GetPostResponseMultiError) AllErrors

func (m GetPostResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetPostResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetPostResponseValidationError

type GetPostResponseValidationError struct {
	// contains filtered or unexported fields
}

GetPostResponseValidationError is the validation error returned by GetPostResponse.Validate if the designated constraints aren't met.

func (GetPostResponseValidationError) Cause

Cause function returns cause value.

func (GetPostResponseValidationError) Error

Error satisfies the builtin error interface

func (GetPostResponseValidationError) ErrorName

func (e GetPostResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetPostResponseValidationError) Field

Field function returns field value.

func (GetPostResponseValidationError) Key

Key function returns key value.

func (GetPostResponseValidationError) Reason

Reason function returns reason value.

type GetRoleRequest

type GetRoleRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoleRequest) Descriptor deprecated

func (*GetRoleRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.

func (*GetRoleRequest) GetId

func (x *GetRoleRequest) GetId() uint32

func (*GetRoleRequest) ProtoMessage

func (*GetRoleRequest) ProtoMessage()

func (*GetRoleRequest) ProtoReflect

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

func (*GetRoleRequest) Reset

func (x *GetRoleRequest) Reset()

func (*GetRoleRequest) String

func (x *GetRoleRequest) String() string

func (*GetRoleRequest) Validate

func (m *GetRoleRequest) Validate() error

Validate checks the field values on GetRoleRequest 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 (*GetRoleRequest) ValidateAll

func (m *GetRoleRequest) ValidateAll() error

ValidateAll checks the field values on GetRoleRequest 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 GetRoleRequestMultiError, or nil if none found.

type GetRoleRequestMultiError

type GetRoleRequestMultiError []error

GetRoleRequestMultiError is an error wrapping multiple validation errors returned by GetRoleRequest.ValidateAll() if the designated constraints aren't met.

func (GetRoleRequestMultiError) AllErrors

func (m GetRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleRequestMultiError) Error

func (m GetRoleRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetRoleRequestValidationError

type GetRoleRequestValidationError struct {
	// contains filtered or unexported fields
}

GetRoleRequestValidationError is the validation error returned by GetRoleRequest.Validate if the designated constraints aren't met.

func (GetRoleRequestValidationError) Cause

Cause function returns cause value.

func (GetRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRoleRequestValidationError) ErrorName

func (e GetRoleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRoleRequestValidationError) Field

Field function returns field value.

func (GetRoleRequestValidationError) Key

Key function returns key value.

func (GetRoleRequestValidationError) Reason

Reason function returns reason value.

type GetRoleResponse

type GetRoleResponse struct {
	// contains filtered or unexported fields
}

func (*GetRoleResponse) Descriptor deprecated

func (*GetRoleResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetRoleResponse.ProtoReflect.Descriptor instead.

func (*GetRoleResponse) ProtoMessage

func (*GetRoleResponse) ProtoMessage()

func (*GetRoleResponse) ProtoReflect

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

func (*GetRoleResponse) Reset

func (x *GetRoleResponse) Reset()

func (*GetRoleResponse) String

func (x *GetRoleResponse) String() string

func (*GetRoleResponse) Validate

func (m *GetRoleResponse) Validate() error

Validate checks the field values on GetRoleResponse 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 (*GetRoleResponse) ValidateAll

func (m *GetRoleResponse) ValidateAll() error

ValidateAll checks the field values on GetRoleResponse 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 GetRoleResponseMultiError, or nil if none found.

type GetRoleResponseMultiError

type GetRoleResponseMultiError []error

GetRoleResponseMultiError is an error wrapping multiple validation errors returned by GetRoleResponse.ValidateAll() if the designated constraints aren't met.

func (GetRoleResponseMultiError) AllErrors

func (m GetRoleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetRoleResponseValidationError

type GetRoleResponseValidationError struct {
	// contains filtered or unexported fields
}

GetRoleResponseValidationError is the validation error returned by GetRoleResponse.Validate if the designated constraints aren't met.

func (GetRoleResponseValidationError) Cause

Cause function returns cause value.

func (GetRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (GetRoleResponseValidationError) ErrorName

func (e GetRoleResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetRoleResponseValidationError) Field

Field function returns field value.

func (GetRoleResponseValidationError) Key

Key function returns key value.

func (GetRoleResponseValidationError) Reason

Reason function returns reason value.

type GetUserByNameRequest

type GetUserByNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserByNameRequest) Descriptor deprecated

func (*GetUserByNameRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserByNameRequest.ProtoReflect.Descriptor instead.

func (*GetUserByNameRequest) GetName

func (x *GetUserByNameRequest) GetName() string

func (*GetUserByNameRequest) ProtoMessage

func (*GetUserByNameRequest) ProtoMessage()

func (*GetUserByNameRequest) ProtoReflect

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

func (*GetUserByNameRequest) Reset

func (x *GetUserByNameRequest) Reset()

func (*GetUserByNameRequest) String

func (x *GetUserByNameRequest) String() string

func (*GetUserByNameRequest) Validate

func (m *GetUserByNameRequest) Validate() error

Validate checks the field values on GetUserByNameRequest 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 (*GetUserByNameRequest) ValidateAll

func (m *GetUserByNameRequest) ValidateAll() error

ValidateAll checks the field values on GetUserByNameRequest 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 GetUserByNameRequestMultiError, or nil if none found.

type GetUserByNameRequestMultiError

type GetUserByNameRequestMultiError []error

GetUserByNameRequestMultiError is an error wrapping multiple validation errors returned by GetUserByNameRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserByNameRequestMultiError) AllErrors

func (m GetUserByNameRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserByNameRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserByNameRequestValidationError

type GetUserByNameRequestValidationError struct {
	// contains filtered or unexported fields
}

GetUserByNameRequestValidationError is the validation error returned by GetUserByNameRequest.Validate if the designated constraints aren't met.

func (GetUserByNameRequestValidationError) Cause

Cause function returns cause value.

func (GetUserByNameRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserByNameRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUserByNameRequestValidationError) Field

Field function returns field value.

func (GetUserByNameRequestValidationError) Key

Key function returns key value.

func (GetUserByNameRequestValidationError) Reason

Reason function returns reason value.

type GetUserRequest

type GetUserRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

func (*GetUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() uint32

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

func (*GetUserRequest) Validate

func (m *GetUserRequest) Validate() error

Validate checks the field values on GetUserRequest 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 (*GetUserRequest) ValidateAll

func (m *GetUserRequest) ValidateAll() error

ValidateAll checks the field values on GetUserRequest 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 GetUserRequestMultiError, or nil if none found.

type GetUserRequestMultiError

type GetUserRequestMultiError []error

GetUserRequestMultiError is an error wrapping multiple validation errors returned by GetUserRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserRequestMultiError) AllErrors

func (m GetUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserRequestMultiError) Error

func (m GetUserRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetUserRequestValidationError

type GetUserRequestValidationError struct {
	// contains filtered or unexported fields
}

GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.

func (GetUserRequestValidationError) Cause

Cause function returns cause value.

func (GetUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRequestValidationError) ErrorName

func (e GetUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserRequestValidationError) Field

Field function returns field value.

func (GetUserRequestValidationError) Key

Key function returns key value.

func (GetUserRequestValidationError) Reason

Reason function returns reason value.

type GetUserResponse

type GetUserResponse struct {
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

func (*GetUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

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

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

func (*GetUserResponse) Validate

func (m *GetUserResponse) Validate() error

Validate checks the field values on GetUserResponse 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 (*GetUserResponse) ValidateAll

func (m *GetUserResponse) ValidateAll() error

ValidateAll checks the field values on GetUserResponse 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 GetUserResponseMultiError, or nil if none found.

type GetUserResponseMultiError

type GetUserResponseMultiError []error

GetUserResponseMultiError is an error wrapping multiple validation errors returned by GetUserResponse.ValidateAll() if the designated constraints aren't met.

func (GetUserResponseMultiError) AllErrors

func (m GetUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserResponseValidationError

type GetUserResponseValidationError struct {
	// contains filtered or unexported fields
}

GetUserResponseValidationError is the validation error returned by GetUserResponse.Validate if the designated constraints aren't met.

func (GetUserResponseValidationError) Cause

Cause function returns cause value.

func (GetUserResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUserResponseValidationError) ErrorName

func (e GetUserResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserResponseValidationError) Field

Field function returns field value.

func (GetUserResponseValidationError) Key

Key function returns key value.

func (GetUserResponseValidationError) Reason

Reason function returns reason value.

type IsAuthorizedRequest

type IsAuthorizedRequest struct {
	Subject  string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Action   string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	Resource string `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
	Project  string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

鉴权 - 请求

func (*IsAuthorizedRequest) Descriptor deprecated

func (*IsAuthorizedRequest) Descriptor() ([]byte, []int)

Deprecated: Use IsAuthorizedRequest.ProtoReflect.Descriptor instead.

func (*IsAuthorizedRequest) GetAction

func (x *IsAuthorizedRequest) GetAction() string

func (*IsAuthorizedRequest) GetProject

func (x *IsAuthorizedRequest) GetProject() string

func (*IsAuthorizedRequest) GetResource

func (x *IsAuthorizedRequest) GetResource() string

func (*IsAuthorizedRequest) GetSubject

func (x *IsAuthorizedRequest) GetSubject() string

func (*IsAuthorizedRequest) ProtoMessage

func (*IsAuthorizedRequest) ProtoMessage()

func (*IsAuthorizedRequest) ProtoReflect

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

func (*IsAuthorizedRequest) Reset

func (x *IsAuthorizedRequest) Reset()

func (*IsAuthorizedRequest) String

func (x *IsAuthorizedRequest) String() string

func (*IsAuthorizedRequest) Validate

func (m *IsAuthorizedRequest) Validate() error

Validate checks the field values on IsAuthorizedRequest 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 (*IsAuthorizedRequest) ValidateAll

func (m *IsAuthorizedRequest) ValidateAll() error

ValidateAll checks the field values on IsAuthorizedRequest 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 IsAuthorizedRequestMultiError, or nil if none found.

type IsAuthorizedRequestMultiError

type IsAuthorizedRequestMultiError []error

IsAuthorizedRequestMultiError is an error wrapping multiple validation errors returned by IsAuthorizedRequest.ValidateAll() if the designated constraints aren't met.

func (IsAuthorizedRequestMultiError) AllErrors

func (m IsAuthorizedRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IsAuthorizedRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type IsAuthorizedRequestValidationError

type IsAuthorizedRequestValidationError struct {
	// contains filtered or unexported fields
}

IsAuthorizedRequestValidationError is the validation error returned by IsAuthorizedRequest.Validate if the designated constraints aren't met.

func (IsAuthorizedRequestValidationError) Cause

Cause function returns cause value.

func (IsAuthorizedRequestValidationError) Error

Error satisfies the builtin error interface

func (IsAuthorizedRequestValidationError) ErrorName

ErrorName returns error name.

func (IsAuthorizedRequestValidationError) Field

Field function returns field value.

func (IsAuthorizedRequestValidationError) Key

Key function returns key value.

func (IsAuthorizedRequestValidationError) Reason

Reason function returns reason value.

type IsAuthorizedResponse

type IsAuthorizedResponse struct {
	// contains filtered or unexported fields
}

鉴权 - 回应

func (*IsAuthorizedResponse) Descriptor deprecated

func (*IsAuthorizedResponse) Descriptor() ([]byte, []int)

Deprecated: Use IsAuthorizedResponse.ProtoReflect.Descriptor instead.

func (*IsAuthorizedResponse) ProtoMessage

func (*IsAuthorizedResponse) ProtoMessage()

func (*IsAuthorizedResponse) ProtoReflect

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

func (*IsAuthorizedResponse) Reset

func (x *IsAuthorizedResponse) Reset()

func (*IsAuthorizedResponse) String

func (x *IsAuthorizedResponse) String() string

func (*IsAuthorizedResponse) Validate

func (m *IsAuthorizedResponse) Validate() error

Validate checks the field values on IsAuthorizedResponse 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 (*IsAuthorizedResponse) ValidateAll

func (m *IsAuthorizedResponse) ValidateAll() error

ValidateAll checks the field values on IsAuthorizedResponse 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 IsAuthorizedResponseMultiError, or nil if none found.

type IsAuthorizedResponseMultiError

type IsAuthorizedResponseMultiError []error

IsAuthorizedResponseMultiError is an error wrapping multiple validation errors returned by IsAuthorizedResponse.ValidateAll() if the designated constraints aren't met.

func (IsAuthorizedResponseMultiError) AllErrors

func (m IsAuthorizedResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IsAuthorizedResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type IsAuthorizedResponseValidationError

type IsAuthorizedResponseValidationError struct {
	// contains filtered or unexported fields
}

IsAuthorizedResponseValidationError is the validation error returned by IsAuthorizedResponse.Validate if the designated constraints aren't met.

func (IsAuthorizedResponseValidationError) Cause

Cause function returns cause value.

func (IsAuthorizedResponseValidationError) Error

Error satisfies the builtin error interface

func (IsAuthorizedResponseValidationError) ErrorName

ErrorName returns error name.

func (IsAuthorizedResponseValidationError) Field

Field function returns field value.

func (IsAuthorizedResponseValidationError) Key

Key function returns key value.

func (IsAuthorizedResponseValidationError) Reason

Reason function returns reason value.

type ListDeptRequest

type ListDeptRequest struct {
	// contains filtered or unexported fields
}

func (*ListDeptRequest) Descriptor deprecated

func (*ListDeptRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListDeptRequest.ProtoReflect.Descriptor instead.

func (*ListDeptRequest) ProtoMessage

func (*ListDeptRequest) ProtoMessage()

func (*ListDeptRequest) ProtoReflect

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

func (*ListDeptRequest) Reset

func (x *ListDeptRequest) Reset()

func (*ListDeptRequest) String

func (x *ListDeptRequest) String() string

func (*ListDeptRequest) Validate

func (m *ListDeptRequest) Validate() error

Validate checks the field values on ListDeptRequest 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 (*ListDeptRequest) ValidateAll

func (m *ListDeptRequest) ValidateAll() error

ValidateAll checks the field values on ListDeptRequest 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 ListDeptRequestMultiError, or nil if none found.

type ListDeptRequestMultiError

type ListDeptRequestMultiError []error

ListDeptRequestMultiError is an error wrapping multiple validation errors returned by ListDeptRequest.ValidateAll() if the designated constraints aren't met.

func (ListDeptRequestMultiError) AllErrors

func (m ListDeptRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDeptRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListDeptRequestValidationError

type ListDeptRequestValidationError struct {
	// contains filtered or unexported fields
}

ListDeptRequestValidationError is the validation error returned by ListDeptRequest.Validate if the designated constraints aren't met.

func (ListDeptRequestValidationError) Cause

Cause function returns cause value.

func (ListDeptRequestValidationError) Error

Error satisfies the builtin error interface

func (ListDeptRequestValidationError) ErrorName

func (e ListDeptRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListDeptRequestValidationError) Field

Field function returns field value.

func (ListDeptRequestValidationError) Key

Key function returns key value.

func (ListDeptRequestValidationError) Reason

Reason function returns reason value.

type ListDeptResponse

type ListDeptResponse struct {
	Items []*Dept `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	Total int32   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDeptResponse) Descriptor deprecated

func (*ListDeptResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListDeptResponse.ProtoReflect.Descriptor instead.

func (*ListDeptResponse) GetItems

func (x *ListDeptResponse) GetItems() []*Dept

func (*ListDeptResponse) GetTotal

func (x *ListDeptResponse) GetTotal() int32

func (*ListDeptResponse) ProtoMessage

func (*ListDeptResponse) ProtoMessage()

func (*ListDeptResponse) ProtoReflect

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

func (*ListDeptResponse) Reset

func (x *ListDeptResponse) Reset()

func (*ListDeptResponse) String

func (x *ListDeptResponse) String() string

func (*ListDeptResponse) Validate

func (m *ListDeptResponse) Validate() error

Validate checks the field values on ListDeptResponse 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 (*ListDeptResponse) ValidateAll

func (m *ListDeptResponse) ValidateAll() error

ValidateAll checks the field values on ListDeptResponse 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 ListDeptResponseMultiError, or nil if none found.

type ListDeptResponseMultiError

type ListDeptResponseMultiError []error

ListDeptResponseMultiError is an error wrapping multiple validation errors returned by ListDeptResponse.ValidateAll() if the designated constraints aren't met.

func (ListDeptResponseMultiError) AllErrors

func (m ListDeptResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDeptResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListDeptResponseValidationError

type ListDeptResponseValidationError struct {
	// contains filtered or unexported fields
}

ListDeptResponseValidationError is the validation error returned by ListDeptResponse.Validate if the designated constraints aren't met.

func (ListDeptResponseValidationError) Cause

Cause function returns cause value.

func (ListDeptResponseValidationError) Error

Error satisfies the builtin error interface

func (ListDeptResponseValidationError) ErrorName

ErrorName returns error name.

func (ListDeptResponseValidationError) Field

Field function returns field value.

func (ListDeptResponseValidationError) Key

Key function returns key value.

func (ListDeptResponseValidationError) Reason

Reason function returns reason value.

type ListMenuRequest

type ListMenuRequest struct {
	// contains filtered or unexported fields
}

func (*ListMenuRequest) Descriptor deprecated

func (*ListMenuRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListMenuRequest.ProtoReflect.Descriptor instead.

func (*ListMenuRequest) ProtoMessage

func (*ListMenuRequest) ProtoMessage()

func (*ListMenuRequest) ProtoReflect

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

func (*ListMenuRequest) Reset

func (x *ListMenuRequest) Reset()

func (*ListMenuRequest) String

func (x *ListMenuRequest) String() string

func (*ListMenuRequest) Validate

func (m *ListMenuRequest) Validate() error

Validate checks the field values on ListMenuRequest 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 (*ListMenuRequest) ValidateAll

func (m *ListMenuRequest) ValidateAll() error

ValidateAll checks the field values on ListMenuRequest 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 ListMenuRequestMultiError, or nil if none found.

type ListMenuRequestMultiError

type ListMenuRequestMultiError []error

ListMenuRequestMultiError is an error wrapping multiple validation errors returned by ListMenuRequest.ValidateAll() if the designated constraints aren't met.

func (ListMenuRequestMultiError) AllErrors

func (m ListMenuRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListMenuRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListMenuRequestValidationError

type ListMenuRequestValidationError struct {
	// contains filtered or unexported fields
}

ListMenuRequestValidationError is the validation error returned by ListMenuRequest.Validate if the designated constraints aren't met.

func (ListMenuRequestValidationError) Cause

Cause function returns cause value.

func (ListMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (ListMenuRequestValidationError) ErrorName

func (e ListMenuRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListMenuRequestValidationError) Field

Field function returns field value.

func (ListMenuRequestValidationError) Key

Key function returns key value.

func (ListMenuRequestValidationError) Reason

Reason function returns reason value.

type ListMenuResponse

type ListMenuResponse struct {
	Items []*Menu `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	Total int32   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMenuResponse) Descriptor deprecated

func (*ListMenuResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListMenuResponse.ProtoReflect.Descriptor instead.

func (*ListMenuResponse) GetItems

func (x *ListMenuResponse) GetItems() []*Menu

func (*ListMenuResponse) GetTotal

func (x *ListMenuResponse) GetTotal() int32

func (*ListMenuResponse) ProtoMessage

func (*ListMenuResponse) ProtoMessage()

func (*ListMenuResponse) ProtoReflect

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

func (*ListMenuResponse) Reset

func (x *ListMenuResponse) Reset()

func (*ListMenuResponse) String

func (x *ListMenuResponse) String() string

func (*ListMenuResponse) Validate

func (m *ListMenuResponse) Validate() error

Validate checks the field values on ListMenuResponse 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 (*ListMenuResponse) ValidateAll

func (m *ListMenuResponse) ValidateAll() error

ValidateAll checks the field values on ListMenuResponse 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 ListMenuResponseMultiError, or nil if none found.

type ListMenuResponseMultiError

type ListMenuResponseMultiError []error

ListMenuResponseMultiError is an error wrapping multiple validation errors returned by ListMenuResponse.ValidateAll() if the designated constraints aren't met.

func (ListMenuResponseMultiError) AllErrors

func (m ListMenuResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListMenuResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListMenuResponseValidationError

type ListMenuResponseValidationError struct {
	// contains filtered or unexported fields
}

ListMenuResponseValidationError is the validation error returned by ListMenuResponse.Validate if the designated constraints aren't met.

func (ListMenuResponseValidationError) Cause

Cause function returns cause value.

func (ListMenuResponseValidationError) Error

Error satisfies the builtin error interface

func (ListMenuResponseValidationError) ErrorName

ErrorName returns error name.

func (ListMenuResponseValidationError) Field

Field function returns field value.

func (ListMenuResponseValidationError) Key

Key function returns key value.

func (ListMenuResponseValidationError) Reason

Reason function returns reason value.

type ListPostRequest

type ListPostRequest struct {
	// contains filtered or unexported fields
}

func (*ListPostRequest) Descriptor deprecated

func (*ListPostRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListPostRequest.ProtoReflect.Descriptor instead.

func (*ListPostRequest) ProtoMessage

func (*ListPostRequest) ProtoMessage()

func (*ListPostRequest) ProtoReflect

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

func (*ListPostRequest) Reset

func (x *ListPostRequest) Reset()

func (*ListPostRequest) String

func (x *ListPostRequest) String() string

func (*ListPostRequest) Validate

func (m *ListPostRequest) Validate() error

Validate checks the field values on ListPostRequest 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 (*ListPostRequest) ValidateAll

func (m *ListPostRequest) ValidateAll() error

ValidateAll checks the field values on ListPostRequest 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 ListPostRequestMultiError, or nil if none found.

type ListPostRequestMultiError

type ListPostRequestMultiError []error

ListPostRequestMultiError is an error wrapping multiple validation errors returned by ListPostRequest.ValidateAll() if the designated constraints aren't met.

func (ListPostRequestMultiError) AllErrors

func (m ListPostRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListPostRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListPostRequestValidationError

type ListPostRequestValidationError struct {
	// contains filtered or unexported fields
}

ListPostRequestValidationError is the validation error returned by ListPostRequest.Validate if the designated constraints aren't met.

func (ListPostRequestValidationError) Cause

Cause function returns cause value.

func (ListPostRequestValidationError) Error

Error satisfies the builtin error interface

func (ListPostRequestValidationError) ErrorName

func (e ListPostRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListPostRequestValidationError) Field

Field function returns field value.

func (ListPostRequestValidationError) Key

Key function returns key value.

func (ListPostRequestValidationError) Reason

Reason function returns reason value.

type ListPostResponse

type ListPostResponse struct {
	Items []*Post `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	Total int32   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPostResponse) Descriptor deprecated

func (*ListPostResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListPostResponse.ProtoReflect.Descriptor instead.

func (*ListPostResponse) GetItems

func (x *ListPostResponse) GetItems() []*Post

func (*ListPostResponse) GetTotal

func (x *ListPostResponse) GetTotal() int32

func (*ListPostResponse) ProtoMessage

func (*ListPostResponse) ProtoMessage()

func (*ListPostResponse) ProtoReflect

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

func (*ListPostResponse) Reset

func (x *ListPostResponse) Reset()

func (*ListPostResponse) String

func (x *ListPostResponse) String() string

func (*ListPostResponse) Validate

func (m *ListPostResponse) Validate() error

Validate checks the field values on ListPostResponse 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 (*ListPostResponse) ValidateAll

func (m *ListPostResponse) ValidateAll() error

ValidateAll checks the field values on ListPostResponse 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 ListPostResponseMultiError, or nil if none found.

type ListPostResponseMultiError

type ListPostResponseMultiError []error

ListPostResponseMultiError is an error wrapping multiple validation errors returned by ListPostResponse.ValidateAll() if the designated constraints aren't met.

func (ListPostResponseMultiError) AllErrors

func (m ListPostResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListPostResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListPostResponseValidationError

type ListPostResponseValidationError struct {
	// contains filtered or unexported fields
}

ListPostResponseValidationError is the validation error returned by ListPostResponse.Validate if the designated constraints aren't met.

func (ListPostResponseValidationError) Cause

Cause function returns cause value.

func (ListPostResponseValidationError) Error

Error satisfies the builtin error interface

func (ListPostResponseValidationError) ErrorName

ErrorName returns error name.

func (ListPostResponseValidationError) Field

Field function returns field value.

func (ListPostResponseValidationError) Key

Key function returns key value.

func (ListPostResponseValidationError) Reason

Reason function returns reason value.

type ListRoleRequest

type ListRoleRequest struct {
	// contains filtered or unexported fields
}

func (*ListRoleRequest) Descriptor deprecated

func (*ListRoleRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRoleRequest.ProtoReflect.Descriptor instead.

func (*ListRoleRequest) ProtoMessage

func (*ListRoleRequest) ProtoMessage()

func (*ListRoleRequest) ProtoReflect

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

func (*ListRoleRequest) Reset

func (x *ListRoleRequest) Reset()

func (*ListRoleRequest) String

func (x *ListRoleRequest) String() string

func (*ListRoleRequest) Validate

func (m *ListRoleRequest) Validate() error

Validate checks the field values on ListRoleRequest 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 (*ListRoleRequest) ValidateAll

func (m *ListRoleRequest) ValidateAll() error

ValidateAll checks the field values on ListRoleRequest 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 ListRoleRequestMultiError, or nil if none found.

type ListRoleRequestMultiError

type ListRoleRequestMultiError []error

ListRoleRequestMultiError is an error wrapping multiple validation errors returned by ListRoleRequest.ValidateAll() if the designated constraints aren't met.

func (ListRoleRequestMultiError) AllErrors

func (m ListRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListRoleRequestValidationError

type ListRoleRequestValidationError struct {
	// contains filtered or unexported fields
}

ListRoleRequestValidationError is the validation error returned by ListRoleRequest.Validate if the designated constraints aren't met.

func (ListRoleRequestValidationError) Cause

Cause function returns cause value.

func (ListRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRoleRequestValidationError) ErrorName

func (e ListRoleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRoleRequestValidationError) Field

Field function returns field value.

func (ListRoleRequestValidationError) Key

Key function returns key value.

func (ListRoleRequestValidationError) Reason

Reason function returns reason value.

type ListRoleResponse

type ListRoleResponse struct {
	Items []*Role `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	Total int32   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoleResponse) Descriptor deprecated

func (*ListRoleResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListRoleResponse.ProtoReflect.Descriptor instead.

func (*ListRoleResponse) GetItems

func (x *ListRoleResponse) GetItems() []*Role

func (*ListRoleResponse) GetTotal

func (x *ListRoleResponse) GetTotal() int32

func (*ListRoleResponse) ProtoMessage

func (*ListRoleResponse) ProtoMessage()

func (*ListRoleResponse) ProtoReflect

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

func (*ListRoleResponse) Reset

func (x *ListRoleResponse) Reset()

func (*ListRoleResponse) String

func (x *ListRoleResponse) String() string

func (*ListRoleResponse) Validate

func (m *ListRoleResponse) Validate() error

Validate checks the field values on ListRoleResponse 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 (*ListRoleResponse) ValidateAll

func (m *ListRoleResponse) ValidateAll() error

ValidateAll checks the field values on ListRoleResponse 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 ListRoleResponseMultiError, or nil if none found.

type ListRoleResponseMultiError

type ListRoleResponseMultiError []error

ListRoleResponseMultiError is an error wrapping multiple validation errors returned by ListRoleResponse.ValidateAll() if the designated constraints aren't met.

func (ListRoleResponseMultiError) AllErrors

func (m ListRoleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRoleResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListRoleResponseValidationError

type ListRoleResponseValidationError struct {
	// contains filtered or unexported fields
}

ListRoleResponseValidationError is the validation error returned by ListRoleResponse.Validate if the designated constraints aren't met.

func (ListRoleResponseValidationError) Cause

Cause function returns cause value.

func (ListRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (ListRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (ListRoleResponseValidationError) Field

Field function returns field value.

func (ListRoleResponseValidationError) Key

Key function returns key value.

func (ListRoleResponseValidationError) Reason

Reason function returns reason value.

type ListUserRequest

type ListUserRequest struct {

	// 当前页码
	Page *int32 `protobuf:"varint,1,opt,name=page,proto3,oneof" json:"page,omitempty"`
	// 每页的行数
	PageSize *int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"`
	// 与过滤参数
	Query *User `protobuf:"bytes,3,opt,name=query,proto3,oneof" json:"query,omitempty"`
	// 或过滤参数
	OrQuery *User `protobuf:"bytes,4,opt,name=or_query,json=orQuery,proto3,oneof" json:"or_query,omitempty"`
	// 排序条件
	OrderBy []string `protobuf:"bytes,5,rep,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// 是否不分页
	NoPaging *bool `protobuf:"varint,6,opt,name=no_paging,json=noPaging,proto3,oneof" json:"no_paging,omitempty"`
	// 字段掩码
	FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserRequest) Descriptor deprecated

func (*ListUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.

func (*ListUserRequest) GetFieldMask

func (x *ListUserRequest) GetFieldMask() *fieldmaskpb.FieldMask

func (*ListUserRequest) GetNoPaging

func (x *ListUserRequest) GetNoPaging() bool

func (*ListUserRequest) GetOrQuery

func (x *ListUserRequest) GetOrQuery() *User

func (*ListUserRequest) GetOrderBy

func (x *ListUserRequest) GetOrderBy() []string

func (*ListUserRequest) GetPage

func (x *ListUserRequest) GetPage() int32

func (*ListUserRequest) GetPageSize

func (x *ListUserRequest) GetPageSize() int32

func (*ListUserRequest) GetQuery

func (x *ListUserRequest) GetQuery() *User

func (*ListUserRequest) ProtoMessage

func (*ListUserRequest) ProtoMessage()

func (*ListUserRequest) ProtoReflect

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

func (*ListUserRequest) Reset

func (x *ListUserRequest) Reset()

func (*ListUserRequest) String

func (x *ListUserRequest) String() string

func (*ListUserRequest) Validate

func (m *ListUserRequest) Validate() error

Validate checks the field values on ListUserRequest 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 (*ListUserRequest) ValidateAll

func (m *ListUserRequest) ValidateAll() error

ValidateAll checks the field values on ListUserRequest 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 ListUserRequestMultiError, or nil if none found.

type ListUserRequestMultiError

type ListUserRequestMultiError []error

ListUserRequestMultiError is an error wrapping multiple validation errors returned by ListUserRequest.ValidateAll() if the designated constraints aren't met.

func (ListUserRequestMultiError) AllErrors

func (m ListUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListUserRequestValidationError

type ListUserRequestValidationError struct {
	// contains filtered or unexported fields
}

ListUserRequestValidationError is the validation error returned by ListUserRequest.Validate if the designated constraints aren't met.

func (ListUserRequestValidationError) Cause

Cause function returns cause value.

func (ListUserRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUserRequestValidationError) ErrorName

func (e ListUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListUserRequestValidationError) Field

Field function returns field value.

func (ListUserRequestValidationError) Key

Key function returns key value.

func (ListUserRequestValidationError) Reason

Reason function returns reason value.

type ListUserResponse

type ListUserResponse struct {
	Items []*User `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	Total int32   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserResponse) Descriptor deprecated

func (*ListUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUserResponse.ProtoReflect.Descriptor instead.

func (*ListUserResponse) GetItems

func (x *ListUserResponse) GetItems() []*User

func (*ListUserResponse) GetTotal

func (x *ListUserResponse) GetTotal() int32

func (*ListUserResponse) ProtoMessage

func (*ListUserResponse) ProtoMessage()

func (*ListUserResponse) ProtoReflect

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

func (*ListUserResponse) Reset

func (x *ListUserResponse) Reset()

func (*ListUserResponse) String

func (x *ListUserResponse) String() string

func (*ListUserResponse) Validate

func (m *ListUserResponse) Validate() error

Validate checks the field values on ListUserResponse 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 (*ListUserResponse) ValidateAll

func (m *ListUserResponse) ValidateAll() error

ValidateAll checks the field values on ListUserResponse 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 ListUserResponseMultiError, or nil if none found.

type ListUserResponseMultiError

type ListUserResponseMultiError []error

ListUserResponseMultiError is an error wrapping multiple validation errors returned by ListUserResponse.ValidateAll() if the designated constraints aren't met.

func (ListUserResponseMultiError) AllErrors

func (m ListUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListUserResponseValidationError

type ListUserResponseValidationError struct {
	// contains filtered or unexported fields
}

ListUserResponseValidationError is the validation error returned by ListUserResponse.Validate if the designated constraints aren't met.

func (ListUserResponseValidationError) Cause

Cause function returns cause value.

func (ListUserResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUserResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUserResponseValidationError) Field

Field function returns field value.

func (ListUserResponseValidationError) Key

Key function returns key value.

func (ListUserResponseValidationError) Reason

Reason function returns reason value.

type Menu struct {
	CreatedAt         *string `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	UpdatedAt         *string `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	Id                uint32  `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	Name              *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Sort              *int32  `protobuf:"varint,5,opt,name=sort,proto3,oneof" json:"sort,omitempty"`
	State             *int32  `protobuf:"varint,6,opt,name=state,proto3,oneof" json:"state,omitempty"`
	Remark            *string `protobuf:"bytes,7,opt,name=remark,proto3,oneof" json:"remark,omitempty"`
	ParentId          *uint32 `protobuf:"varint,8,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"`
	Title             *string `protobuf:"bytes,9,opt,name=title,proto3,oneof" json:"title,omitempty"`
	Type              *int32  `protobuf:"varint,10,opt,name=type,proto3,oneof" json:"type,omitempty"`
	Path              *string `protobuf:"bytes,11,opt,name=path,proto3,oneof" json:"path,omitempty"`
	Component         *string `protobuf:"bytes,12,opt,name=component,proto3,oneof" json:"component,omitempty"`
	Icon              *string `protobuf:"bytes,13,opt,name=icon,proto3,oneof" json:"icon,omitempty"`
	IsExt             *bool   `protobuf:"varint,14,opt,name=is_ext,json=isExt,proto3,oneof" json:"is_ext,omitempty"`
	ExtUrl            *string `protobuf:"bytes,15,opt,name=ext_url,json=extUrl,proto3,oneof" json:"ext_url,omitempty"`
	Permissions       *string `protobuf:"bytes,16,opt,name=permissions,proto3,oneof" json:"permissions,omitempty"`
	Redirect          *string `protobuf:"bytes,17,opt,name=redirect,proto3,oneof" json:"redirect,omitempty"`
	CurrentActiveMenu *string `protobuf:"bytes,18,opt,name=current_active_menu,json=currentActiveMenu,proto3,oneof" json:"current_active_menu,omitempty"`
	KeepAlive         *bool   `protobuf:"varint,19,opt,name=keep_alive,json=keepAlive,proto3,oneof" json:"keep_alive,omitempty"`
	Visible           *bool   `protobuf:"varint,20,opt,name=visible,proto3,oneof" json:"visible,omitempty"`
	HideTab           *bool   `protobuf:"varint,21,opt,name=hide_tab,json=hideTab,proto3,oneof" json:"hide_tab,omitempty"`
	HideMenu          *bool   `protobuf:"varint,22,opt,name=hide_menu,json=hideMenu,proto3,oneof" json:"hide_menu,omitempty"`
	HideBreadcrumb    *bool   `protobuf:"varint,23,opt,name=hide_breadcrumb,json=hideBreadcrumb,proto3,oneof" json:"hide_breadcrumb,omitempty"`
	// contains filtered or unexported fields
}

菜单模块

func (*Menu) Descriptor() ([]byte, []int)

Deprecated: Use Menu.ProtoReflect.Descriptor instead.

func (x *Menu) GetComponent() string
func (x *Menu) GetCreatedAt() string
func (x *Menu) GetCurrentActiveMenu() string
func (x *Menu) GetExtUrl() string
func (x *Menu) GetHideBreadcrumb() bool
func (x *Menu) GetHideMenu() bool
func (x *Menu) GetHideTab() bool
func (x *Menu) GetIcon() string
func (x *Menu) GetId() uint32
func (x *Menu) GetIsExt() bool
func (x *Menu) GetKeepAlive() bool
func (x *Menu) GetName() string
func (x *Menu) GetParentId() uint32
func (x *Menu) GetPath() string
func (x *Menu) GetPermissions() string
func (x *Menu) GetRedirect() string
func (x *Menu) GetRemark() string
func (x *Menu) GetSort() int32
func (x *Menu) GetState() int32
func (x *Menu) GetTitle() string
func (x *Menu) GetType() int32
func (x *Menu) GetUpdatedAt() string
func (x *Menu) GetVisible() bool
func (*Menu) ProtoMessage()
func (x *Menu) ProtoReflect() protoreflect.Message
func (x *Menu) Reset()
func (x *Menu) String() string
func (m *Menu) Validate() error

Validate checks the field values on Menu 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 (m *Menu) ValidateAll() error

ValidateAll checks the field values on Menu 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 MenuMultiError, or nil if none found.

type MenuMultiError []error

MenuMultiError is an error wrapping multiple validation errors returned by Menu.ValidateAll() if the designated constraints aren't met.

func (m MenuMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (m MenuMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MenuServiceClient interface {
	CreateMenu(ctx context.Context, in *CreateMenuRequest, opts ...grpc.CallOption) (*CreateMenuResponse, error)
	UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...grpc.CallOption) (*UpdateMenuResponse, error)
	DeleteMenu(ctx context.Context, in *DeleteMenuRequest, opts ...grpc.CallOption) (*DeleteMenuResponse, error)
	GetMenu(ctx context.Context, in *GetMenuRequest, opts ...grpc.CallOption) (*Menu, error)
	ListMenu(ctx context.Context, in *pagination.PagingRequest, opts ...grpc.CallOption) (*ListMenuResponse, error)
}

MenuServiceClient is the client API for MenuService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type MenuServiceServer interface {
	CreateMenu(context.Context, *CreateMenuRequest) (*CreateMenuResponse, error)
	UpdateMenu(context.Context, *UpdateMenuRequest) (*UpdateMenuResponse, error)
	DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuResponse, error)
	GetMenu(context.Context, *GetMenuRequest) (*Menu, error)
	ListMenu(context.Context, *pagination.PagingRequest) (*ListMenuResponse, error)
	// contains filtered or unexported methods
}

MenuServiceServer is the server API for MenuService service. All implementations must embed UnimplementedMenuServiceServer for forward compatibility

type MenuValidationError struct {
	// contains filtered or unexported fields
}

MenuValidationError is the validation error returned by Menu.Validate if the designated constraints aren't met.

func (e MenuValidationError) Cause() error

Cause function returns cause value.

func (e MenuValidationError) Error() string

Error satisfies the builtin error interface

func (e MenuValidationError) ErrorName() string

ErrorName returns error name.

func (e MenuValidationError) Field() string

Field function returns field value.

func (e MenuValidationError) Key() bool

Key function returns key value.

func (e MenuValidationError) Reason() string

Reason function returns reason value.

type Post

type Post struct {
	CreatedAt *string `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	UpdatedAt *string `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	Id        uint32  `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	State     *int32  `protobuf:"varint,4,opt,name=state,proto3,oneof" json:"state,omitempty"`
	Remark    *string `protobuf:"bytes,5,opt,name=remark,proto3,oneof" json:"remark,omitempty"`
	Sort      *int32  `protobuf:"varint,6,opt,name=sort,proto3,oneof" json:"sort,omitempty"`
	Name      *string `protobuf:"bytes,7,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

岗位模块

func (*Post) Descriptor deprecated

func (*Post) Descriptor() ([]byte, []int)

Deprecated: Use Post.ProtoReflect.Descriptor instead.

func (*Post) GetCreatedAt

func (x *Post) GetCreatedAt() string

func (*Post) GetId

func (x *Post) GetId() uint32

func (*Post) GetName

func (x *Post) GetName() string

func (*Post) GetRemark

func (x *Post) GetRemark() string

func (*Post) GetSort

func (x *Post) GetSort() int32

func (*Post) GetState

func (x *Post) GetState() int32

func (*Post) GetUpdatedAt

func (x *Post) GetUpdatedAt() string

func (*Post) ProtoMessage

func (*Post) ProtoMessage()

func (*Post) ProtoReflect

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

func (*Post) Reset

func (x *Post) Reset()

func (*Post) String

func (x *Post) String() string

func (*Post) Validate

func (m *Post) Validate() error

Validate checks the field values on Post 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 (*Post) ValidateAll

func (m *Post) ValidateAll() error

ValidateAll checks the field values on Post 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 PostMultiError, or nil if none found.

type PostMultiError

type PostMultiError []error

PostMultiError is an error wrapping multiple validation errors returned by Post.ValidateAll() if the designated constraints aren't met.

func (PostMultiError) AllErrors

func (m PostMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PostMultiError) Error

func (m PostMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PostServiceClient

type PostServiceClient interface {
	CreatePost(ctx context.Context, in *CreatePostRequest, opts ...grpc.CallOption) (*CreatePostResponse, error)
	UpdatePost(ctx context.Context, in *UpdatePostRequest, opts ...grpc.CallOption) (*UpdatePostResponse, error)
	DeletePost(ctx context.Context, in *DeletePostRequest, opts ...grpc.CallOption) (*DeletePostResponse, error)
	GetPost(ctx context.Context, in *GetPostRequest, opts ...grpc.CallOption) (*Post, error)
	ListPost(ctx context.Context, in *pagination.PagingRequest, opts ...grpc.CallOption) (*ListPostResponse, error)
}

PostServiceClient is the client API for PostService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PostServiceServer

type PostServiceServer interface {
	CreatePost(context.Context, *CreatePostRequest) (*CreatePostResponse, error)
	UpdatePost(context.Context, *UpdatePostRequest) (*UpdatePostResponse, error)
	DeletePost(context.Context, *DeletePostRequest) (*DeletePostResponse, error)
	GetPost(context.Context, *GetPostRequest) (*Post, error)
	ListPost(context.Context, *pagination.PagingRequest) (*ListPostResponse, error)
	// contains filtered or unexported methods
}

PostServiceServer is the server API for PostService service. All implementations must embed UnimplementedPostServiceServer for forward compatibility

type PostValidationError

type PostValidationError struct {
	// contains filtered or unexported fields
}

PostValidationError is the validation error returned by Post.Validate if the designated constraints aren't met.

func (PostValidationError) Cause

func (e PostValidationError) Cause() error

Cause function returns cause value.

func (PostValidationError) Error

func (e PostValidationError) Error() string

Error satisfies the builtin error interface

func (PostValidationError) ErrorName

func (e PostValidationError) ErrorName() string

ErrorName returns error name.

func (PostValidationError) Field

func (e PostValidationError) Field() string

Field function returns field value.

func (PostValidationError) Key

func (e PostValidationError) Key() bool

Key function returns key value.

func (PostValidationError) Reason

func (e PostValidationError) Reason() string

Reason function returns reason value.

type RegisterRequest

type RegisterRequest struct {

	// 请求体
	Auth   *RegisterRequest_Auth `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
	Domain string                `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// contains filtered or unexported fields
}

注册 - 请求

func (*RegisterRequest) Descriptor deprecated

func (*RegisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetAuth

func (x *RegisterRequest) GetAuth() *RegisterRequest_Auth

func (*RegisterRequest) GetDomain

func (x *RegisterRequest) GetDomain() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

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

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

func (*RegisterRequest) Validate

func (m *RegisterRequest) Validate() error

Validate checks the field values on RegisterRequest 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 (*RegisterRequest) ValidateAll

func (m *RegisterRequest) ValidateAll() error

ValidateAll checks the field values on RegisterRequest 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 RegisterRequestMultiError, or nil if none found.

type RegisterRequestMultiError

type RegisterRequestMultiError []error

RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.

func (RegisterRequestMultiError) AllErrors

func (m RegisterRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RegisterRequestValidationError

type RegisterRequestValidationError struct {
	// contains filtered or unexported fields
}

RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.

func (RegisterRequestValidationError) Cause

Cause function returns cause value.

func (RegisterRequestValidationError) Error

Error satisfies the builtin error interface

func (RegisterRequestValidationError) ErrorName

func (e RegisterRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterRequestValidationError) Field

Field function returns field value.

func (RegisterRequestValidationError) Key

Key function returns key value.

func (RegisterRequestValidationError) Reason

Reason function returns reason value.

type RegisterRequest_Auth

type RegisterRequest_Auth struct {

	// 用户名
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 密码
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// 电话
	Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest_Auth) Descriptor deprecated

func (*RegisterRequest_Auth) Descriptor() ([]byte, []int)

Deprecated: Use RegisterRequest_Auth.ProtoReflect.Descriptor instead.

func (*RegisterRequest_Auth) GetName

func (x *RegisterRequest_Auth) GetName() string

func (*RegisterRequest_Auth) GetPassword

func (x *RegisterRequest_Auth) GetPassword() string

func (*RegisterRequest_Auth) GetPhone

func (x *RegisterRequest_Auth) GetPhone() string

func (*RegisterRequest_Auth) ProtoMessage

func (*RegisterRequest_Auth) ProtoMessage()

func (*RegisterRequest_Auth) ProtoReflect

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

func (*RegisterRequest_Auth) Reset

func (x *RegisterRequest_Auth) Reset()

func (*RegisterRequest_Auth) String

func (x *RegisterRequest_Auth) String() string

func (*RegisterRequest_Auth) Validate

func (m *RegisterRequest_Auth) Validate() error

Validate checks the field values on RegisterRequest_Auth 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 (*RegisterRequest_Auth) ValidateAll

func (m *RegisterRequest_Auth) ValidateAll() error

ValidateAll checks the field values on RegisterRequest_Auth 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 RegisterRequest_AuthMultiError, or nil if none found.

type RegisterRequest_AuthMultiError

type RegisterRequest_AuthMultiError []error

RegisterRequest_AuthMultiError is an error wrapping multiple validation errors returned by RegisterRequest_Auth.ValidateAll() if the designated constraints aren't met.

func (RegisterRequest_AuthMultiError) AllErrors

func (m RegisterRequest_AuthMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterRequest_AuthMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RegisterRequest_AuthValidationError

type RegisterRequest_AuthValidationError struct {
	// contains filtered or unexported fields
}

RegisterRequest_AuthValidationError is the validation error returned by RegisterRequest_Auth.Validate if the designated constraints aren't met.

func (RegisterRequest_AuthValidationError) Cause

Cause function returns cause value.

func (RegisterRequest_AuthValidationError) Error

Error satisfies the builtin error interface

func (RegisterRequest_AuthValidationError) ErrorName

ErrorName returns error name.

func (RegisterRequest_AuthValidationError) Field

Field function returns field value.

func (RegisterRequest_AuthValidationError) Key

Key function returns key value.

func (RegisterRequest_AuthValidationError) Reason

Reason function returns reason value.

type RegisterResponse

type RegisterResponse struct {
	Code    int32      `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Result  *anypb.Any `protobuf:"bytes,3,opt,name=result,proto3,oneof" json:"result,omitempty"`
	Type    string     `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

注册 - 回应

func (*RegisterResponse) Descriptor deprecated

func (*RegisterResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetCode

func (x *RegisterResponse) GetCode() int32

func (*RegisterResponse) GetMessage

func (x *RegisterResponse) GetMessage() string

func (*RegisterResponse) GetResult

func (x *RegisterResponse) GetResult() *anypb.Any

func (*RegisterResponse) GetType

func (x *RegisterResponse) GetType() string

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

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

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

func (*RegisterResponse) Validate

func (m *RegisterResponse) Validate() error

Validate checks the field values on RegisterResponse 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 (*RegisterResponse) ValidateAll

func (m *RegisterResponse) ValidateAll() error

ValidateAll checks the field values on RegisterResponse 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 RegisterResponseMultiError, or nil if none found.

type RegisterResponseMultiError

type RegisterResponseMultiError []error

RegisterResponseMultiError is an error wrapping multiple validation errors returned by RegisterResponse.ValidateAll() if the designated constraints aren't met.

func (RegisterResponseMultiError) AllErrors

func (m RegisterResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RegisterResponseValidationError

type RegisterResponseValidationError struct {
	// contains filtered or unexported fields
}

RegisterResponseValidationError is the validation error returned by RegisterResponse.Validate if the designated constraints aren't met.

func (RegisterResponseValidationError) Cause

Cause function returns cause value.

func (RegisterResponseValidationError) Error

Error satisfies the builtin error interface

func (RegisterResponseValidationError) ErrorName

ErrorName returns error name.

func (RegisterResponseValidationError) Field

Field function returns field value.

func (RegisterResponseValidationError) Key

Key function returns key value.

func (RegisterResponseValidationError) Reason

Reason function returns reason value.

type Role

type Role struct {
	CreatedAt         *string `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	UpdatedAt         *string `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	Id                uint32  `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	State             *int32  `protobuf:"varint,4,opt,name=state,proto3,oneof" json:"state,omitempty"`
	Sort              *int32  `protobuf:"varint,5,opt,name=sort,proto3,oneof" json:"sort,omitempty"`
	Remark            *string `protobuf:"bytes,6,opt,name=remark,proto3,oneof" json:"remark,omitempty"`
	Name              *string `protobuf:"bytes,7,opt,name=name,proto3,oneof" json:"name,omitempty"`
	DefaultRouter     *string `protobuf:"bytes,8,opt,name=default_router,json=defaultRouter,proto3,oneof" json:"default_router,omitempty"`
	MenuCheckStrictly *int32  `protobuf:"varint,9,opt,name=menu_check_strictly,json=menuCheckStrictly,proto3,oneof" json:"menu_check_strictly,omitempty"`
	DeptCheckStrictly *int32  `protobuf:"varint,10,opt,name=dept_check_strictly,json=deptCheckStrictly,proto3,oneof" json:"dept_check_strictly,omitempty"`
	DataScope         *int32  `protobuf:"varint,11,opt,name=data_scope,json=dataScope,proto3,oneof" json:"data_scope,omitempty"`
	// contains filtered or unexported fields
}

角色模块

func (*Role) Descriptor deprecated

func (*Role) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetCreatedAt

func (x *Role) GetCreatedAt() string

func (*Role) GetDataScope

func (x *Role) GetDataScope() int32

func (*Role) GetDefaultRouter

func (x *Role) GetDefaultRouter() string

func (*Role) GetDeptCheckStrictly

func (x *Role) GetDeptCheckStrictly() int32

func (*Role) GetId

func (x *Role) GetId() uint32

func (*Role) GetMenuCheckStrictly

func (x *Role) GetMenuCheckStrictly() int32

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetRemark

func (x *Role) GetRemark() string

func (*Role) GetSort

func (x *Role) GetSort() int32

func (*Role) GetState

func (x *Role) GetState() int32

func (*Role) GetUpdatedAt

func (x *Role) GetUpdatedAt() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

func (*Role) Validate

func (m *Role) Validate() error

Validate checks the field values on Role 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 (*Role) ValidateAll

func (m *Role) ValidateAll() error

ValidateAll checks the field values on Role 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 RoleMultiError, or nil if none found.

type RoleMultiError

type RoleMultiError []error

RoleMultiError is an error wrapping multiple validation errors returned by Role.ValidateAll() if the designated constraints aren't met.

func (RoleMultiError) AllErrors

func (m RoleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RoleMultiError) Error

func (m RoleMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RoleServiceClient

type RoleServiceClient interface {
	CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error)
	UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleResponse, error)
	DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error)
	GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*Role, error)
	ListRole(ctx context.Context, in *pagination.PagingRequest, opts ...grpc.CallOption) (*ListRoleResponse, error)
}

RoleServiceClient is the client API for RoleService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type RoleServiceServer

type RoleServiceServer interface {
	CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
	UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
	DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
	GetRole(context.Context, *GetRoleRequest) (*Role, error)
	ListRole(context.Context, *pagination.PagingRequest) (*ListRoleResponse, error)
	// contains filtered or unexported methods
}

RoleServiceServer is the server API for RoleService service. All implementations must embed UnimplementedRoleServiceServer for forward compatibility

type RoleValidationError

type RoleValidationError struct {
	// contains filtered or unexported fields
}

RoleValidationError is the validation error returned by Role.Validate if the designated constraints aren't met.

func (RoleValidationError) Cause

func (e RoleValidationError) Cause() error

Cause function returns cause value.

func (RoleValidationError) Error

func (e RoleValidationError) Error() string

Error satisfies the builtin error interface

func (RoleValidationError) ErrorName

func (e RoleValidationError) ErrorName() string

ErrorName returns error name.

func (RoleValidationError) Field

func (e RoleValidationError) Field() string

Field function returns field value.

func (RoleValidationError) Key

func (e RoleValidationError) Key() bool

Key function returns key value.

func (RoleValidationError) Reason

func (e RoleValidationError) Reason() string

Reason function returns reason value.

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) IsAuthorized

func (UnimplementedAuthServiceServer) Register

type UnimplementedDeptServiceServer

type UnimplementedDeptServiceServer struct {
}

UnimplementedDeptServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDeptServiceServer) CreateDept

func (UnimplementedDeptServiceServer) DeleteDept

func (UnimplementedDeptServiceServer) GetDept

func (UnimplementedDeptServiceServer) ListDept

func (UnimplementedDeptServiceServer) UpdateDept

type UnimplementedMenuServiceServer

type UnimplementedMenuServiceServer struct {
}

UnimplementedMenuServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMenuServiceServer) CreateMenu

func (UnimplementedMenuServiceServer) DeleteMenu

func (UnimplementedMenuServiceServer) GetMenu

func (UnimplementedMenuServiceServer) ListMenu

func (UnimplementedMenuServiceServer) UpdateMenu

type UnimplementedPostServiceServer

type UnimplementedPostServiceServer struct {
}

UnimplementedPostServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPostServiceServer) CreatePost

func (UnimplementedPostServiceServer) DeletePost

func (UnimplementedPostServiceServer) GetPost

func (UnimplementedPostServiceServer) ListPost

func (UnimplementedPostServiceServer) UpdatePost

type UnimplementedRoleServiceServer

type UnimplementedRoleServiceServer struct {
}

UnimplementedRoleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRoleServiceServer) CreateRole

func (UnimplementedRoleServiceServer) DeleteRole

func (UnimplementedRoleServiceServer) GetRole

func (UnimplementedRoleServiceServer) ListRole

func (UnimplementedRoleServiceServer) UpdateRole

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) GetUserByName

func (UnimplementedUserServiceServer) ListUser

func (UnimplementedUserServiceServer) UpdateUser

func (UnimplementedUserServiceServer) UserExists

func (UnimplementedUserServiceServer) VerifyPassword

type UnsafeAuthServiceServer

type UnsafeAuthServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.

type UnsafeDeptServiceServer

type UnsafeDeptServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDeptServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeptServiceServer will result in compilation errors.

type UnsafeMenuServiceServer

type UnsafeMenuServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeMenuServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MenuServiceServer will result in compilation errors.

type UnsafePostServiceServer

type UnsafePostServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePostServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PostServiceServer will result in compilation errors.

type UnsafeRoleServiceServer

type UnsafeRoleServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeRoleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RoleServiceServer will result in compilation errors.

type UnsafeUserServiceServer

type UnsafeUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.

type UpdateDeptRequest

type UpdateDeptRequest struct {
	Id         uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Dept       *Dept  `protobuf:"bytes,2,opt,name=dept,proto3" json:"dept,omitempty"`
	OperatorId uint32 `protobuf:"varint,3,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateDeptRequest) Descriptor deprecated

func (*UpdateDeptRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDeptRequest.ProtoReflect.Descriptor instead.

func (*UpdateDeptRequest) GetDept

func (x *UpdateDeptRequest) GetDept() *Dept

func (*UpdateDeptRequest) GetId

func (x *UpdateDeptRequest) GetId() uint32

func (*UpdateDeptRequest) GetOperatorId

func (x *UpdateDeptRequest) GetOperatorId() uint32

func (*UpdateDeptRequest) ProtoMessage

func (*UpdateDeptRequest) ProtoMessage()

func (*UpdateDeptRequest) ProtoReflect

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

func (*UpdateDeptRequest) Reset

func (x *UpdateDeptRequest) Reset()

func (*UpdateDeptRequest) String

func (x *UpdateDeptRequest) String() string

func (*UpdateDeptRequest) Validate

func (m *UpdateDeptRequest) Validate() error

Validate checks the field values on UpdateDeptRequest 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 (*UpdateDeptRequest) ValidateAll

func (m *UpdateDeptRequest) ValidateAll() error

ValidateAll checks the field values on UpdateDeptRequest 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 UpdateDeptRequestMultiError, or nil if none found.

type UpdateDeptRequestMultiError

type UpdateDeptRequestMultiError []error

UpdateDeptRequestMultiError is an error wrapping multiple validation errors returned by UpdateDeptRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateDeptRequestMultiError) AllErrors

func (m UpdateDeptRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateDeptRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateDeptRequestValidationError

type UpdateDeptRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateDeptRequestValidationError is the validation error returned by UpdateDeptRequest.Validate if the designated constraints aren't met.

func (UpdateDeptRequestValidationError) Cause

Cause function returns cause value.

func (UpdateDeptRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateDeptRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateDeptRequestValidationError) Field

Field function returns field value.

func (UpdateDeptRequestValidationError) Key

Key function returns key value.

func (UpdateDeptRequestValidationError) Reason

Reason function returns reason value.

type UpdateDeptResponse

type UpdateDeptResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateDeptResponse) Descriptor deprecated

func (*UpdateDeptResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDeptResponse.ProtoReflect.Descriptor instead.

func (*UpdateDeptResponse) ProtoMessage

func (*UpdateDeptResponse) ProtoMessage()

func (*UpdateDeptResponse) ProtoReflect

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

func (*UpdateDeptResponse) Reset

func (x *UpdateDeptResponse) Reset()

func (*UpdateDeptResponse) String

func (x *UpdateDeptResponse) String() string

func (*UpdateDeptResponse) Validate

func (m *UpdateDeptResponse) Validate() error

Validate checks the field values on UpdateDeptResponse 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 (*UpdateDeptResponse) ValidateAll

func (m *UpdateDeptResponse) ValidateAll() error

ValidateAll checks the field values on UpdateDeptResponse 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 UpdateDeptResponseMultiError, or nil if none found.

type UpdateDeptResponseMultiError

type UpdateDeptResponseMultiError []error

UpdateDeptResponseMultiError is an error wrapping multiple validation errors returned by UpdateDeptResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateDeptResponseMultiError) AllErrors

func (m UpdateDeptResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateDeptResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateDeptResponseValidationError

type UpdateDeptResponseValidationError struct {
	// contains filtered or unexported fields
}

UpdateDeptResponseValidationError is the validation error returned by UpdateDeptResponse.Validate if the designated constraints aren't met.

func (UpdateDeptResponseValidationError) Cause

Cause function returns cause value.

func (UpdateDeptResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateDeptResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateDeptResponseValidationError) Field

Field function returns field value.

func (UpdateDeptResponseValidationError) Key

Key function returns key value.

func (UpdateDeptResponseValidationError) Reason

Reason function returns reason value.

type UpdateMenuRequest

type UpdateMenuRequest struct {
	Id         uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Menu       *Menu  `protobuf:"bytes,2,opt,name=menu,proto3" json:"menu,omitempty"`
	OperatorId uint32 `protobuf:"varint,3,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMenuRequest) Descriptor deprecated

func (*UpdateMenuRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMenuRequest.ProtoReflect.Descriptor instead.

func (*UpdateMenuRequest) GetId

func (x *UpdateMenuRequest) GetId() uint32

func (*UpdateMenuRequest) GetMenu

func (x *UpdateMenuRequest) GetMenu() *Menu

func (*UpdateMenuRequest) GetOperatorId

func (x *UpdateMenuRequest) GetOperatorId() uint32

func (*UpdateMenuRequest) ProtoMessage

func (*UpdateMenuRequest) ProtoMessage()

func (*UpdateMenuRequest) ProtoReflect

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

func (*UpdateMenuRequest) Reset

func (x *UpdateMenuRequest) Reset()

func (*UpdateMenuRequest) String

func (x *UpdateMenuRequest) String() string

func (*UpdateMenuRequest) Validate

func (m *UpdateMenuRequest) Validate() error

Validate checks the field values on UpdateMenuRequest 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 (*UpdateMenuRequest) ValidateAll

func (m *UpdateMenuRequest) ValidateAll() error

ValidateAll checks the field values on UpdateMenuRequest 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 UpdateMenuRequestMultiError, or nil if none found.

type UpdateMenuRequestMultiError

type UpdateMenuRequestMultiError []error

UpdateMenuRequestMultiError is an error wrapping multiple validation errors returned by UpdateMenuRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateMenuRequestMultiError) AllErrors

func (m UpdateMenuRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateMenuRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateMenuRequestValidationError

type UpdateMenuRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateMenuRequestValidationError is the validation error returned by UpdateMenuRequest.Validate if the designated constraints aren't met.

func (UpdateMenuRequestValidationError) Cause

Cause function returns cause value.

func (UpdateMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateMenuRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateMenuRequestValidationError) Field

Field function returns field value.

func (UpdateMenuRequestValidationError) Key

Key function returns key value.

func (UpdateMenuRequestValidationError) Reason

Reason function returns reason value.

type UpdateMenuResponse

type UpdateMenuResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateMenuResponse) Descriptor deprecated

func (*UpdateMenuResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMenuResponse.ProtoReflect.Descriptor instead.

func (*UpdateMenuResponse) ProtoMessage

func (*UpdateMenuResponse) ProtoMessage()

func (*UpdateMenuResponse) ProtoReflect

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

func (*UpdateMenuResponse) Reset

func (x *UpdateMenuResponse) Reset()

func (*UpdateMenuResponse) String

func (x *UpdateMenuResponse) String() string

func (*UpdateMenuResponse) Validate

func (m *UpdateMenuResponse) Validate() error

Validate checks the field values on UpdateMenuResponse 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 (*UpdateMenuResponse) ValidateAll

func (m *UpdateMenuResponse) ValidateAll() error

ValidateAll checks the field values on UpdateMenuResponse 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 UpdateMenuResponseMultiError, or nil if none found.

type UpdateMenuResponseMultiError

type UpdateMenuResponseMultiError []error

UpdateMenuResponseMultiError is an error wrapping multiple validation errors returned by UpdateMenuResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateMenuResponseMultiError) AllErrors

func (m UpdateMenuResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateMenuResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateMenuResponseValidationError

type UpdateMenuResponseValidationError struct {
	// contains filtered or unexported fields
}

UpdateMenuResponseValidationError is the validation error returned by UpdateMenuResponse.Validate if the designated constraints aren't met.

func (UpdateMenuResponseValidationError) Cause

Cause function returns cause value.

func (UpdateMenuResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateMenuResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateMenuResponseValidationError) Field

Field function returns field value.

func (UpdateMenuResponseValidationError) Key

Key function returns key value.

func (UpdateMenuResponseValidationError) Reason

Reason function returns reason value.

type UpdatePostRequest

type UpdatePostRequest struct {
	Id         uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Post       *Post  `protobuf:"bytes,2,opt,name=post,proto3" json:"post,omitempty"`
	OperatorId uint32 `protobuf:"varint,3,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePostRequest) Descriptor deprecated

func (*UpdatePostRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePostRequest.ProtoReflect.Descriptor instead.

func (*UpdatePostRequest) GetId

func (x *UpdatePostRequest) GetId() uint32

func (*UpdatePostRequest) GetOperatorId

func (x *UpdatePostRequest) GetOperatorId() uint32

func (*UpdatePostRequest) GetPost

func (x *UpdatePostRequest) GetPost() *Post

func (*UpdatePostRequest) ProtoMessage

func (*UpdatePostRequest) ProtoMessage()

func (*UpdatePostRequest) ProtoReflect

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

func (*UpdatePostRequest) Reset

func (x *UpdatePostRequest) Reset()

func (*UpdatePostRequest) String

func (x *UpdatePostRequest) String() string

func (*UpdatePostRequest) Validate

func (m *UpdatePostRequest) Validate() error

Validate checks the field values on UpdatePostRequest 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 (*UpdatePostRequest) ValidateAll

func (m *UpdatePostRequest) ValidateAll() error

ValidateAll checks the field values on UpdatePostRequest 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 UpdatePostRequestMultiError, or nil if none found.

type UpdatePostRequestMultiError

type UpdatePostRequestMultiError []error

UpdatePostRequestMultiError is an error wrapping multiple validation errors returned by UpdatePostRequest.ValidateAll() if the designated constraints aren't met.

func (UpdatePostRequestMultiError) AllErrors

func (m UpdatePostRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdatePostRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdatePostRequestValidationError

type UpdatePostRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdatePostRequestValidationError is the validation error returned by UpdatePostRequest.Validate if the designated constraints aren't met.

func (UpdatePostRequestValidationError) Cause

Cause function returns cause value.

func (UpdatePostRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdatePostRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdatePostRequestValidationError) Field

Field function returns field value.

func (UpdatePostRequestValidationError) Key

Key function returns key value.

func (UpdatePostRequestValidationError) Reason

Reason function returns reason value.

type UpdatePostResponse

type UpdatePostResponse struct {
	// contains filtered or unexported fields
}

func (*UpdatePostResponse) Descriptor deprecated

func (*UpdatePostResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePostResponse.ProtoReflect.Descriptor instead.

func (*UpdatePostResponse) ProtoMessage

func (*UpdatePostResponse) ProtoMessage()

func (*UpdatePostResponse) ProtoReflect

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

func (*UpdatePostResponse) Reset

func (x *UpdatePostResponse) Reset()

func (*UpdatePostResponse) String

func (x *UpdatePostResponse) String() string

func (*UpdatePostResponse) Validate

func (m *UpdatePostResponse) Validate() error

Validate checks the field values on UpdatePostResponse 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 (*UpdatePostResponse) ValidateAll

func (m *UpdatePostResponse) ValidateAll() error

ValidateAll checks the field values on UpdatePostResponse 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 UpdatePostResponseMultiError, or nil if none found.

type UpdatePostResponseMultiError

type UpdatePostResponseMultiError []error

UpdatePostResponseMultiError is an error wrapping multiple validation errors returned by UpdatePostResponse.ValidateAll() if the designated constraints aren't met.

func (UpdatePostResponseMultiError) AllErrors

func (m UpdatePostResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdatePostResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdatePostResponseValidationError

type UpdatePostResponseValidationError struct {
	// contains filtered or unexported fields
}

UpdatePostResponseValidationError is the validation error returned by UpdatePostResponse.Validate if the designated constraints aren't met.

func (UpdatePostResponseValidationError) Cause

Cause function returns cause value.

func (UpdatePostResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdatePostResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdatePostResponseValidationError) Field

Field function returns field value.

func (UpdatePostResponseValidationError) Key

Key function returns key value.

func (UpdatePostResponseValidationError) Reason

Reason function returns reason value.

type UpdateRoleRequest

type UpdateRoleRequest struct {
	Id         uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Role       *Role  `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	OperatorId uint32 `protobuf:"varint,3,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRoleRequest) Descriptor deprecated

func (*UpdateRoleRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.

func (*UpdateRoleRequest) GetId

func (x *UpdateRoleRequest) GetId() uint32

func (*UpdateRoleRequest) GetOperatorId

func (x *UpdateRoleRequest) GetOperatorId() uint32

func (*UpdateRoleRequest) GetRole

func (x *UpdateRoleRequest) GetRole() *Role

func (*UpdateRoleRequest) ProtoMessage

func (*UpdateRoleRequest) ProtoMessage()

func (*UpdateRoleRequest) ProtoReflect

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

func (*UpdateRoleRequest) Reset

func (x *UpdateRoleRequest) Reset()

func (*UpdateRoleRequest) String

func (x *UpdateRoleRequest) String() string

func (*UpdateRoleRequest) Validate

func (m *UpdateRoleRequest) Validate() error

Validate checks the field values on UpdateRoleRequest 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 (*UpdateRoleRequest) ValidateAll

func (m *UpdateRoleRequest) ValidateAll() error

ValidateAll checks the field values on UpdateRoleRequest 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 UpdateRoleRequestMultiError, or nil if none found.

type UpdateRoleRequestMultiError

type UpdateRoleRequestMultiError []error

UpdateRoleRequestMultiError is an error wrapping multiple validation errors returned by UpdateRoleRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateRoleRequestMultiError) AllErrors

func (m UpdateRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateRoleRequestValidationError

type UpdateRoleRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateRoleRequestValidationError is the validation error returned by UpdateRoleRequest.Validate if the designated constraints aren't met.

func (UpdateRoleRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRoleRequestValidationError) Field

Field function returns field value.

func (UpdateRoleRequestValidationError) Key

Key function returns key value.

func (UpdateRoleRequestValidationError) Reason

Reason function returns reason value.

type UpdateRoleResponse

type UpdateRoleResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateRoleResponse) Descriptor deprecated

func (*UpdateRoleResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateRoleResponse.ProtoReflect.Descriptor instead.

func (*UpdateRoleResponse) ProtoMessage

func (*UpdateRoleResponse) ProtoMessage()

func (*UpdateRoleResponse) ProtoReflect

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

func (*UpdateRoleResponse) Reset

func (x *UpdateRoleResponse) Reset()

func (*UpdateRoleResponse) String

func (x *UpdateRoleResponse) String() string

func (*UpdateRoleResponse) Validate

func (m *UpdateRoleResponse) Validate() error

Validate checks the field values on UpdateRoleResponse 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 (*UpdateRoleResponse) ValidateAll

func (m *UpdateRoleResponse) ValidateAll() error

ValidateAll checks the field values on UpdateRoleResponse 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 UpdateRoleResponseMultiError, or nil if none found.

type UpdateRoleResponseMultiError

type UpdateRoleResponseMultiError []error

UpdateRoleResponseMultiError is an error wrapping multiple validation errors returned by UpdateRoleResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateRoleResponseMultiError) AllErrors

func (m UpdateRoleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateRoleResponseValidationError

type UpdateRoleResponseValidationError struct {
	// contains filtered or unexported fields
}

UpdateRoleResponseValidationError is the validation error returned by UpdateRoleResponse.Validate if the designated constraints aren't met.

func (UpdateRoleResponseValidationError) Cause

Cause function returns cause value.

func (UpdateRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateRoleResponseValidationError) Field

Field function returns field value.

func (UpdateRoleResponseValidationError) Key

Key function returns key value.

func (UpdateRoleResponseValidationError) Reason

Reason function returns reason value.

type UpdateUserRequest

type UpdateUserRequest struct {
	Id         uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	User       *User  `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	OperatorId uint32 `protobuf:"varint,3,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

func (*UpdateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetId

func (x *UpdateUserRequest) GetId() uint32

func (*UpdateUserRequest) GetOperatorId

func (x *UpdateUserRequest) GetOperatorId() uint32

func (*UpdateUserRequest) GetUser

func (x *UpdateUserRequest) GetUser() *User

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

func (*UpdateUserRequest) Validate

func (m *UpdateUserRequest) Validate() error

Validate checks the field values on UpdateUserRequest 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 (*UpdateUserRequest) ValidateAll

func (m *UpdateUserRequest) ValidateAll() error

ValidateAll checks the field values on UpdateUserRequest 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 UpdateUserRequestMultiError, or nil if none found.

type UpdateUserRequestMultiError

type UpdateUserRequestMultiError []error

UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateUserRequestMultiError) AllErrors

func (m UpdateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserRequestValidationError

type UpdateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.

func (UpdateUserRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserRequestValidationError) Field

Field function returns field value.

func (UpdateUserRequestValidationError) Key

Key function returns key value.

func (UpdateUserRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserResponse

type UpdateUserResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateUserResponse) Descriptor deprecated

func (*UpdateUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) ProtoReflect

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

func (*UpdateUserResponse) Reset

func (x *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (x *UpdateUserResponse) String() string

func (*UpdateUserResponse) Validate

func (m *UpdateUserResponse) Validate() error

Validate checks the field values on UpdateUserResponse 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 (*UpdateUserResponse) ValidateAll

func (m *UpdateUserResponse) ValidateAll() error

ValidateAll checks the field values on UpdateUserResponse 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 UpdateUserResponseMultiError, or nil if none found.

type UpdateUserResponseMultiError

type UpdateUserResponseMultiError []error

UpdateUserResponseMultiError is an error wrapping multiple validation errors returned by UpdateUserResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateUserResponseMultiError) AllErrors

func (m UpdateUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserResponseValidationError

type UpdateUserResponseValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserResponseValidationError is the validation error returned by UpdateUserResponse.Validate if the designated constraints aren't met.

func (UpdateUserResponseValidationError) Cause

Cause function returns cause value.

func (UpdateUserResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserResponseValidationError) Field

Field function returns field value.

func (UpdateUserResponseValidationError) Key

Key function returns key value.

func (UpdateUserResponseValidationError) Reason

Reason function returns reason value.

type User

type User struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	NickName    *string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3,oneof" json:"nick_name,omitempty"`
	RealName    *string `protobuf:"bytes,5,opt,name=real_name,json=realName,proto3,oneof" json:"real_name,omitempty"`
	Birthday    *string `protobuf:"bytes,6,opt,name=birthday,proto3,oneof" json:"birthday,omitempty"`
	Gender      *int32  `protobuf:"varint,7,opt,name=gender,proto3,oneof" json:"gender,omitempty"`
	Phone       *string `protobuf:"bytes,8,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
	Email       *string `protobuf:"bytes,9,opt,name=email,proto3,oneof" json:"email,omitempty"`
	Avatar      *string `protobuf:"bytes,10,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
	State       *int32  `protobuf:"varint,11,opt,name=state,proto3,oneof" json:"state,omitempty"`
	CreatedAt   *string `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	UpdatedAt   *string `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	CreatorId   *uint32 `protobuf:"varint,14,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` // 创建者ID
	Authority   *int32  `protobuf:"varint,15,opt,name=authority,proto3,oneof" json:"authority,omitempty"`                  // 权限
	Password    *string `protobuf:"bytes,16,opt,name=password,proto3,oneof" json:"password,omitempty"`
	Description *string `protobuf:"bytes,17,opt,name=description,proto3,oneof" json:"description,omitempty"` // 个人说明
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAuthority

func (x *User) GetAuthority() int32

func (*User) GetAvatar

func (x *User) GetAvatar() string

func (*User) GetBirthday

func (x *User) GetBirthday() string

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() string

func (*User) GetCreatorId

func (x *User) GetCreatorId() uint32

func (*User) GetDescription

func (x *User) GetDescription() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetGender

func (x *User) GetGender() int32

func (*User) GetId

func (x *User) GetId() uint32

func (*User) GetName

func (x *User) GetName() string

func (*User) GetNickName

func (x *User) GetNickName() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetPhone

func (x *User) GetPhone() string

func (*User) GetRealName

func (x *User) GetRealName() string

func (*User) GetState

func (x *User) GetState() int32

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User 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 (*User) ValidateAll

func (m *User) ValidateAll() error

ValidateAll checks the field values on User 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 UserMultiError, or nil if none found.

type UserExistsRequest

type UserExistsRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

用户是否存在 - 请求

func (*UserExistsRequest) Descriptor deprecated

func (*UserExistsRequest) Descriptor() ([]byte, []int)

Deprecated: Use UserExistsRequest.ProtoReflect.Descriptor instead.

func (*UserExistsRequest) GetName

func (x *UserExistsRequest) GetName() string

func (*UserExistsRequest) ProtoMessage

func (*UserExistsRequest) ProtoMessage()

func (*UserExistsRequest) ProtoReflect

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

func (*UserExistsRequest) Reset

func (x *UserExistsRequest) Reset()

func (*UserExistsRequest) String

func (x *UserExistsRequest) String() string

func (*UserExistsRequest) Validate

func (m *UserExistsRequest) Validate() error

Validate checks the field values on UserExistsRequest 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 (*UserExistsRequest) ValidateAll

func (m *UserExistsRequest) ValidateAll() error

ValidateAll checks the field values on UserExistsRequest 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 UserExistsRequestMultiError, or nil if none found.

type UserExistsRequestMultiError

type UserExistsRequestMultiError []error

UserExistsRequestMultiError is an error wrapping multiple validation errors returned by UserExistsRequest.ValidateAll() if the designated constraints aren't met.

func (UserExistsRequestMultiError) AllErrors

func (m UserExistsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserExistsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserExistsRequestValidationError

type UserExistsRequestValidationError struct {
	// contains filtered or unexported fields
}

UserExistsRequestValidationError is the validation error returned by UserExistsRequest.Validate if the designated constraints aren't met.

func (UserExistsRequestValidationError) Cause

Cause function returns cause value.

func (UserExistsRequestValidationError) Error

Error satisfies the builtin error interface

func (UserExistsRequestValidationError) ErrorName

ErrorName returns error name.

func (UserExistsRequestValidationError) Field

Field function returns field value.

func (UserExistsRequestValidationError) Key

Key function returns key value.

func (UserExistsRequestValidationError) Reason

Reason function returns reason value.

type UserExistsResponse

type UserExistsResponse struct {
	Exist bool `protobuf:"varint,1,opt,name=exist,proto3" json:"exist,omitempty"`
	// contains filtered or unexported fields
}

用户是否存在 - 回应

func (*UserExistsResponse) Descriptor deprecated

func (*UserExistsResponse) Descriptor() ([]byte, []int)

Deprecated: Use UserExistsResponse.ProtoReflect.Descriptor instead.

func (*UserExistsResponse) GetExist

func (x *UserExistsResponse) GetExist() bool

func (*UserExistsResponse) ProtoMessage

func (*UserExistsResponse) ProtoMessage()

func (*UserExistsResponse) ProtoReflect

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

func (*UserExistsResponse) Reset

func (x *UserExistsResponse) Reset()

func (*UserExistsResponse) String

func (x *UserExistsResponse) String() string

func (*UserExistsResponse) Validate

func (m *UserExistsResponse) Validate() error

Validate checks the field values on UserExistsResponse 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 (*UserExistsResponse) ValidateAll

func (m *UserExistsResponse) ValidateAll() error

ValidateAll checks the field values on UserExistsResponse 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 UserExistsResponseMultiError, or nil if none found.

type UserExistsResponseMultiError

type UserExistsResponseMultiError []error

UserExistsResponseMultiError is an error wrapping multiple validation errors returned by UserExistsResponse.ValidateAll() if the designated constraints aren't met.

func (UserExistsResponseMultiError) AllErrors

func (m UserExistsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserExistsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserExistsResponseValidationError

type UserExistsResponseValidationError struct {
	// contains filtered or unexported fields
}

UserExistsResponseValidationError is the validation error returned by UserExistsResponse.Validate if the designated constraints aren't met.

func (UserExistsResponseValidationError) Cause

Cause function returns cause value.

func (UserExistsResponseValidationError) Error

Error satisfies the builtin error interface

func (UserExistsResponseValidationError) ErrorName

ErrorName returns error name.

func (UserExistsResponseValidationError) Field

Field function returns field value.

func (UserExistsResponseValidationError) Key

Key function returns key value.

func (UserExistsResponseValidationError) Reason

Reason function returns reason value.

type UserMultiError

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserServiceClient

type UserServiceClient interface {
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	ListUser(ctx context.Context, in *pagination.PagingRequest, opts ...grpc.CallOption) (*ListUserResponse, error)
	// 查询用户详情
	GetUserByName(ctx context.Context, in *GetUserByNameRequest, opts ...grpc.CallOption) (*User, error)
	// 验证密码
	VerifyPassword(ctx context.Context, in *VerifyPasswordRequest, opts ...grpc.CallOption) (*VerifyPasswordResponse, error)
	// 用户是否存在
	UserExists(ctx context.Context, in *UserExistsRequest, opts ...grpc.CallOption) (*UserExistsResponse, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UserServiceServer

type UserServiceServer interface {
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
	DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
	GetUser(context.Context, *GetUserRequest) (*User, error)
	ListUser(context.Context, *pagination.PagingRequest) (*ListUserResponse, error)
	// 查询用户详情
	GetUserByName(context.Context, *GetUserByNameRequest) (*User, error)
	// 验证密码
	VerifyPassword(context.Context, *VerifyPasswordRequest) (*VerifyPasswordResponse, error)
	// 用户是否存在
	UserExists(context.Context, *UserExistsRequest) (*UserExistsResponse, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type UserValidationError

type UserValidationError struct {
	// contains filtered or unexported fields
}

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

type VerifyPassword

type VerifyPassword int32

验证密码结果码

const (
	VerifyPassword_VERIFY_PASSWORD_UNSPECIFIED        VerifyPassword = 0
	VerifyPassword_VERIFY_PASSWORD_SUCCESS            VerifyPassword = 1 // 验证成功
	VerifyPassword_VERIFY_PASSWORD_ACCOUNT_NOT_EXISTS VerifyPassword = 2 // 账号不存在
	VerifyPassword_VERIFY_PASSWORD_WRONG_PASSWORD     VerifyPassword = 3 // 密码错误
	VerifyPassword_VERIFY_PASSWORD_FREEZE             VerifyPassword = 4 // 已冻结
	VerifyPassword_VERIFY_PASSWORD_DELETED            VerifyPassword = 5 // 已删除
)

func (VerifyPassword) Descriptor

func (VerifyPassword) Enum

func (x VerifyPassword) Enum() *VerifyPassword

func (VerifyPassword) EnumDescriptor deprecated

func (VerifyPassword) EnumDescriptor() ([]byte, []int)

Deprecated: Use VerifyPassword.Descriptor instead.

func (VerifyPassword) Number

func (VerifyPassword) String

func (x VerifyPassword) String() string

func (VerifyPassword) Type

type VerifyPasswordRequest

type VerifyPasswordRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

验证密码 - 请求

func (*VerifyPasswordRequest) Descriptor deprecated

func (*VerifyPasswordRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerifyPasswordRequest.ProtoReflect.Descriptor instead.

func (*VerifyPasswordRequest) GetName

func (x *VerifyPasswordRequest) GetName() string

func (*VerifyPasswordRequest) GetPassword

func (x *VerifyPasswordRequest) GetPassword() string

func (*VerifyPasswordRequest) ProtoMessage

func (*VerifyPasswordRequest) ProtoMessage()

func (*VerifyPasswordRequest) ProtoReflect

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

func (*VerifyPasswordRequest) Reset

func (x *VerifyPasswordRequest) Reset()

func (*VerifyPasswordRequest) String

func (x *VerifyPasswordRequest) String() string

func (*VerifyPasswordRequest) Validate

func (m *VerifyPasswordRequest) Validate() error

Validate checks the field values on VerifyPasswordRequest 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 (*VerifyPasswordRequest) ValidateAll

func (m *VerifyPasswordRequest) ValidateAll() error

ValidateAll checks the field values on VerifyPasswordRequest 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 VerifyPasswordRequestMultiError, or nil if none found.

type VerifyPasswordRequestMultiError

type VerifyPasswordRequestMultiError []error

VerifyPasswordRequestMultiError is an error wrapping multiple validation errors returned by VerifyPasswordRequest.ValidateAll() if the designated constraints aren't met.

func (VerifyPasswordRequestMultiError) AllErrors

func (m VerifyPasswordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VerifyPasswordRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type VerifyPasswordRequestValidationError

type VerifyPasswordRequestValidationError struct {
	// contains filtered or unexported fields
}

VerifyPasswordRequestValidationError is the validation error returned by VerifyPasswordRequest.Validate if the designated constraints aren't met.

func (VerifyPasswordRequestValidationError) Cause

Cause function returns cause value.

func (VerifyPasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (VerifyPasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (VerifyPasswordRequestValidationError) Field

Field function returns field value.

func (VerifyPasswordRequestValidationError) Key

Key function returns key value.

func (VerifyPasswordRequestValidationError) Reason

Reason function returns reason value.

type VerifyPasswordResponse

type VerifyPasswordResponse struct {
	Result VerifyPassword `protobuf:"varint,1,opt,name=result,proto3,enum=core.service.v1.VerifyPassword" json:"result,omitempty"`
	// contains filtered or unexported fields
}

验证密码 - 回应

func (*VerifyPasswordResponse) Descriptor deprecated

func (*VerifyPasswordResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerifyPasswordResponse.ProtoReflect.Descriptor instead.

func (*VerifyPasswordResponse) GetResult

func (x *VerifyPasswordResponse) GetResult() VerifyPassword

func (*VerifyPasswordResponse) ProtoMessage

func (*VerifyPasswordResponse) ProtoMessage()

func (*VerifyPasswordResponse) ProtoReflect

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

func (*VerifyPasswordResponse) Reset

func (x *VerifyPasswordResponse) Reset()

func (*VerifyPasswordResponse) String

func (x *VerifyPasswordResponse) String() string

func (*VerifyPasswordResponse) Validate

func (m *VerifyPasswordResponse) Validate() error

Validate checks the field values on VerifyPasswordResponse 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 (*VerifyPasswordResponse) ValidateAll

func (m *VerifyPasswordResponse) ValidateAll() error

ValidateAll checks the field values on VerifyPasswordResponse 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 VerifyPasswordResponseMultiError, or nil if none found.

type VerifyPasswordResponseMultiError

type VerifyPasswordResponseMultiError []error

VerifyPasswordResponseMultiError is an error wrapping multiple validation errors returned by VerifyPasswordResponse.ValidateAll() if the designated constraints aren't met.

func (VerifyPasswordResponseMultiError) AllErrors

func (m VerifyPasswordResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VerifyPasswordResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type VerifyPasswordResponseValidationError

type VerifyPasswordResponseValidationError struct {
	// contains filtered or unexported fields
}

VerifyPasswordResponseValidationError is the validation error returned by VerifyPasswordResponse.Validate if the designated constraints aren't met.

func (VerifyPasswordResponseValidationError) Cause

Cause function returns cause value.

func (VerifyPasswordResponseValidationError) Error

Error satisfies the builtin error interface

func (VerifyPasswordResponseValidationError) ErrorName

ErrorName returns error name.

func (VerifyPasswordResponseValidationError) Field

Field function returns field value.

func (VerifyPasswordResponseValidationError) Key

Key function returns key value.

func (VerifyPasswordResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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