authorization

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthorizationService_CheckAuthorization_FullMethodName = "/authorization.v1.AuthorizationService/CheckAuthorization"
	AuthorizationService_GetRoleAll_FullMethodName         = "/authorization.v1.AuthorizationService/GetRoleAll"
	AuthorizationService_CreateRole_FullMethodName         = "/authorization.v1.AuthorizationService/CreateRole"
	AuthorizationService_UpdateRole_FullMethodName         = "/authorization.v1.AuthorizationService/UpdateRole"
	AuthorizationService_DeleteRole_FullMethodName         = "/authorization.v1.AuthorizationService/DeleteRole"
	AuthorizationService_GetRolesForUser_FullMethodName    = "/authorization.v1.AuthorizationService/GetRolesForUser"
	AuthorizationService_GetUsersForRole_FullMethodName    = "/authorization.v1.AuthorizationService/GetUsersForRole"
	AuthorizationService_SetRolesForUser_FullMethodName    = "/authorization.v1.AuthorizationService/SetRolesForUser"
	AuthorizationService_DeleteRoleForUser_FullMethodName  = "/authorization.v1.AuthorizationService/DeleteRoleForUser"
	AuthorizationService_DeleteRolesForUser_FullMethodName = "/authorization.v1.AuthorizationService/DeleteRolesForUser"
	AuthorizationService_GetPolicies_FullMethodName        = "/authorization.v1.AuthorizationService/GetPolicies"
	AuthorizationService_UpdatePolicies_FullMethodName     = "/authorization.v1.AuthorizationService/UpdatePolicies"
	AuthorizationService_GetApiListAll_FullMethodName      = "/authorization.v1.AuthorizationService/GetApiListAll"
	AuthorizationService_GetApiList_FullMethodName         = "/authorization.v1.AuthorizationService/GetApiList"
	AuthorizationService_CreateApi_FullMethodName          = "/authorization.v1.AuthorizationService/CreateApi"
	AuthorizationService_UpdateApi_FullMethodName          = "/authorization.v1.AuthorizationService/UpdateApi"
	AuthorizationService_DeleteApi_FullMethodName          = "/authorization.v1.AuthorizationService/DeleteApi"
	AuthorizationService_GetMenuAll_FullMethodName         = "/authorization.v1.AuthorizationService/GetMenuAll"
	AuthorizationService_GetMenuTree_FullMethodName        = "/authorization.v1.AuthorizationService/GetMenuTree"
	AuthorizationService_CreateMenu_FullMethodName         = "/authorization.v1.AuthorizationService/CreateMenu"
	AuthorizationService_UpdateMenu_FullMethodName         = "/authorization.v1.AuthorizationService/UpdateMenu"
	AuthorizationService_DeleteMenu_FullMethodName         = "/authorization.v1.AuthorizationService/DeleteMenu"
	AuthorizationService_GetRoleMenuTree_FullMethodName    = "/authorization.v1.AuthorizationService/GetRoleMenuTree"
	AuthorizationService_GetRoleMenu_FullMethodName        = "/authorization.v1.AuthorizationService/GetRoleMenu"
	AuthorizationService_SaveRoleMenu_FullMethodName       = "/authorization.v1.AuthorizationService/SaveRoleMenu"
	AuthorizationService_GetRoleMenuBtn_FullMethodName     = "/authorization.v1.AuthorizationService/GetRoleMenuBtn"
	AuthorizationService_SaveRoleMenuBtn_FullMethodName    = "/authorization.v1.AuthorizationService/SaveRoleMenuBtn"
)
View Source
const OperationAuthorizationServiceCheckAuthorization = "/authorization.v1.AuthorizationService/CheckAuthorization"
View Source
const OperationAuthorizationServiceCreateApi = "/authorization.v1.AuthorizationService/CreateApi"
View Source
const OperationAuthorizationServiceCreateMenu = "/authorization.v1.AuthorizationService/CreateMenu"
View Source
const OperationAuthorizationServiceCreateRole = "/authorization.v1.AuthorizationService/CreateRole"
View Source
const OperationAuthorizationServiceDeleteApi = "/authorization.v1.AuthorizationService/DeleteApi"
View Source
const OperationAuthorizationServiceDeleteMenu = "/authorization.v1.AuthorizationService/DeleteMenu"
View Source
const OperationAuthorizationServiceDeleteRole = "/authorization.v1.AuthorizationService/DeleteRole"
View Source
const OperationAuthorizationServiceDeleteRoleForUser = "/authorization.v1.AuthorizationService/DeleteRoleForUser"
View Source
const OperationAuthorizationServiceDeleteRolesForUser = "/authorization.v1.AuthorizationService/DeleteRolesForUser"
View Source
const OperationAuthorizationServiceGetApiList = "/authorization.v1.AuthorizationService/GetApiList"
View Source
const OperationAuthorizationServiceGetApiListAll = "/authorization.v1.AuthorizationService/GetApiListAll"
View Source
const OperationAuthorizationServiceGetMenuAll = "/authorization.v1.AuthorizationService/GetMenuAll"
View Source
const OperationAuthorizationServiceGetMenuTree = "/authorization.v1.AuthorizationService/GetMenuTree"
View Source
const OperationAuthorizationServiceGetPolicies = "/authorization.v1.AuthorizationService/GetPolicies"
View Source
const OperationAuthorizationServiceGetRoleAll = "/authorization.v1.AuthorizationService/GetRoleAll"
View Source
const OperationAuthorizationServiceGetRoleMenu = "/authorization.v1.AuthorizationService/GetRoleMenu"
View Source
const OperationAuthorizationServiceGetRoleMenuBtn = "/authorization.v1.AuthorizationService/GetRoleMenuBtn"
View Source
const OperationAuthorizationServiceGetRoleMenuTree = "/authorization.v1.AuthorizationService/GetRoleMenuTree"
View Source
const OperationAuthorizationServiceGetRolesForUser = "/authorization.v1.AuthorizationService/GetRolesForUser"
View Source
const OperationAuthorizationServiceGetUsersForRole = "/authorization.v1.AuthorizationService/GetUsersForRole"
View Source
const OperationAuthorizationServiceSaveRoleMenu = "/authorization.v1.AuthorizationService/SaveRoleMenu"
View Source
const OperationAuthorizationServiceSaveRoleMenuBtn = "/authorization.v1.AuthorizationService/SaveRoleMenuBtn"
View Source
const OperationAuthorizationServiceSetRolesForUser = "/authorization.v1.AuthorizationService/SetRolesForUser"
View Source
const OperationAuthorizationServiceUpdateApi = "/authorization.v1.AuthorizationService/UpdateApi"
View Source
const OperationAuthorizationServiceUpdateMenu = "/authorization.v1.AuthorizationService/UpdateMenu"
View Source
const OperationAuthorizationServiceUpdatePolicies = "/authorization.v1.AuthorizationService/UpdatePolicies"
View Source
const OperationAuthorizationServiceUpdateRole = "/authorization.v1.AuthorizationService/UpdateRole"

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0: "RECORD_NOT_FOUND",
		1: "RECORD_ALREADY_EXISTS",
		2: "BAD_REQUEST",
		3: "SYSTEM_ERROR",
	}
	ErrorReason_value = map[string]int32{
		"RECORD_NOT_FOUND":      0,
		"RECORD_ALREADY_EXISTS": 1,
		"BAD_REQUEST":           2,
		"SYSTEM_ERROR":          3,
	}
)

Enum value maps for ErrorReason.

View Source
var AuthorizationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "authorization.v1.AuthorizationService",
	HandlerType: (*AuthorizationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CheckAuthorization",
			Handler:    _AuthorizationService_CheckAuthorization_Handler,
		},
		{
			MethodName: "GetRoleAll",
			Handler:    _AuthorizationService_GetRoleAll_Handler,
		},
		{
			MethodName: "CreateRole",
			Handler:    _AuthorizationService_CreateRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _AuthorizationService_UpdateRole_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _AuthorizationService_DeleteRole_Handler,
		},
		{
			MethodName: "GetRolesForUser",
			Handler:    _AuthorizationService_GetRolesForUser_Handler,
		},
		{
			MethodName: "GetUsersForRole",
			Handler:    _AuthorizationService_GetUsersForRole_Handler,
		},
		{
			MethodName: "SetRolesForUser",
			Handler:    _AuthorizationService_SetRolesForUser_Handler,
		},
		{
			MethodName: "DeleteRoleForUser",
			Handler:    _AuthorizationService_DeleteRoleForUser_Handler,
		},
		{
			MethodName: "DeleteRolesForUser",
			Handler:    _AuthorizationService_DeleteRolesForUser_Handler,
		},
		{
			MethodName: "GetPolicies",
			Handler:    _AuthorizationService_GetPolicies_Handler,
		},
		{
			MethodName: "UpdatePolicies",
			Handler:    _AuthorizationService_UpdatePolicies_Handler,
		},
		{
			MethodName: "GetApiListAll",
			Handler:    _AuthorizationService_GetApiListAll_Handler,
		},
		{
			MethodName: "GetApiList",
			Handler:    _AuthorizationService_GetApiList_Handler,
		},
		{
			MethodName: "CreateApi",
			Handler:    _AuthorizationService_CreateApi_Handler,
		},
		{
			MethodName: "UpdateApi",
			Handler:    _AuthorizationService_UpdateApi_Handler,
		},
		{
			MethodName: "DeleteApi",
			Handler:    _AuthorizationService_DeleteApi_Handler,
		},
		{
			MethodName: "GetMenuAll",
			Handler:    _AuthorizationService_GetMenuAll_Handler,
		},
		{
			MethodName: "GetMenuTree",
			Handler:    _AuthorizationService_GetMenuTree_Handler,
		},
		{
			MethodName: "CreateMenu",
			Handler:    _AuthorizationService_CreateMenu_Handler,
		},
		{
			MethodName: "UpdateMenu",
			Handler:    _AuthorizationService_UpdateMenu_Handler,
		},
		{
			MethodName: "DeleteMenu",
			Handler:    _AuthorizationService_DeleteMenu_Handler,
		},
		{
			MethodName: "GetRoleMenuTree",
			Handler:    _AuthorizationService_GetRoleMenuTree_Handler,
		},
		{
			MethodName: "GetRoleMenu",
			Handler:    _AuthorizationService_GetRoleMenu_Handler,
		},
		{
			MethodName: "SaveRoleMenu",
			Handler:    _AuthorizationService_SaveRoleMenu_Handler,
		},
		{
			MethodName: "GetRoleMenuBtn",
			Handler:    _AuthorizationService_GetRoleMenuBtn_Handler,
		},
		{
			MethodName: "SaveRoleMenuBtn",
			Handler:    _AuthorizationService_SaveRoleMenuBtn_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "authorization/v1/authorization.proto",
}

AuthorizationService_ServiceDesc is the grpc.ServiceDesc for AuthorizationService 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_authorization_v1_authorization_proto protoreflect.FileDescriptor
View Source
var File_authorization_v1_error_reason_proto protoreflect.FileDescriptor

Functions

func ErrorBadRequest

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

func ErrorRecordAlreadyExists

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

func ErrorRecordNotFound

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

func ErrorSystemError

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

func IsBadRequest

func IsBadRequest(err error) bool

func IsRecordAlreadyExists

func IsRecordAlreadyExists(err error) bool

func IsRecordNotFound

func IsRecordNotFound(err error) bool

func IsSystemError

func IsSystemError(err error) bool

func RegisterAuthorizationServiceHTTPServer

func RegisterAuthorizationServiceHTTPServer(s *http.Server, srv AuthorizationServiceHTTPServer)

func RegisterAuthorizationServiceServer

func RegisterAuthorizationServiceServer(s grpc.ServiceRegistrar, srv AuthorizationServiceServer)

Types

type Api

type Api struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 分组
	Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
	// 请求路径
	Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
	// 创建时间
	CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// 域
	Domain string `protobuf:"bytes,8,opt,name=domain,proto3" json:"domain,omitempty"`
	// contains filtered or unexported fields
}

响应 - API信息

func (*Api) Descriptor deprecated

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

Deprecated: Use Api.ProtoReflect.Descriptor instead.

func (*Api) GetCreatedAt

func (x *Api) GetCreatedAt() string

func (*Api) GetDomain

func (x *Api) GetDomain() string

func (*Api) GetGroup

func (x *Api) GetGroup() string

func (*Api) GetId

func (x *Api) GetId() int64

func (*Api) GetMethod

func (x *Api) GetMethod() string

func (*Api) GetName

func (x *Api) GetName() string

func (*Api) GetPath

func (x *Api) GetPath() string

func (*Api) GetUpdatedAt

func (x *Api) GetUpdatedAt() string

func (*Api) ProtoMessage

func (*Api) ProtoMessage()

func (*Api) ProtoReflect

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

func (*Api) Reset

func (x *Api) Reset()

func (*Api) String

func (x *Api) String() string

func (*Api) Validate

func (m *Api) Validate() error

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

func (m *Api) ValidateAll() error

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

type ApiMultiError

type ApiMultiError []error

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

func (ApiMultiError) AllErrors

func (m ApiMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ApiMultiError) Error

func (m ApiMultiError) Error() string

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

type ApiValidationError

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

ApiValidationError is the validation error returned by Api.Validate if the designated constraints aren't met.

func (ApiValidationError) Cause

func (e ApiValidationError) Cause() error

Cause function returns cause value.

func (ApiValidationError) Error

func (e ApiValidationError) Error() string

Error satisfies the builtin error interface

func (ApiValidationError) ErrorName

func (e ApiValidationError) ErrorName() string

ErrorName returns error name.

func (ApiValidationError) Field

func (e ApiValidationError) Field() string

Field function returns field value.

func (ApiValidationError) Key

func (e ApiValidationError) Key() bool

Key function returns key value.

func (ApiValidationError) Reason

func (e ApiValidationError) Reason() string

Reason function returns reason value.

type AuthorizationServiceClient

type AuthorizationServiceClient interface {
	// 检查权限
	CheckAuthorization(ctx context.Context, in *CheckAuthorizationReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 全部角色
	GetRoleAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetRoleAllRes, error)
	// 角色创建
	CreateRole(ctx context.Context, in *CreateRoleReq, opts ...grpc.CallOption) (*Role, error)
	// 角色更新
	UpdateRole(ctx context.Context, in *UpdateRoleReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 角色删除
	DeleteRole(ctx context.Context, in *DeleteRoleReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 用户角色 - 列表
	GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...grpc.CallOption) (*GetRolesForUserRes, error)
	// 角色用户 - 列表
	GetUsersForRole(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetUsersForRoleRes, error)
	// 用户角色 - 设置
	SetRolesForUser(ctx context.Context, in *SetRolesForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 用户角色 - 删除(单个)
	DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 用户角色 - 删除(全部)
	DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 角色权限策略 - 列表
	GetPolicies(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetPoliciesRes, error)
	// 角色权限策略 - 设置
	UpdatePolicies(ctx context.Context, in *UpdatePoliciesReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Api列表
	GetApiListAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetApiListAllRes, error)
	// Api列表
	GetApiList(ctx context.Context, in *GetApiListReq, opts ...grpc.CallOption) (*GetApiListPageRes, error)
	// Api创建
	CreateApi(ctx context.Context, in *CreateApiReq, opts ...grpc.CallOption) (*Api, error)
	// Api更新
	UpdateApi(ctx context.Context, in *UpdateApiReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Api删除
	DeleteApi(ctx context.Context, in *DeleteApiReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 菜单列表 - 全部
	GetMenuAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeRes, error)
	// 菜单列表 - 树状结构
	GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeRes, error)
	// 菜单 - 创建
	CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...grpc.CallOption) (*Menu, error)
	// 菜单 - 更新
	UpdateMenu(ctx context.Context, in *UpdateMenuReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 菜单 - 删除
	DeleteMenu(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 角色菜单 - 树状结构
	GetRoleMenuTree(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetMenuTreeRes, error)
	// 角色菜单 - 列表
	GetRoleMenu(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetMenuTreeRes, error)
	// 角色菜单 - 更新
	SaveRoleMenu(ctx context.Context, in *SaveRoleMenuReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 角色菜单按钮 - 列表
	GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...grpc.CallOption) (*GetRoleMenuBtnRes, error)
	// 角色菜单按钮 - 保存
	SaveRoleMenuBtn(ctx context.Context, in *SaveRoleMenuBtnReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AuthorizationServiceClient is the client API for AuthorizationService 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 AuthorizationServiceHTTPClient

type AuthorizationServiceHTTPClient interface {
	CheckAuthorization(ctx context.Context, req *CheckAuthorizationReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	CreateApi(ctx context.Context, req *CreateApiReq, opts ...http.CallOption) (rsp *Api, err error)
	CreateMenu(ctx context.Context, req *CreateMenuReq, opts ...http.CallOption) (rsp *Menu, err error)
	CreateRole(ctx context.Context, req *CreateRoleReq, opts ...http.CallOption) (rsp *Role, err error)
	DeleteApi(ctx context.Context, req *DeleteApiReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteMenu(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteRole(ctx context.Context, req *DeleteRoleReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteRoleForUser(ctx context.Context, req *DeleteRoleForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteRolesForUser(ctx context.Context, req *DeleteRolesForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	GetApiList(ctx context.Context, req *GetApiListReq, opts ...http.CallOption) (rsp *GetApiListPageRes, err error)
	GetApiListAll(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetApiListAllRes, err error)
	GetMenuAll(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error)
	GetMenuTree(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error)
	GetPolicies(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetPoliciesRes, err error)
	GetRoleAll(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetRoleAllRes, err error)
	GetRoleMenu(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error)
	GetRoleMenuBtn(ctx context.Context, req *GetRoleMenuBtnReq, opts ...http.CallOption) (rsp *GetRoleMenuBtnRes, err error)
	GetRoleMenuTree(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error)
	GetRolesForUser(ctx context.Context, req *GetRolesForUserReq, opts ...http.CallOption) (rsp *GetRolesForUserRes, err error)
	GetUsersForRole(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetUsersForRoleRes, err error)
	SaveRoleMenu(ctx context.Context, req *SaveRoleMenuReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	SaveRoleMenuBtn(ctx context.Context, req *SaveRoleMenuBtnReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	SetRolesForUser(ctx context.Context, req *SetRolesForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateApi(ctx context.Context, req *UpdateApiReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateMenu(ctx context.Context, req *UpdateMenuReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdatePolicies(ctx context.Context, req *UpdatePoliciesReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateRole(ctx context.Context, req *UpdateRoleReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}

func NewAuthorizationServiceHTTPClient

func NewAuthorizationServiceHTTPClient(client *http.Client) AuthorizationServiceHTTPClient

type AuthorizationServiceHTTPClientImpl

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

func (*AuthorizationServiceHTTPClientImpl) CheckAuthorization

func (*AuthorizationServiceHTTPClientImpl) CreateApi

func (*AuthorizationServiceHTTPClientImpl) CreateMenu

func (*AuthorizationServiceHTTPClientImpl) CreateRole

func (*AuthorizationServiceHTTPClientImpl) DeleteApi

func (*AuthorizationServiceHTTPClientImpl) DeleteMenu

func (*AuthorizationServiceHTTPClientImpl) DeleteRole

func (*AuthorizationServiceHTTPClientImpl) DeleteRoleForUser

func (*AuthorizationServiceHTTPClientImpl) DeleteRolesForUser

func (*AuthorizationServiceHTTPClientImpl) GetApiList

func (*AuthorizationServiceHTTPClientImpl) GetApiListAll

func (*AuthorizationServiceHTTPClientImpl) GetMenuAll

func (*AuthorizationServiceHTTPClientImpl) GetMenuTree

func (*AuthorizationServiceHTTPClientImpl) GetPolicies

func (*AuthorizationServiceHTTPClientImpl) GetRoleAll

func (*AuthorizationServiceHTTPClientImpl) GetRoleMenu

func (*AuthorizationServiceHTTPClientImpl) GetRoleMenuBtn

func (*AuthorizationServiceHTTPClientImpl) GetRoleMenuTree

func (*AuthorizationServiceHTTPClientImpl) GetRolesForUser

func (*AuthorizationServiceHTTPClientImpl) GetUsersForRole

func (*AuthorizationServiceHTTPClientImpl) SaveRoleMenu

func (*AuthorizationServiceHTTPClientImpl) SaveRoleMenuBtn

func (*AuthorizationServiceHTTPClientImpl) SetRolesForUser

func (*AuthorizationServiceHTTPClientImpl) UpdateApi

func (*AuthorizationServiceHTTPClientImpl) UpdateMenu

func (*AuthorizationServiceHTTPClientImpl) UpdatePolicies

func (*AuthorizationServiceHTTPClientImpl) UpdateRole

type AuthorizationServiceHTTPServer

type AuthorizationServiceHTTPServer interface {
	CheckAuthorization(context.Context, *CheckAuthorizationReq) (*emptypb.Empty, error)
	CreateApi(context.Context, *CreateApiReq) (*Api, error)
	CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
	CreateRole(context.Context, *CreateRoleReq) (*Role, error)
	DeleteApi(context.Context, *DeleteApiReq) (*emptypb.Empty, error)
	DeleteMenu(context.Context, *IdReq) (*emptypb.Empty, error)
	DeleteRole(context.Context, *DeleteRoleReq) (*emptypb.Empty, error)
	DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error)
	DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error)
	GetApiList(context.Context, *GetApiListReq) (*GetApiListPageRes, error)
	GetApiListAll(context.Context, *emptypb.Empty) (*GetApiListAllRes, error)
	GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
	GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
	GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error)
	GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error)
	GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
	GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error)
	GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
	GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error)
	GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error)
	SaveRoleMenu(context.Context, *SaveRoleMenuReq) (*emptypb.Empty, error)
	SaveRoleMenuBtn(context.Context, *SaveRoleMenuBtnReq) (*emptypb.Empty, error)
	SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error)
	UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error)
	UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error)
	UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error)
	UpdateRole(context.Context, *UpdateRoleReq) (*emptypb.Empty, error)
}

type AuthorizationServiceServer

type AuthorizationServiceServer interface {
	// 检查权限
	CheckAuthorization(context.Context, *CheckAuthorizationReq) (*emptypb.Empty, error)
	// 全部角色
	GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error)
	// 角色创建
	CreateRole(context.Context, *CreateRoleReq) (*Role, error)
	// 角色更新
	UpdateRole(context.Context, *UpdateRoleReq) (*emptypb.Empty, error)
	// 角色删除
	DeleteRole(context.Context, *DeleteRoleReq) (*emptypb.Empty, error)
	// 用户角色 - 列表
	GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error)
	// 角色用户 - 列表
	GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error)
	// 用户角色 - 设置
	SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error)
	// 用户角色 - 删除(单个)
	DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error)
	// 用户角色 - 删除(全部)
	DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error)
	// 角色权限策略 - 列表
	GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error)
	// 角色权限策略 - 设置
	UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error)
	// Api列表
	GetApiListAll(context.Context, *emptypb.Empty) (*GetApiListAllRes, error)
	// Api列表
	GetApiList(context.Context, *GetApiListReq) (*GetApiListPageRes, error)
	// Api创建
	CreateApi(context.Context, *CreateApiReq) (*Api, error)
	// Api更新
	UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error)
	// Api删除
	DeleteApi(context.Context, *DeleteApiReq) (*emptypb.Empty, error)
	// 菜单列表 - 全部
	GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
	// 菜单列表 - 树状结构
	GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
	// 菜单 - 创建
	CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
	// 菜单 - 更新
	UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error)
	// 菜单 - 删除
	DeleteMenu(context.Context, *IdReq) (*emptypb.Empty, error)
	// 角色菜单 - 树状结构
	GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
	// 角色菜单 - 列表
	GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
	// 角色菜单 - 更新
	SaveRoleMenu(context.Context, *SaveRoleMenuReq) (*emptypb.Empty, error)
	// 角色菜单按钮 - 列表
	GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error)
	// 角色菜单按钮 - 保存
	SaveRoleMenuBtn(context.Context, *SaveRoleMenuBtnReq) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

AuthorizationServiceServer is the server API for AuthorizationService service. All implementations must embed UnimplementedAuthorizationServiceServer for forward compatibility

type CheckAuthorizationReq

type CheckAuthorizationReq struct {

	// 主题
	Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"`
	// 操作对象
	Obj string `protobuf:"bytes,2,opt,name=obj,proto3" json:"obj,omitempty"`
	// 操作行为
	Act string `protobuf:"bytes,3,opt,name=act,proto3" json:"act,omitempty"`
	// contains filtered or unexported fields
}

检查权限

func (*CheckAuthorizationReq) Descriptor deprecated

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

Deprecated: Use CheckAuthorizationReq.ProtoReflect.Descriptor instead.

func (*CheckAuthorizationReq) GetAct

func (x *CheckAuthorizationReq) GetAct() string

func (*CheckAuthorizationReq) GetObj

func (x *CheckAuthorizationReq) GetObj() string

func (*CheckAuthorizationReq) GetSub

func (x *CheckAuthorizationReq) GetSub() string

func (*CheckAuthorizationReq) ProtoMessage

func (*CheckAuthorizationReq) ProtoMessage()

func (*CheckAuthorizationReq) ProtoReflect

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

func (*CheckAuthorizationReq) Reset

func (x *CheckAuthorizationReq) Reset()

func (*CheckAuthorizationReq) String

func (x *CheckAuthorizationReq) String() string

func (*CheckAuthorizationReq) Validate

func (m *CheckAuthorizationReq) Validate() error

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

func (m *CheckAuthorizationReq) ValidateAll() error

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

type CheckAuthorizationReqMultiError

type CheckAuthorizationReqMultiError []error

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

func (CheckAuthorizationReqMultiError) AllErrors

func (m CheckAuthorizationReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CheckAuthorizationReqMultiError) Error

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

type CheckAuthorizationReqValidationError

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

CheckAuthorizationReqValidationError is the validation error returned by CheckAuthorizationReq.Validate if the designated constraints aren't met.

func (CheckAuthorizationReqValidationError) Cause

Cause function returns cause value.

func (CheckAuthorizationReqValidationError) Error

Error satisfies the builtin error interface

func (CheckAuthorizationReqValidationError) ErrorName

ErrorName returns error name.

func (CheckAuthorizationReqValidationError) Field

Field function returns field value.

func (CheckAuthorizationReqValidationError) Key

Key function returns key value.

func (CheckAuthorizationReqValidationError) Reason

Reason function returns reason value.

type CreateApiReq

type CreateApiReq struct {

	// 名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 分组
	Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// 请求路径
	Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

请求 - API创建

func (*CreateApiReq) Descriptor deprecated

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

Deprecated: Use CreateApiReq.ProtoReflect.Descriptor instead.

func (*CreateApiReq) GetGroup

func (x *CreateApiReq) GetGroup() string

func (*CreateApiReq) GetMethod

func (x *CreateApiReq) GetMethod() string

func (*CreateApiReq) GetName

func (x *CreateApiReq) GetName() string

func (*CreateApiReq) GetPath

func (x *CreateApiReq) GetPath() string

func (*CreateApiReq) ProtoMessage

func (*CreateApiReq) ProtoMessage()

func (*CreateApiReq) ProtoReflect

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

func (*CreateApiReq) Reset

func (x *CreateApiReq) Reset()

func (*CreateApiReq) String

func (x *CreateApiReq) String() string

func (*CreateApiReq) Validate

func (m *CreateApiReq) Validate() error

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

func (m *CreateApiReq) ValidateAll() error

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

type CreateApiReqMultiError

type CreateApiReqMultiError []error

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

func (CreateApiReqMultiError) AllErrors

func (m CreateApiReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateApiReqMultiError) Error

func (m CreateApiReqMultiError) Error() string

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

type CreateApiReqValidationError

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

CreateApiReqValidationError is the validation error returned by CreateApiReq.Validate if the designated constraints aren't met.

func (CreateApiReqValidationError) Cause

Cause function returns cause value.

func (CreateApiReqValidationError) Error

Error satisfies the builtin error interface

func (CreateApiReqValidationError) ErrorName

func (e CreateApiReqValidationError) ErrorName() string

ErrorName returns error name.

func (CreateApiReqValidationError) Field

Field function returns field value.

func (CreateApiReqValidationError) Key

Key function returns key value.

func (CreateApiReqValidationError) Reason

Reason function returns reason value.

type CreateMenuReq

type CreateMenuReq struct {

	// 父级id
	ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// 前端路径
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// 菜单名
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// 是否隐藏
	Hidden bool `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"`
	// 前端文件路径
	Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"`
	// 排序
	Sort int64 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"`
	// 页面名称
	Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
	// 菜单图标
	Icon string `protobuf:"bytes,9,opt,name=icon,proto3" json:"icon,omitempty"`
	// 菜单按钮列表
	MenuBtns []*MenuBtn `protobuf:"bytes,13,rep,name=menuBtns,proto3" json:"menuBtns,omitempty"`
	// 父级id字符串 英文逗号分割
	ParentIds string `protobuf:"bytes,14,opt,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"`
	// contains filtered or unexported fields
}

请求 - 菜单创建

func (*CreateMenuReq) Descriptor deprecated

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

Deprecated: Use CreateMenuReq.ProtoReflect.Descriptor instead.

func (*CreateMenuReq) GetComponent

func (x *CreateMenuReq) GetComponent() string

func (*CreateMenuReq) GetHidden

func (x *CreateMenuReq) GetHidden() bool

func (*CreateMenuReq) GetIcon

func (x *CreateMenuReq) GetIcon() string

func (*CreateMenuReq) GetMenuBtns

func (x *CreateMenuReq) GetMenuBtns() []*MenuBtn

func (*CreateMenuReq) GetName

func (x *CreateMenuReq) GetName() string

func (*CreateMenuReq) GetParentId

func (x *CreateMenuReq) GetParentId() int64

func (*CreateMenuReq) GetParentIds

func (x *CreateMenuReq) GetParentIds() string

func (*CreateMenuReq) GetPath

func (x *CreateMenuReq) GetPath() string

func (*CreateMenuReq) GetSort

func (x *CreateMenuReq) GetSort() int64

func (*CreateMenuReq) GetTitle

func (x *CreateMenuReq) GetTitle() string

func (*CreateMenuReq) ProtoMessage

func (*CreateMenuReq) ProtoMessage()

func (*CreateMenuReq) ProtoReflect

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

func (*CreateMenuReq) Reset

func (x *CreateMenuReq) Reset()

func (*CreateMenuReq) String

func (x *CreateMenuReq) String() string

func (*CreateMenuReq) Validate

func (m *CreateMenuReq) Validate() error

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

func (m *CreateMenuReq) ValidateAll() error

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

type CreateMenuReqMultiError

type CreateMenuReqMultiError []error

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

func (CreateMenuReqMultiError) AllErrors

func (m CreateMenuReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateMenuReqMultiError) Error

func (m CreateMenuReqMultiError) Error() string

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

type CreateMenuReqValidationError

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

CreateMenuReqValidationError is the validation error returned by CreateMenuReq.Validate if the designated constraints aren't met.

func (CreateMenuReqValidationError) Cause

Cause function returns cause value.

func (CreateMenuReqValidationError) Error

Error satisfies the builtin error interface

func (CreateMenuReqValidationError) ErrorName

func (e CreateMenuReqValidationError) ErrorName() string

ErrorName returns error name.

func (CreateMenuReqValidationError) Field

Field function returns field value.

func (CreateMenuReqValidationError) Key

Key function returns key value.

func (CreateMenuReqValidationError) Reason

Reason function returns reason value.

type CreateRoleReq

type CreateRoleReq struct {

	// 名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色创建

func (*CreateRoleReq) Descriptor deprecated

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

Deprecated: Use CreateRoleReq.ProtoReflect.Descriptor instead.

func (*CreateRoleReq) GetName

func (x *CreateRoleReq) GetName() string

func (*CreateRoleReq) ProtoMessage

func (*CreateRoleReq) ProtoMessage()

func (*CreateRoleReq) ProtoReflect

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

func (*CreateRoleReq) Reset

func (x *CreateRoleReq) Reset()

func (*CreateRoleReq) String

func (x *CreateRoleReq) String() string

func (*CreateRoleReq) Validate

func (m *CreateRoleReq) Validate() error

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

func (m *CreateRoleReq) ValidateAll() error

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

type CreateRoleReqMultiError

type CreateRoleReqMultiError []error

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

func (CreateRoleReqMultiError) AllErrors

func (m CreateRoleReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRoleReqMultiError) Error

func (m CreateRoleReqMultiError) Error() string

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

type CreateRoleReqValidationError

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

CreateRoleReqValidationError is the validation error returned by CreateRoleReq.Validate if the designated constraints aren't met.

func (CreateRoleReqValidationError) Cause

Cause function returns cause value.

func (CreateRoleReqValidationError) Error

Error satisfies the builtin error interface

func (CreateRoleReqValidationError) ErrorName

func (e CreateRoleReqValidationError) ErrorName() string

ErrorName returns error name.

func (CreateRoleReqValidationError) Field

Field function returns field value.

func (CreateRoleReqValidationError) Key

Key function returns key value.

func (CreateRoleReqValidationError) Reason

Reason function returns reason value.

type DeleteApiReq

type DeleteApiReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

请求 - API删除

func (*DeleteApiReq) Descriptor deprecated

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

Deprecated: Use DeleteApiReq.ProtoReflect.Descriptor instead.

func (*DeleteApiReq) GetId

func (x *DeleteApiReq) GetId() int64

func (*DeleteApiReq) ProtoMessage

func (*DeleteApiReq) ProtoMessage()

func (*DeleteApiReq) ProtoReflect

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

func (*DeleteApiReq) Reset

func (x *DeleteApiReq) Reset()

func (*DeleteApiReq) String

func (x *DeleteApiReq) String() string

func (*DeleteApiReq) Validate

func (m *DeleteApiReq) Validate() error

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

func (m *DeleteApiReq) ValidateAll() error

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

type DeleteApiReqMultiError

type DeleteApiReqMultiError []error

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

func (DeleteApiReqMultiError) AllErrors

func (m DeleteApiReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteApiReqMultiError) Error

func (m DeleteApiReqMultiError) Error() string

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

type DeleteApiReqValidationError

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

DeleteApiReqValidationError is the validation error returned by DeleteApiReq.Validate if the designated constraints aren't met.

func (DeleteApiReqValidationError) Cause

Cause function returns cause value.

func (DeleteApiReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteApiReqValidationError) ErrorName

func (e DeleteApiReqValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteApiReqValidationError) Field

Field function returns field value.

func (DeleteApiReqValidationError) Key

Key function returns key value.

func (DeleteApiReqValidationError) Reason

Reason function returns reason value.

type DeleteRoleForUserReq

type DeleteRoleForUserReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// 角色名
	Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

请求 - 删除用户(单个)角色

func (*DeleteRoleForUserReq) Descriptor deprecated

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

Deprecated: Use DeleteRoleForUserReq.ProtoReflect.Descriptor instead.

func (*DeleteRoleForUserReq) GetRole

func (x *DeleteRoleForUserReq) GetRole() string

func (*DeleteRoleForUserReq) GetUsername

func (x *DeleteRoleForUserReq) GetUsername() string

func (*DeleteRoleForUserReq) ProtoMessage

func (*DeleteRoleForUserReq) ProtoMessage()

func (*DeleteRoleForUserReq) ProtoReflect

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

func (*DeleteRoleForUserReq) Reset

func (x *DeleteRoleForUserReq) Reset()

func (*DeleteRoleForUserReq) String

func (x *DeleteRoleForUserReq) String() string

func (*DeleteRoleForUserReq) Validate

func (m *DeleteRoleForUserReq) Validate() error

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

func (m *DeleteRoleForUserReq) ValidateAll() error

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

type DeleteRoleForUserReqMultiError

type DeleteRoleForUserReqMultiError []error

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

func (DeleteRoleForUserReqMultiError) AllErrors

func (m DeleteRoleForUserReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRoleForUserReqMultiError) Error

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

type DeleteRoleForUserReqValidationError

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

DeleteRoleForUserReqValidationError is the validation error returned by DeleteRoleForUserReq.Validate if the designated constraints aren't met.

func (DeleteRoleForUserReqValidationError) Cause

Cause function returns cause value.

func (DeleteRoleForUserReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleForUserReqValidationError) ErrorName

ErrorName returns error name.

func (DeleteRoleForUserReqValidationError) Field

Field function returns field value.

func (DeleteRoleForUserReqValidationError) Key

Key function returns key value.

func (DeleteRoleForUserReqValidationError) Reason

Reason function returns reason value.

type DeleteRoleReq

type DeleteRoleReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色删除

func (*DeleteRoleReq) Descriptor deprecated

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

Deprecated: Use DeleteRoleReq.ProtoReflect.Descriptor instead.

func (*DeleteRoleReq) GetId

func (x *DeleteRoleReq) GetId() int64

func (*DeleteRoleReq) ProtoMessage

func (*DeleteRoleReq) ProtoMessage()

func (*DeleteRoleReq) ProtoReflect

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

func (*DeleteRoleReq) Reset

func (x *DeleteRoleReq) Reset()

func (*DeleteRoleReq) String

func (x *DeleteRoleReq) String() string

func (*DeleteRoleReq) Validate

func (m *DeleteRoleReq) Validate() error

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

func (m *DeleteRoleReq) ValidateAll() error

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

type DeleteRoleReqMultiError

type DeleteRoleReqMultiError []error

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

func (DeleteRoleReqMultiError) AllErrors

func (m DeleteRoleReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRoleReqMultiError) Error

func (m DeleteRoleReqMultiError) Error() string

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

type DeleteRoleReqValidationError

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

DeleteRoleReqValidationError is the validation error returned by DeleteRoleReq.Validate if the designated constraints aren't met.

func (DeleteRoleReqValidationError) Cause

Cause function returns cause value.

func (DeleteRoleReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleReqValidationError) ErrorName

func (e DeleteRoleReqValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteRoleReqValidationError) Field

Field function returns field value.

func (DeleteRoleReqValidationError) Key

Key function returns key value.

func (DeleteRoleReqValidationError) Reason

Reason function returns reason value.

type DeleteRolesForUserReq

type DeleteRolesForUserReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

请求 - 删除用户(全部)角色

func (*DeleteRolesForUserReq) Descriptor deprecated

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

Deprecated: Use DeleteRolesForUserReq.ProtoReflect.Descriptor instead.

func (*DeleteRolesForUserReq) GetUsername

func (x *DeleteRolesForUserReq) GetUsername() string

func (*DeleteRolesForUserReq) ProtoMessage

func (*DeleteRolesForUserReq) ProtoMessage()

func (*DeleteRolesForUserReq) ProtoReflect

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

func (*DeleteRolesForUserReq) Reset

func (x *DeleteRolesForUserReq) Reset()

func (*DeleteRolesForUserReq) String

func (x *DeleteRolesForUserReq) String() string

func (*DeleteRolesForUserReq) Validate

func (m *DeleteRolesForUserReq) Validate() error

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

func (m *DeleteRolesForUserReq) ValidateAll() error

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

type DeleteRolesForUserReqMultiError

type DeleteRolesForUserReqMultiError []error

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

func (DeleteRolesForUserReqMultiError) AllErrors

func (m DeleteRolesForUserReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRolesForUserReqMultiError) Error

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

type DeleteRolesForUserReqValidationError

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

DeleteRolesForUserReqValidationError is the validation error returned by DeleteRolesForUserReq.Validate if the designated constraints aren't met.

func (DeleteRolesForUserReqValidationError) Cause

Cause function returns cause value.

func (DeleteRolesForUserReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteRolesForUserReqValidationError) ErrorName

ErrorName returns error name.

func (DeleteRolesForUserReqValidationError) Field

Field function returns field value.

func (DeleteRolesForUserReqValidationError) Key

Key function returns key value.

func (DeleteRolesForUserReqValidationError) Reason

Reason function returns reason value.

type ErrorReason

type ErrorReason int32
const (
	ErrorReason_RECORD_NOT_FOUND      ErrorReason = 0
	ErrorReason_RECORD_ALREADY_EXISTS ErrorReason = 1
	ErrorReason_BAD_REQUEST           ErrorReason = 2
	ErrorReason_SYSTEM_ERROR          ErrorReason = 3
)

func (ErrorReason) Descriptor

func (ErrorReason) Enum

func (x ErrorReason) Enum() *ErrorReason

func (ErrorReason) EnumDescriptor deprecated

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

Deprecated: Use ErrorReason.Descriptor instead.

func (ErrorReason) Number

func (x ErrorReason) Number() protoreflect.EnumNumber

func (ErrorReason) String

func (x ErrorReason) String() string

func (ErrorReason) Type

type GetApiListAllRes

type GetApiListAllRes struct {

	// 列表
	List []*Api `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - API列表(所有)

func (*GetApiListAllRes) Descriptor deprecated

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

Deprecated: Use GetApiListAllRes.ProtoReflect.Descriptor instead.

func (*GetApiListAllRes) GetList

func (x *GetApiListAllRes) GetList() []*Api

func (*GetApiListAllRes) ProtoMessage

func (*GetApiListAllRes) ProtoMessage()

func (*GetApiListAllRes) ProtoReflect

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

func (*GetApiListAllRes) Reset

func (x *GetApiListAllRes) Reset()

func (*GetApiListAllRes) String

func (x *GetApiListAllRes) String() string

func (*GetApiListAllRes) Validate

func (m *GetApiListAllRes) Validate() error

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

func (m *GetApiListAllRes) ValidateAll() error

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

type GetApiListAllResMultiError

type GetApiListAllResMultiError []error

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

func (GetApiListAllResMultiError) AllErrors

func (m GetApiListAllResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetApiListAllResMultiError) Error

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

type GetApiListAllResValidationError

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

GetApiListAllResValidationError is the validation error returned by GetApiListAllRes.Validate if the designated constraints aren't met.

func (GetApiListAllResValidationError) Cause

Cause function returns cause value.

func (GetApiListAllResValidationError) Error

Error satisfies the builtin error interface

func (GetApiListAllResValidationError) ErrorName

ErrorName returns error name.

func (GetApiListAllResValidationError) Field

Field function returns field value.

func (GetApiListAllResValidationError) Key

Key function returns key value.

func (GetApiListAllResValidationError) Reason

Reason function returns reason value.

type GetApiListPageRes

type GetApiListPageRes struct {

	// 总数
	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// 列表
	List []*Api `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - API分页

func (*GetApiListPageRes) Descriptor deprecated

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

Deprecated: Use GetApiListPageRes.ProtoReflect.Descriptor instead.

func (*GetApiListPageRes) GetList

func (x *GetApiListPageRes) GetList() []*Api

func (*GetApiListPageRes) GetTotal

func (x *GetApiListPageRes) GetTotal() int64

func (*GetApiListPageRes) ProtoMessage

func (*GetApiListPageRes) ProtoMessage()

func (*GetApiListPageRes) ProtoReflect

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

func (*GetApiListPageRes) Reset

func (x *GetApiListPageRes) Reset()

func (*GetApiListPageRes) String

func (x *GetApiListPageRes) String() string

func (*GetApiListPageRes) Validate

func (m *GetApiListPageRes) Validate() error

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

func (m *GetApiListPageRes) ValidateAll() error

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

type GetApiListPageResMultiError

type GetApiListPageResMultiError []error

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

func (GetApiListPageResMultiError) AllErrors

func (m GetApiListPageResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetApiListPageResMultiError) Error

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

type GetApiListPageResValidationError

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

GetApiListPageResValidationError is the validation error returned by GetApiListPageRes.Validate if the designated constraints aren't met.

func (GetApiListPageResValidationError) Cause

Cause function returns cause value.

func (GetApiListPageResValidationError) Error

Error satisfies the builtin error interface

func (GetApiListPageResValidationError) ErrorName

ErrorName returns error name.

func (GetApiListPageResValidationError) Field

Field function returns field value.

func (GetApiListPageResValidationError) Key

Key function returns key value.

func (GetApiListPageResValidationError) Reason

Reason function returns reason value.

type GetApiListReq

type GetApiListReq struct {

	// 主键id
	Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	// 页记录数
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// 名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// 分组
	Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"`
	// 请求路径
	Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

请求 - API分页列表

func (*GetApiListReq) Descriptor deprecated

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

Deprecated: Use GetApiListReq.ProtoReflect.Descriptor instead.

func (*GetApiListReq) GetGroup

func (x *GetApiListReq) GetGroup() string

func (*GetApiListReq) GetMethod

func (x *GetApiListReq) GetMethod() string

func (*GetApiListReq) GetName

func (x *GetApiListReq) GetName() string

func (*GetApiListReq) GetPage

func (x *GetApiListReq) GetPage() int64

func (*GetApiListReq) GetPageSize

func (x *GetApiListReq) GetPageSize() int64

func (*GetApiListReq) GetPath

func (x *GetApiListReq) GetPath() string

func (*GetApiListReq) ProtoMessage

func (*GetApiListReq) ProtoMessage()

func (*GetApiListReq) ProtoReflect

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

func (*GetApiListReq) Reset

func (x *GetApiListReq) Reset()

func (*GetApiListReq) String

func (x *GetApiListReq) String() string

func (*GetApiListReq) Validate

func (m *GetApiListReq) Validate() error

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

func (m *GetApiListReq) ValidateAll() error

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

type GetApiListReqMultiError

type GetApiListReqMultiError []error

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

func (GetApiListReqMultiError) AllErrors

func (m GetApiListReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetApiListReqMultiError) Error

func (m GetApiListReqMultiError) Error() string

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

type GetApiListReqValidationError

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

GetApiListReqValidationError is the validation error returned by GetApiListReq.Validate if the designated constraints aren't met.

func (GetApiListReqValidationError) Cause

Cause function returns cause value.

func (GetApiListReqValidationError) Error

Error satisfies the builtin error interface

func (GetApiListReqValidationError) ErrorName

func (e GetApiListReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetApiListReqValidationError) Field

Field function returns field value.

func (GetApiListReqValidationError) Key

Key function returns key value.

func (GetApiListReqValidationError) Reason

Reason function returns reason value.

type GetMenuTreeRes

type GetMenuTreeRes struct {

	// 菜单列表
	List []*Menu `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - 菜单树列表

func (*GetMenuTreeRes) Descriptor deprecated

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

Deprecated: Use GetMenuTreeRes.ProtoReflect.Descriptor instead.

func (*GetMenuTreeRes) GetList

func (x *GetMenuTreeRes) GetList() []*Menu

func (*GetMenuTreeRes) ProtoMessage

func (*GetMenuTreeRes) ProtoMessage()

func (*GetMenuTreeRes) ProtoReflect

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

func (*GetMenuTreeRes) Reset

func (x *GetMenuTreeRes) Reset()

func (*GetMenuTreeRes) String

func (x *GetMenuTreeRes) String() string

func (*GetMenuTreeRes) Validate

func (m *GetMenuTreeRes) Validate() error

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

func (m *GetMenuTreeRes) ValidateAll() error

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

type GetMenuTreeResMultiError

type GetMenuTreeResMultiError []error

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

func (GetMenuTreeResMultiError) AllErrors

func (m GetMenuTreeResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetMenuTreeResMultiError) Error

func (m GetMenuTreeResMultiError) Error() string

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

type GetMenuTreeResValidationError

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

GetMenuTreeResValidationError is the validation error returned by GetMenuTreeRes.Validate if the designated constraints aren't met.

func (GetMenuTreeResValidationError) Cause

Cause function returns cause value.

func (GetMenuTreeResValidationError) Error

Error satisfies the builtin error interface

func (GetMenuTreeResValidationError) ErrorName

func (e GetMenuTreeResValidationError) ErrorName() string

ErrorName returns error name.

func (GetMenuTreeResValidationError) Field

Field function returns field value.

func (GetMenuTreeResValidationError) Key

Key function returns key value.

func (GetMenuTreeResValidationError) Reason

Reason function returns reason value.

type GetPoliciesRes

type GetPoliciesRes struct {
	PolicyRules []*PolicyRules `protobuf:"bytes,1,rep,name=policyRules,proto3" json:"policyRules,omitempty"`
	// contains filtered or unexported fields
}

响应 - 权限策略列表

func (*GetPoliciesRes) Descriptor deprecated

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

Deprecated: Use GetPoliciesRes.ProtoReflect.Descriptor instead.

func (*GetPoliciesRes) GetPolicyRules

func (x *GetPoliciesRes) GetPolicyRules() []*PolicyRules

func (*GetPoliciesRes) ProtoMessage

func (*GetPoliciesRes) ProtoMessage()

func (*GetPoliciesRes) ProtoReflect

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

func (*GetPoliciesRes) Reset

func (x *GetPoliciesRes) Reset()

func (*GetPoliciesRes) String

func (x *GetPoliciesRes) String() string

func (*GetPoliciesRes) Validate

func (m *GetPoliciesRes) Validate() error

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

func (m *GetPoliciesRes) ValidateAll() error

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

type GetPoliciesResMultiError

type GetPoliciesResMultiError []error

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

func (GetPoliciesResMultiError) AllErrors

func (m GetPoliciesResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetPoliciesResMultiError) Error

func (m GetPoliciesResMultiError) Error() string

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

type GetPoliciesResValidationError

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

GetPoliciesResValidationError is the validation error returned by GetPoliciesRes.Validate if the designated constraints aren't met.

func (GetPoliciesResValidationError) Cause

Cause function returns cause value.

func (GetPoliciesResValidationError) Error

Error satisfies the builtin error interface

func (GetPoliciesResValidationError) ErrorName

func (e GetPoliciesResValidationError) ErrorName() string

ErrorName returns error name.

func (GetPoliciesResValidationError) Field

Field function returns field value.

func (GetPoliciesResValidationError) Key

Key function returns key value.

func (GetPoliciesResValidationError) Reason

Reason function returns reason value.

type GetRoleAllRes

type GetRoleAllRes struct {

	// 列表
	List []*Role `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - 角色列表(所有)

func (*GetRoleAllRes) Descriptor deprecated

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

Deprecated: Use GetRoleAllRes.ProtoReflect.Descriptor instead.

func (*GetRoleAllRes) GetList

func (x *GetRoleAllRes) GetList() []*Role

func (*GetRoleAllRes) ProtoMessage

func (*GetRoleAllRes) ProtoMessage()

func (*GetRoleAllRes) ProtoReflect

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

func (*GetRoleAllRes) Reset

func (x *GetRoleAllRes) Reset()

func (*GetRoleAllRes) String

func (x *GetRoleAllRes) String() string

func (*GetRoleAllRes) Validate

func (m *GetRoleAllRes) Validate() error

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

func (m *GetRoleAllRes) ValidateAll() error

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

type GetRoleAllResMultiError

type GetRoleAllResMultiError []error

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

func (GetRoleAllResMultiError) AllErrors

func (m GetRoleAllResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleAllResMultiError) Error

func (m GetRoleAllResMultiError) Error() string

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

type GetRoleAllResValidationError

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

GetRoleAllResValidationError is the validation error returned by GetRoleAllRes.Validate if the designated constraints aren't met.

func (GetRoleAllResValidationError) Cause

Cause function returns cause value.

func (GetRoleAllResValidationError) Error

Error satisfies the builtin error interface

func (GetRoleAllResValidationError) ErrorName

func (e GetRoleAllResValidationError) ErrorName() string

ErrorName returns error name.

func (GetRoleAllResValidationError) Field

Field function returns field value.

func (GetRoleAllResValidationError) Key

Key function returns key value.

func (GetRoleAllResValidationError) Reason

Reason function returns reason value.

type GetRoleListPageRes

type GetRoleListPageRes struct {

	// 总数
	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// 列表
	List []*Role `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - 角色分页

func (*GetRoleListPageRes) Descriptor deprecated

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

Deprecated: Use GetRoleListPageRes.ProtoReflect.Descriptor instead.

func (*GetRoleListPageRes) GetList

func (x *GetRoleListPageRes) GetList() []*Role

func (*GetRoleListPageRes) GetTotal

func (x *GetRoleListPageRes) GetTotal() int64

func (*GetRoleListPageRes) ProtoMessage

func (*GetRoleListPageRes) ProtoMessage()

func (*GetRoleListPageRes) ProtoReflect

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

func (*GetRoleListPageRes) Reset

func (x *GetRoleListPageRes) Reset()

func (*GetRoleListPageRes) String

func (x *GetRoleListPageRes) String() string

func (*GetRoleListPageRes) Validate

func (m *GetRoleListPageRes) Validate() error

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

func (m *GetRoleListPageRes) ValidateAll() error

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

type GetRoleListPageResMultiError

type GetRoleListPageResMultiError []error

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

func (GetRoleListPageResMultiError) AllErrors

func (m GetRoleListPageResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleListPageResMultiError) Error

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

type GetRoleListPageResValidationError

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

GetRoleListPageResValidationError is the validation error returned by GetRoleListPageRes.Validate if the designated constraints aren't met.

func (GetRoleListPageResValidationError) Cause

Cause function returns cause value.

func (GetRoleListPageResValidationError) Error

Error satisfies the builtin error interface

func (GetRoleListPageResValidationError) ErrorName

ErrorName returns error name.

func (GetRoleListPageResValidationError) Field

Field function returns field value.

func (GetRoleListPageResValidationError) Key

Key function returns key value.

func (GetRoleListPageResValidationError) Reason

Reason function returns reason value.

type GetRoleListReq

type GetRoleListReq struct {

	// 主键id
	Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	// 页记录数
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// 名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色分页列表

func (*GetRoleListReq) Descriptor deprecated

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

Deprecated: Use GetRoleListReq.ProtoReflect.Descriptor instead.

func (*GetRoleListReq) GetName

func (x *GetRoleListReq) GetName() string

func (*GetRoleListReq) GetPage

func (x *GetRoleListReq) GetPage() int64

func (*GetRoleListReq) GetPageSize

func (x *GetRoleListReq) GetPageSize() int64

func (*GetRoleListReq) ProtoMessage

func (*GetRoleListReq) ProtoMessage()

func (*GetRoleListReq) ProtoReflect

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

func (*GetRoleListReq) Reset

func (x *GetRoleListReq) Reset()

func (*GetRoleListReq) String

func (x *GetRoleListReq) String() string

func (*GetRoleListReq) Validate

func (m *GetRoleListReq) Validate() error

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

func (m *GetRoleListReq) ValidateAll() error

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

type GetRoleListReqMultiError

type GetRoleListReqMultiError []error

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

func (GetRoleListReqMultiError) AllErrors

func (m GetRoleListReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleListReqMultiError) Error

func (m GetRoleListReqMultiError) Error() string

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

type GetRoleListReqValidationError

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

GetRoleListReqValidationError is the validation error returned by GetRoleListReq.Validate if the designated constraints aren't met.

func (GetRoleListReqValidationError) Cause

Cause function returns cause value.

func (GetRoleListReqValidationError) Error

Error satisfies the builtin error interface

func (GetRoleListReqValidationError) ErrorName

func (e GetRoleListReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetRoleListReqValidationError) Field

Field function returns field value.

func (GetRoleListReqValidationError) Key

Key function returns key value.

func (GetRoleListReqValidationError) Reason

Reason function returns reason value.

type GetRoleMenuBtnReq

type GetRoleMenuBtnReq struct {

	// 角色id
	RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// 角色名称
	RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
	// 菜单id
	MenuId int64 `protobuf:"varint,3,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	// contains filtered or unexported fields
}

请求 - 获取角色菜单按钮

func (*GetRoleMenuBtnReq) Descriptor deprecated

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

Deprecated: Use GetRoleMenuBtnReq.ProtoReflect.Descriptor instead.

func (*GetRoleMenuBtnReq) GetMenuId

func (x *GetRoleMenuBtnReq) GetMenuId() int64

func (*GetRoleMenuBtnReq) GetRoleId

func (x *GetRoleMenuBtnReq) GetRoleId() int64

func (*GetRoleMenuBtnReq) GetRoleName

func (x *GetRoleMenuBtnReq) GetRoleName() string

func (*GetRoleMenuBtnReq) ProtoMessage

func (*GetRoleMenuBtnReq) ProtoMessage()

func (*GetRoleMenuBtnReq) ProtoReflect

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

func (*GetRoleMenuBtnReq) Reset

func (x *GetRoleMenuBtnReq) Reset()

func (*GetRoleMenuBtnReq) String

func (x *GetRoleMenuBtnReq) String() string

func (*GetRoleMenuBtnReq) Validate

func (m *GetRoleMenuBtnReq) Validate() error

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

func (m *GetRoleMenuBtnReq) ValidateAll() error

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

type GetRoleMenuBtnReqMultiError

type GetRoleMenuBtnReqMultiError []error

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

func (GetRoleMenuBtnReqMultiError) AllErrors

func (m GetRoleMenuBtnReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleMenuBtnReqMultiError) Error

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

type GetRoleMenuBtnReqValidationError

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

GetRoleMenuBtnReqValidationError is the validation error returned by GetRoleMenuBtnReq.Validate if the designated constraints aren't met.

func (GetRoleMenuBtnReqValidationError) Cause

Cause function returns cause value.

func (GetRoleMenuBtnReqValidationError) Error

Error satisfies the builtin error interface

func (GetRoleMenuBtnReqValidationError) ErrorName

ErrorName returns error name.

func (GetRoleMenuBtnReqValidationError) Field

Field function returns field value.

func (GetRoleMenuBtnReqValidationError) Key

Key function returns key value.

func (GetRoleMenuBtnReqValidationError) Reason

Reason function returns reason value.

type GetRoleMenuBtnRes

type GetRoleMenuBtnRes struct {

	// 菜单按钮列表
	List []*MenuBtn `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - 角色菜单按钮列表

func (*GetRoleMenuBtnRes) Descriptor deprecated

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

Deprecated: Use GetRoleMenuBtnRes.ProtoReflect.Descriptor instead.

func (*GetRoleMenuBtnRes) GetList

func (x *GetRoleMenuBtnRes) GetList() []*MenuBtn

func (*GetRoleMenuBtnRes) ProtoMessage

func (*GetRoleMenuBtnRes) ProtoMessage()

func (*GetRoleMenuBtnRes) ProtoReflect

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

func (*GetRoleMenuBtnRes) Reset

func (x *GetRoleMenuBtnRes) Reset()

func (*GetRoleMenuBtnRes) String

func (x *GetRoleMenuBtnRes) String() string

func (*GetRoleMenuBtnRes) Validate

func (m *GetRoleMenuBtnRes) Validate() error

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

func (m *GetRoleMenuBtnRes) ValidateAll() error

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

type GetRoleMenuBtnResMultiError

type GetRoleMenuBtnResMultiError []error

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

func (GetRoleMenuBtnResMultiError) AllErrors

func (m GetRoleMenuBtnResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleMenuBtnResMultiError) Error

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

type GetRoleMenuBtnResValidationError

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

GetRoleMenuBtnResValidationError is the validation error returned by GetRoleMenuBtnRes.Validate if the designated constraints aren't met.

func (GetRoleMenuBtnResValidationError) Cause

Cause function returns cause value.

func (GetRoleMenuBtnResValidationError) Error

Error satisfies the builtin error interface

func (GetRoleMenuBtnResValidationError) ErrorName

ErrorName returns error name.

func (GetRoleMenuBtnResValidationError) Field

Field function returns field value.

func (GetRoleMenuBtnResValidationError) Key

Key function returns key value.

func (GetRoleMenuBtnResValidationError) Reason

Reason function returns reason value.

type GetRolesForUserReq

type GetRolesForUserReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

请求 - 获取用户角色列表

func (*GetRolesForUserReq) Descriptor deprecated

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

Deprecated: Use GetRolesForUserReq.ProtoReflect.Descriptor instead.

func (*GetRolesForUserReq) GetUsername

func (x *GetRolesForUserReq) GetUsername() string

func (*GetRolesForUserReq) ProtoMessage

func (*GetRolesForUserReq) ProtoMessage()

func (*GetRolesForUserReq) ProtoReflect

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

func (*GetRolesForUserReq) Reset

func (x *GetRolesForUserReq) Reset()

func (*GetRolesForUserReq) String

func (x *GetRolesForUserReq) String() string

func (*GetRolesForUserReq) Validate

func (m *GetRolesForUserReq) Validate() error

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

func (m *GetRolesForUserReq) ValidateAll() error

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

type GetRolesForUserReqMultiError

type GetRolesForUserReqMultiError []error

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

func (GetRolesForUserReqMultiError) AllErrors

func (m GetRolesForUserReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRolesForUserReqMultiError) Error

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

type GetRolesForUserReqValidationError

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

GetRolesForUserReqValidationError is the validation error returned by GetRolesForUserReq.Validate if the designated constraints aren't met.

func (GetRolesForUserReqValidationError) Cause

Cause function returns cause value.

func (GetRolesForUserReqValidationError) Error

Error satisfies the builtin error interface

func (GetRolesForUserReqValidationError) ErrorName

ErrorName returns error name.

func (GetRolesForUserReqValidationError) Field

Field function returns field value.

func (GetRolesForUserReqValidationError) Key

Key function returns key value.

func (GetRolesForUserReqValidationError) Reason

Reason function returns reason value.

type GetRolesForUserRes

type GetRolesForUserRes struct {

	// 角色列表
	Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

响应 - 用户角色列表

func (*GetRolesForUserRes) Descriptor deprecated

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

Deprecated: Use GetRolesForUserRes.ProtoReflect.Descriptor instead.

func (*GetRolesForUserRes) GetRoles

func (x *GetRolesForUserRes) GetRoles() []string

func (*GetRolesForUserRes) ProtoMessage

func (*GetRolesForUserRes) ProtoMessage()

func (*GetRolesForUserRes) ProtoReflect

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

func (*GetRolesForUserRes) Reset

func (x *GetRolesForUserRes) Reset()

func (*GetRolesForUserRes) String

func (x *GetRolesForUserRes) String() string

func (*GetRolesForUserRes) Validate

func (m *GetRolesForUserRes) Validate() error

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

func (m *GetRolesForUserRes) ValidateAll() error

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

type GetRolesForUserResMultiError

type GetRolesForUserResMultiError []error

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

func (GetRolesForUserResMultiError) AllErrors

func (m GetRolesForUserResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRolesForUserResMultiError) Error

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

type GetRolesForUserResValidationError

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

GetRolesForUserResValidationError is the validation error returned by GetRolesForUserRes.Validate if the designated constraints aren't met.

func (GetRolesForUserResValidationError) Cause

Cause function returns cause value.

func (GetRolesForUserResValidationError) Error

Error satisfies the builtin error interface

func (GetRolesForUserResValidationError) ErrorName

ErrorName returns error name.

func (GetRolesForUserResValidationError) Field

Field function returns field value.

func (GetRolesForUserResValidationError) Key

Key function returns key value.

func (GetRolesForUserResValidationError) Reason

Reason function returns reason value.

type GetUsersForRoleRes

type GetUsersForRoleRes struct {

	// 用户列表
	Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

响应 - 角色用户列表

func (*GetUsersForRoleRes) Descriptor deprecated

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

Deprecated: Use GetUsersForRoleRes.ProtoReflect.Descriptor instead.

func (*GetUsersForRoleRes) GetUsers

func (x *GetUsersForRoleRes) GetUsers() []string

func (*GetUsersForRoleRes) ProtoMessage

func (*GetUsersForRoleRes) ProtoMessage()

func (*GetUsersForRoleRes) ProtoReflect

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

func (*GetUsersForRoleRes) Reset

func (x *GetUsersForRoleRes) Reset()

func (*GetUsersForRoleRes) String

func (x *GetUsersForRoleRes) String() string

func (*GetUsersForRoleRes) Validate

func (m *GetUsersForRoleRes) Validate() error

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

func (m *GetUsersForRoleRes) ValidateAll() error

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

type GetUsersForRoleResMultiError

type GetUsersForRoleResMultiError []error

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

func (GetUsersForRoleResMultiError) AllErrors

func (m GetUsersForRoleResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUsersForRoleResMultiError) Error

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

type GetUsersForRoleResValidationError

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

GetUsersForRoleResValidationError is the validation error returned by GetUsersForRoleRes.Validate if the designated constraints aren't met.

func (GetUsersForRoleResValidationError) Cause

Cause function returns cause value.

func (GetUsersForRoleResValidationError) Error

Error satisfies the builtin error interface

func (GetUsersForRoleResValidationError) ErrorName

ErrorName returns error name.

func (GetUsersForRoleResValidationError) Field

Field function returns field value.

func (GetUsersForRoleResValidationError) Key

Key function returns key value.

func (GetUsersForRoleResValidationError) Reason

Reason function returns reason value.

type IdReq

type IdReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

请求 - id主键

func (*IdReq) Descriptor deprecated

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

Deprecated: Use IdReq.ProtoReflect.Descriptor instead.

func (*IdReq) GetId

func (x *IdReq) GetId() int64

func (*IdReq) ProtoMessage

func (*IdReq) ProtoMessage()

func (*IdReq) ProtoReflect

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

func (*IdReq) Reset

func (x *IdReq) Reset()

func (*IdReq) String

func (x *IdReq) String() string

func (*IdReq) Validate

func (m *IdReq) Validate() error

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

func (m *IdReq) ValidateAll() error

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

type IdReqMultiError

type IdReqMultiError []error

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

func (IdReqMultiError) AllErrors

func (m IdReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IdReqMultiError) Error

func (m IdReqMultiError) Error() string

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

type IdReqValidationError

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

IdReqValidationError is the validation error returned by IdReq.Validate if the designated constraints aren't met.

func (IdReqValidationError) Cause

func (e IdReqValidationError) Cause() error

Cause function returns cause value.

func (IdReqValidationError) Error

func (e IdReqValidationError) Error() string

Error satisfies the builtin error interface

func (IdReqValidationError) ErrorName

func (e IdReqValidationError) ErrorName() string

ErrorName returns error name.

func (IdReqValidationError) Field

func (e IdReqValidationError) Field() string

Field function returns field value.

func (IdReqValidationError) Key

func (e IdReqValidationError) Key() bool

Key function returns key value.

func (IdReqValidationError) Reason

func (e IdReqValidationError) Reason() string

Reason function returns reason value.

type Menu struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 父级id
	ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// 前端路径
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// 菜单名
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// 是否隐藏
	Hidden bool `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"`
	// 前端文件路径
	Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"`
	// 排序
	Sort int64 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"`
	// 页面名称
	Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
	// 菜单图标
	Icon string `protobuf:"bytes,9,opt,name=icon,proto3" json:"icon,omitempty"`
	// 创建时间
	CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// 子菜单
	Children []*Menu `protobuf:"bytes,12,rep,name=children,proto3" json:"children,omitempty"`
	// 菜单按钮列表
	MenuBtns []*MenuBtn `protobuf:"bytes,13,rep,name=menuBtns,proto3" json:"menuBtns,omitempty"`
	// 父级id字符串 英文逗号分割
	ParentIds string `protobuf:"bytes,14,opt,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"`
	// contains filtered or unexported fields
}

响应 - 菜单详情

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

Deprecated: Use Menu.ProtoReflect.Descriptor instead.

func (x *Menu) GetChildren() []*Menu
func (x *Menu) GetComponent() string
func (x *Menu) GetCreatedAt() string
func (x *Menu) GetHidden() bool
func (x *Menu) GetIcon() string
func (x *Menu) GetId() int64
func (x *Menu) GetMenuBtns() []*MenuBtn
func (x *Menu) GetName() string
func (x *Menu) GetParentId() int64
func (x *Menu) GetParentIds() string
func (x *Menu) GetPath() string
func (x *Menu) GetSort() int64
func (x *Menu) GetTitle() string
func (x *Menu) GetUpdatedAt() string
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 MenuBtn struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 菜单id
	MenuId int64 `protobuf:"varint,2,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	// 按钮名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// 描述
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// 英文标识
	Identifier string `protobuf:"bytes,5,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// 创建时间
	CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

响应 - 菜单按钮详情

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

Deprecated: Use MenuBtn.ProtoReflect.Descriptor instead.

func (x *MenuBtn) GetCreatedAt() string
func (x *MenuBtn) GetDescription() string
func (x *MenuBtn) GetId() int64
func (x *MenuBtn) GetIdentifier() string
func (x *MenuBtn) GetMenuId() int64
func (x *MenuBtn) GetName() string
func (x *MenuBtn) GetUpdatedAt() string
func (*MenuBtn) ProtoMessage()
func (x *MenuBtn) ProtoReflect() protoreflect.Message
func (x *MenuBtn) Reset()
func (x *MenuBtn) String() string
func (m *MenuBtn) Validate() error

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

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

type MenuBtnMultiError []error

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

func (m MenuBtnMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (m MenuBtnMultiError) Error() string

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

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

MenuBtnValidationError is the validation error returned by MenuBtn.Validate if the designated constraints aren't met.

func (e MenuBtnValidationError) Cause() error

Cause function returns cause value.

func (e MenuBtnValidationError) Error() string

Error satisfies the builtin error interface

func (e MenuBtnValidationError) ErrorName() string

ErrorName returns error name.

func (e MenuBtnValidationError) Field() string

Field function returns field value.

func (e MenuBtnValidationError) Key() bool

Key function returns key value.

func (e MenuBtnValidationError) Reason() string

Reason function returns reason value.

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

type PolicyRules struct {

	// operation路径
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// contains filtered or unexported fields
}

响应 - 权限策略

func (*PolicyRules) Descriptor deprecated

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

Deprecated: Use PolicyRules.ProtoReflect.Descriptor instead.

func (*PolicyRules) GetMethod

func (x *PolicyRules) GetMethod() string

func (*PolicyRules) GetPath

func (x *PolicyRules) GetPath() string

func (*PolicyRules) ProtoMessage

func (*PolicyRules) ProtoMessage()

func (*PolicyRules) ProtoReflect

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

func (*PolicyRules) Reset

func (x *PolicyRules) Reset()

func (*PolicyRules) String

func (x *PolicyRules) String() string

func (*PolicyRules) Validate

func (m *PolicyRules) Validate() error

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

func (m *PolicyRules) ValidateAll() error

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

type PolicyRulesMultiError

type PolicyRulesMultiError []error

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

func (PolicyRulesMultiError) AllErrors

func (m PolicyRulesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PolicyRulesMultiError) Error

func (m PolicyRulesMultiError) Error() string

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

type PolicyRulesValidationError

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

PolicyRulesValidationError is the validation error returned by PolicyRules.Validate if the designated constraints aren't met.

func (PolicyRulesValidationError) Cause

Cause function returns cause value.

func (PolicyRulesValidationError) Error

Error satisfies the builtin error interface

func (PolicyRulesValidationError) ErrorName

func (e PolicyRulesValidationError) ErrorName() string

ErrorName returns error name.

func (PolicyRulesValidationError) Field

Field function returns field value.

func (PolicyRulesValidationError) Key

Key function returns key value.

func (PolicyRulesValidationError) Reason

Reason function returns reason value.

type Role

type Role struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 名称
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,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) GetId

func (x *Role) GetId() int64

func (*Role) GetName

func (x *Role) GetName() string

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 RoleNameReq

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

请求 - 角色名称

func (*RoleNameReq) Descriptor deprecated

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

Deprecated: Use RoleNameReq.ProtoReflect.Descriptor instead.

func (*RoleNameReq) GetRole

func (x *RoleNameReq) GetRole() string

func (*RoleNameReq) ProtoMessage

func (*RoleNameReq) ProtoMessage()

func (*RoleNameReq) ProtoReflect

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

func (*RoleNameReq) Reset

func (x *RoleNameReq) Reset()

func (*RoleNameReq) String

func (x *RoleNameReq) String() string

func (*RoleNameReq) Validate

func (m *RoleNameReq) Validate() error

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

func (m *RoleNameReq) ValidateAll() error

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

type RoleNameReqMultiError

type RoleNameReqMultiError []error

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

func (RoleNameReqMultiError) AllErrors

func (m RoleNameReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RoleNameReqMultiError) Error

func (m RoleNameReqMultiError) Error() string

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

type RoleNameReqValidationError

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

RoleNameReqValidationError is the validation error returned by RoleNameReq.Validate if the designated constraints aren't met.

func (RoleNameReqValidationError) Cause

Cause function returns cause value.

func (RoleNameReqValidationError) Error

Error satisfies the builtin error interface

func (RoleNameReqValidationError) ErrorName

func (e RoleNameReqValidationError) ErrorName() string

ErrorName returns error name.

func (RoleNameReqValidationError) Field

Field function returns field value.

func (RoleNameReqValidationError) Key

Key function returns key value.

func (RoleNameReqValidationError) Reason

Reason function returns reason value.

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 SaveRoleMenuBtnReq

type SaveRoleMenuBtnReq struct {

	// 角色id
	RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// 菜单id
	MenuId int64 `protobuf:"varint,2,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	// 按钮id数组
	MenuBtnIds []int64 `protobuf:"varint,3,rep,packed,name=menu_btn_ids,json=menuBtnIds,proto3" json:"menu_btn_ids,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色菜单按钮保存

func (*SaveRoleMenuBtnReq) Descriptor deprecated

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

Deprecated: Use SaveRoleMenuBtnReq.ProtoReflect.Descriptor instead.

func (*SaveRoleMenuBtnReq) GetMenuBtnIds

func (x *SaveRoleMenuBtnReq) GetMenuBtnIds() []int64

func (*SaveRoleMenuBtnReq) GetMenuId

func (x *SaveRoleMenuBtnReq) GetMenuId() int64

func (*SaveRoleMenuBtnReq) GetRoleId

func (x *SaveRoleMenuBtnReq) GetRoleId() int64

func (*SaveRoleMenuBtnReq) ProtoMessage

func (*SaveRoleMenuBtnReq) ProtoMessage()

func (*SaveRoleMenuBtnReq) ProtoReflect

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

func (*SaveRoleMenuBtnReq) Reset

func (x *SaveRoleMenuBtnReq) Reset()

func (*SaveRoleMenuBtnReq) String

func (x *SaveRoleMenuBtnReq) String() string

func (*SaveRoleMenuBtnReq) Validate

func (m *SaveRoleMenuBtnReq) Validate() error

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

func (m *SaveRoleMenuBtnReq) ValidateAll() error

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

type SaveRoleMenuBtnReqMultiError

type SaveRoleMenuBtnReqMultiError []error

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

func (SaveRoleMenuBtnReqMultiError) AllErrors

func (m SaveRoleMenuBtnReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SaveRoleMenuBtnReqMultiError) Error

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

type SaveRoleMenuBtnReqValidationError

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

SaveRoleMenuBtnReqValidationError is the validation error returned by SaveRoleMenuBtnReq.Validate if the designated constraints aren't met.

func (SaveRoleMenuBtnReqValidationError) Cause

Cause function returns cause value.

func (SaveRoleMenuBtnReqValidationError) Error

Error satisfies the builtin error interface

func (SaveRoleMenuBtnReqValidationError) ErrorName

ErrorName returns error name.

func (SaveRoleMenuBtnReqValidationError) Field

Field function returns field value.

func (SaveRoleMenuBtnReqValidationError) Key

Key function returns key value.

func (SaveRoleMenuBtnReqValidationError) Reason

Reason function returns reason value.

type SaveRoleMenuReq

type SaveRoleMenuReq struct {

	// 角色id
	RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// 菜单id数组
	MenuIds []int64 `protobuf:"varint,2,rep,packed,name=menu_ids,json=menuIds,proto3" json:"menu_ids,omitempty"`
	// contains filtered or unexported fields
}

请求 - 设置角色菜单

func (*SaveRoleMenuReq) Descriptor deprecated

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

Deprecated: Use SaveRoleMenuReq.ProtoReflect.Descriptor instead.

func (*SaveRoleMenuReq) GetMenuIds

func (x *SaveRoleMenuReq) GetMenuIds() []int64

func (*SaveRoleMenuReq) GetRoleId

func (x *SaveRoleMenuReq) GetRoleId() int64

func (*SaveRoleMenuReq) ProtoMessage

func (*SaveRoleMenuReq) ProtoMessage()

func (*SaveRoleMenuReq) ProtoReflect

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

func (*SaveRoleMenuReq) Reset

func (x *SaveRoleMenuReq) Reset()

func (*SaveRoleMenuReq) String

func (x *SaveRoleMenuReq) String() string

func (*SaveRoleMenuReq) Validate

func (m *SaveRoleMenuReq) Validate() error

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

func (m *SaveRoleMenuReq) ValidateAll() error

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

type SaveRoleMenuReqMultiError

type SaveRoleMenuReqMultiError []error

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

func (SaveRoleMenuReqMultiError) AllErrors

func (m SaveRoleMenuReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SaveRoleMenuReqMultiError) Error

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

type SaveRoleMenuReqValidationError

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

SaveRoleMenuReqValidationError is the validation error returned by SaveRoleMenuReq.Validate if the designated constraints aren't met.

func (SaveRoleMenuReqValidationError) Cause

Cause function returns cause value.

func (SaveRoleMenuReqValidationError) Error

Error satisfies the builtin error interface

func (SaveRoleMenuReqValidationError) ErrorName

func (e SaveRoleMenuReqValidationError) ErrorName() string

ErrorName returns error name.

func (SaveRoleMenuReqValidationError) Field

Field function returns field value.

func (SaveRoleMenuReqValidationError) Key

Key function returns key value.

func (SaveRoleMenuReqValidationError) Reason

Reason function returns reason value.

type SetRolesForUserReq

type SetRolesForUserReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// 角色数组
	Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

请求 - 设置用户角色

func (*SetRolesForUserReq) Descriptor deprecated

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

Deprecated: Use SetRolesForUserReq.ProtoReflect.Descriptor instead.

func (*SetRolesForUserReq) GetRoles

func (x *SetRolesForUserReq) GetRoles() []string

func (*SetRolesForUserReq) GetUsername

func (x *SetRolesForUserReq) GetUsername() string

func (*SetRolesForUserReq) ProtoMessage

func (*SetRolesForUserReq) ProtoMessage()

func (*SetRolesForUserReq) ProtoReflect

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

func (*SetRolesForUserReq) Reset

func (x *SetRolesForUserReq) Reset()

func (*SetRolesForUserReq) String

func (x *SetRolesForUserReq) String() string

func (*SetRolesForUserReq) Validate

func (m *SetRolesForUserReq) Validate() error

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

func (m *SetRolesForUserReq) ValidateAll() error

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

type SetRolesForUserReqMultiError

type SetRolesForUserReqMultiError []error

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

func (SetRolesForUserReqMultiError) AllErrors

func (m SetRolesForUserReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetRolesForUserReqMultiError) Error

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

type SetRolesForUserReqValidationError

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

SetRolesForUserReqValidationError is the validation error returned by SetRolesForUserReq.Validate if the designated constraints aren't met.

func (SetRolesForUserReqValidationError) Cause

Cause function returns cause value.

func (SetRolesForUserReqValidationError) Error

Error satisfies the builtin error interface

func (SetRolesForUserReqValidationError) ErrorName

ErrorName returns error name.

func (SetRolesForUserReqValidationError) Field

Field function returns field value.

func (SetRolesForUserReqValidationError) Key

Key function returns key value.

func (SetRolesForUserReqValidationError) Reason

Reason function returns reason value.

type UnimplementedAuthorizationServiceServer

type UnimplementedAuthorizationServiceServer struct {
}

UnimplementedAuthorizationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthorizationServiceServer) CheckAuthorization

func (UnimplementedAuthorizationServiceServer) CreateApi

func (UnimplementedAuthorizationServiceServer) CreateMenu

func (UnimplementedAuthorizationServiceServer) CreateRole

func (UnimplementedAuthorizationServiceServer) DeleteApi

func (UnimplementedAuthorizationServiceServer) DeleteMenu

func (UnimplementedAuthorizationServiceServer) DeleteRole

func (UnimplementedAuthorizationServiceServer) DeleteRoleForUser

func (UnimplementedAuthorizationServiceServer) DeleteRolesForUser

func (UnimplementedAuthorizationServiceServer) GetApiList

func (UnimplementedAuthorizationServiceServer) GetApiListAll

func (UnimplementedAuthorizationServiceServer) GetMenuAll

func (UnimplementedAuthorizationServiceServer) GetMenuTree

func (UnimplementedAuthorizationServiceServer) GetPolicies

func (UnimplementedAuthorizationServiceServer) GetRoleAll

func (UnimplementedAuthorizationServiceServer) GetRoleMenu

func (UnimplementedAuthorizationServiceServer) GetRoleMenuBtn

func (UnimplementedAuthorizationServiceServer) GetRoleMenuTree

func (UnimplementedAuthorizationServiceServer) GetRolesForUser

func (UnimplementedAuthorizationServiceServer) GetUsersForRole

func (UnimplementedAuthorizationServiceServer) SaveRoleMenu

func (UnimplementedAuthorizationServiceServer) SaveRoleMenuBtn

func (UnimplementedAuthorizationServiceServer) SetRolesForUser

func (UnimplementedAuthorizationServiceServer) UpdateApi

func (UnimplementedAuthorizationServiceServer) UpdateMenu

func (UnimplementedAuthorizationServiceServer) UpdatePolicies

func (UnimplementedAuthorizationServiceServer) UpdateRole

type UnsafeAuthorizationServiceServer

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

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

type UpdateApiReq

type UpdateApiReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 分组
	Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
	// 请求路径
	Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

请求 - API更新

func (*UpdateApiReq) Descriptor deprecated

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

Deprecated: Use UpdateApiReq.ProtoReflect.Descriptor instead.

func (*UpdateApiReq) GetGroup

func (x *UpdateApiReq) GetGroup() string

func (*UpdateApiReq) GetId

func (x *UpdateApiReq) GetId() int64

func (*UpdateApiReq) GetMethod

func (x *UpdateApiReq) GetMethod() string

func (*UpdateApiReq) GetName

func (x *UpdateApiReq) GetName() string

func (*UpdateApiReq) GetPath

func (x *UpdateApiReq) GetPath() string

func (*UpdateApiReq) ProtoMessage

func (*UpdateApiReq) ProtoMessage()

func (*UpdateApiReq) ProtoReflect

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

func (*UpdateApiReq) Reset

func (x *UpdateApiReq) Reset()

func (*UpdateApiReq) String

func (x *UpdateApiReq) String() string

func (*UpdateApiReq) Validate

func (m *UpdateApiReq) Validate() error

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

func (m *UpdateApiReq) ValidateAll() error

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

type UpdateApiReqMultiError

type UpdateApiReqMultiError []error

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

func (UpdateApiReqMultiError) AllErrors

func (m UpdateApiReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateApiReqMultiError) Error

func (m UpdateApiReqMultiError) Error() string

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

type UpdateApiReqValidationError

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

UpdateApiReqValidationError is the validation error returned by UpdateApiReq.Validate if the designated constraints aren't met.

func (UpdateApiReqValidationError) Cause

Cause function returns cause value.

func (UpdateApiReqValidationError) Error

Error satisfies the builtin error interface

func (UpdateApiReqValidationError) ErrorName

func (e UpdateApiReqValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateApiReqValidationError) Field

Field function returns field value.

func (UpdateApiReqValidationError) Key

Key function returns key value.

func (UpdateApiReqValidationError) Reason

Reason function returns reason value.

type UpdateMenuReq

type UpdateMenuReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 父级id
	ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// 前端路径
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// 菜单名
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// 是否隐藏
	Hidden bool `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"`
	// 前端文件路径
	Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"`
	// 排序
	Sort int64 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"`
	// 页面名称
	Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
	// 菜单图标
	Icon string `protobuf:"bytes,9,opt,name=icon,proto3" json:"icon,omitempty"`
	// 菜单按钮列表
	MenuBtns []*MenuBtn `protobuf:"bytes,13,rep,name=menuBtns,proto3" json:"menuBtns,omitempty"`
	// 父级id字符串 英文逗号分割
	ParentIds string `protobuf:"bytes,14,opt,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"`
	// contains filtered or unexported fields
}

请求 - 菜单更新

func (*UpdateMenuReq) Descriptor deprecated

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

Deprecated: Use UpdateMenuReq.ProtoReflect.Descriptor instead.

func (*UpdateMenuReq) GetComponent

func (x *UpdateMenuReq) GetComponent() string

func (*UpdateMenuReq) GetHidden

func (x *UpdateMenuReq) GetHidden() bool

func (*UpdateMenuReq) GetIcon

func (x *UpdateMenuReq) GetIcon() string

func (*UpdateMenuReq) GetId

func (x *UpdateMenuReq) GetId() int64

func (*UpdateMenuReq) GetMenuBtns

func (x *UpdateMenuReq) GetMenuBtns() []*MenuBtn

func (*UpdateMenuReq) GetName

func (x *UpdateMenuReq) GetName() string

func (*UpdateMenuReq) GetParentId

func (x *UpdateMenuReq) GetParentId() int64

func (*UpdateMenuReq) GetParentIds

func (x *UpdateMenuReq) GetParentIds() string

func (*UpdateMenuReq) GetPath

func (x *UpdateMenuReq) GetPath() string

func (*UpdateMenuReq) GetSort

func (x *UpdateMenuReq) GetSort() int64

func (*UpdateMenuReq) GetTitle

func (x *UpdateMenuReq) GetTitle() string

func (*UpdateMenuReq) ProtoMessage

func (*UpdateMenuReq) ProtoMessage()

func (*UpdateMenuReq) ProtoReflect

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

func (*UpdateMenuReq) Reset

func (x *UpdateMenuReq) Reset()

func (*UpdateMenuReq) String

func (x *UpdateMenuReq) String() string

func (*UpdateMenuReq) Validate

func (m *UpdateMenuReq) Validate() error

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

func (m *UpdateMenuReq) ValidateAll() error

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

type UpdateMenuReqMultiError

type UpdateMenuReqMultiError []error

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

func (UpdateMenuReqMultiError) AllErrors

func (m UpdateMenuReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateMenuReqMultiError) Error

func (m UpdateMenuReqMultiError) Error() string

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

type UpdateMenuReqValidationError

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

UpdateMenuReqValidationError is the validation error returned by UpdateMenuReq.Validate if the designated constraints aren't met.

func (UpdateMenuReqValidationError) Cause

Cause function returns cause value.

func (UpdateMenuReqValidationError) Error

Error satisfies the builtin error interface

func (UpdateMenuReqValidationError) ErrorName

func (e UpdateMenuReqValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateMenuReqValidationError) Field

Field function returns field value.

func (UpdateMenuReqValidationError) Key

Key function returns key value.

func (UpdateMenuReqValidationError) Reason

Reason function returns reason value.

type UpdatePoliciesReq

type UpdatePoliciesReq struct {

	// 角色名
	Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	// 权限策略
	PolicyRules []*PolicyRules `protobuf:"bytes,2,rep,name=policyRules,proto3" json:"policyRules,omitempty"`
	// contains filtered or unexported fields
}

请求 - 权限策略更新

func (*UpdatePoliciesReq) Descriptor deprecated

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

Deprecated: Use UpdatePoliciesReq.ProtoReflect.Descriptor instead.

func (*UpdatePoliciesReq) GetPolicyRules

func (x *UpdatePoliciesReq) GetPolicyRules() []*PolicyRules

func (*UpdatePoliciesReq) GetRole

func (x *UpdatePoliciesReq) GetRole() string

func (*UpdatePoliciesReq) ProtoMessage

func (*UpdatePoliciesReq) ProtoMessage()

func (*UpdatePoliciesReq) ProtoReflect

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

func (*UpdatePoliciesReq) Reset

func (x *UpdatePoliciesReq) Reset()

func (*UpdatePoliciesReq) String

func (x *UpdatePoliciesReq) String() string

func (*UpdatePoliciesReq) Validate

func (m *UpdatePoliciesReq) Validate() error

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

func (m *UpdatePoliciesReq) ValidateAll() error

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

type UpdatePoliciesReqMultiError

type UpdatePoliciesReqMultiError []error

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

func (UpdatePoliciesReqMultiError) AllErrors

func (m UpdatePoliciesReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdatePoliciesReqMultiError) Error

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

type UpdatePoliciesReqValidationError

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

UpdatePoliciesReqValidationError is the validation error returned by UpdatePoliciesReq.Validate if the designated constraints aren't met.

func (UpdatePoliciesReqValidationError) Cause

Cause function returns cause value.

func (UpdatePoliciesReqValidationError) Error

Error satisfies the builtin error interface

func (UpdatePoliciesReqValidationError) ErrorName

ErrorName returns error name.

func (UpdatePoliciesReqValidationError) Field

Field function returns field value.

func (UpdatePoliciesReqValidationError) Key

Key function returns key value.

func (UpdatePoliciesReqValidationError) Reason

Reason function returns reason value.

type UpdateRoleReq

type UpdateRoleReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色更新

func (*UpdateRoleReq) Descriptor deprecated

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

Deprecated: Use UpdateRoleReq.ProtoReflect.Descriptor instead.

func (*UpdateRoleReq) GetId

func (x *UpdateRoleReq) GetId() int64

func (*UpdateRoleReq) GetName

func (x *UpdateRoleReq) GetName() string

func (*UpdateRoleReq) ProtoMessage

func (*UpdateRoleReq) ProtoMessage()

func (*UpdateRoleReq) ProtoReflect

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

func (*UpdateRoleReq) Reset

func (x *UpdateRoleReq) Reset()

func (*UpdateRoleReq) String

func (x *UpdateRoleReq) String() string

func (*UpdateRoleReq) Validate

func (m *UpdateRoleReq) Validate() error

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

func (m *UpdateRoleReq) ValidateAll() error

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

type UpdateRoleReqMultiError

type UpdateRoleReqMultiError []error

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

func (UpdateRoleReqMultiError) AllErrors

func (m UpdateRoleReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleReqMultiError) Error

func (m UpdateRoleReqMultiError) Error() string

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

type UpdateRoleReqValidationError

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

UpdateRoleReqValidationError is the validation error returned by UpdateRoleReq.Validate if the designated constraints aren't met.

func (UpdateRoleReqValidationError) Cause

Cause function returns cause value.

func (UpdateRoleReqValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleReqValidationError) ErrorName

func (e UpdateRoleReqValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateRoleReqValidationError) Field

Field function returns field value.

func (UpdateRoleReqValidationError) Key

Key function returns key value.

func (UpdateRoleReqValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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