v1

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Auth_AddRole_FullMethodName            = "/api.auth.v1.Auth/AddRole"
	Auth_EditRole_FullMethodName           = "/api.auth.v1.Auth/EditRole"
	Auth_DelRole_FullMethodName            = "/api.auth.v1.Auth/DelRole"
	Auth_FullRoleList_FullMethodName       = "/api.auth.v1.Auth/FullRoleList"
	Auth_PageRoleList_FullMethodName       = "/api.auth.v1.Auth/PageRoleList"
	Auth_AddRolesForUser_FullMethodName    = "/api.auth.v1.Auth/AddRolesForUser"
	Auth_GetRolesForUser_FullMethodName    = "/api.auth.v1.Auth/GetRolesForUser"
	Auth_GetUsersForRole_FullMethodName    = "/api.auth.v1.Auth/GetUsersForRole"
	Auth_DeleteRoleForUser_FullMethodName  = "/api.auth.v1.Auth/DeleteRoleForUser"
	Auth_DeleteRolesForUser_FullMethodName = "/api.auth.v1.Auth/DeleteRolesForUser"
	Auth_GetRolePolicies_FullMethodName    = "/api.auth.v1.Auth/GetRolePolicies"
	Auth_SetRolePolicies_FullMethodName    = "/api.auth.v1.Auth/SetRolePolicies"
	Auth_CheckAuth_FullMethodName          = "/api.auth.v1.Auth/CheckAuth"
	Auth_CreateMenu_FullMethodName         = "/api.auth.v1.Auth/CreateMenu"
	Auth_EditMenu_FullMethodName           = "/api.auth.v1.Auth/EditMenu"
	Auth_DeleteMenu_FullMethodName         = "/api.auth.v1.Auth/DeleteMenu"
	Auth_ListMenu_FullMethodName           = "/api.auth.v1.Auth/ListMenu"
	Auth_ListMenuTree_FullMethodName       = "/api.auth.v1.Auth/ListMenuTree"
)
View Source
const OperationAuthAddRole = "/api.auth.v1.Auth/AddRole"
View Source
const OperationAuthAddRolesForUser = "/api.auth.v1.Auth/AddRolesForUser"
View Source
const OperationAuthCheckAuth = "/api.auth.v1.Auth/CheckAuth"
View Source
const OperationAuthCreateMenu = "/api.auth.v1.Auth/CreateMenu"
View Source
const OperationAuthDelRole = "/api.auth.v1.Auth/DelRole"
View Source
const OperationAuthDeleteMenu = "/api.auth.v1.Auth/DeleteMenu"
View Source
const OperationAuthDeleteRoleForUser = "/api.auth.v1.Auth/DeleteRoleForUser"
View Source
const OperationAuthDeleteRolesForUser = "/api.auth.v1.Auth/DeleteRolesForUser"
View Source
const OperationAuthEditMenu = "/api.auth.v1.Auth/EditMenu"
View Source
const OperationAuthEditRole = "/api.auth.v1.Auth/EditRole"
View Source
const OperationAuthFullRoleList = "/api.auth.v1.Auth/FullRoleList"
View Source
const OperationAuthGetRolePolicies = "/api.auth.v1.Auth/GetRolePolicies"
View Source
const OperationAuthGetRolesForUser = "/api.auth.v1.Auth/GetRolesForUser"
View Source
const OperationAuthGetUsersForRole = "/api.auth.v1.Auth/GetUsersForRole"
View Source
const OperationAuthListMenu = "/api.auth.v1.Auth/ListMenu"
View Source
const OperationAuthListMenuTree = "/api.auth.v1.Auth/ListMenuTree"
View Source
const OperationAuthPageRoleList = "/api.auth.v1.Auth/PageRoleList"
View Source
const OperationAuthSetRolePolicies = "/api.auth.v1.Auth/SetRolePolicies"

Variables

View Source
var Auth_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.auth.v1.Auth",
	HandlerType: (*AuthServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddRole",
			Handler:    _Auth_AddRole_Handler,
		},
		{
			MethodName: "EditRole",
			Handler:    _Auth_EditRole_Handler,
		},
		{
			MethodName: "DelRole",
			Handler:    _Auth_DelRole_Handler,
		},
		{
			MethodName: "FullRoleList",
			Handler:    _Auth_FullRoleList_Handler,
		},
		{
			MethodName: "PageRoleList",
			Handler:    _Auth_PageRoleList_Handler,
		},
		{
			MethodName: "AddRolesForUser",
			Handler:    _Auth_AddRolesForUser_Handler,
		},
		{
			MethodName: "GetRolesForUser",
			Handler:    _Auth_GetRolesForUser_Handler,
		},
		{
			MethodName: "GetUsersForRole",
			Handler:    _Auth_GetUsersForRole_Handler,
		},
		{
			MethodName: "DeleteRoleForUser",
			Handler:    _Auth_DeleteRoleForUser_Handler,
		},
		{
			MethodName: "DeleteRolesForUser",
			Handler:    _Auth_DeleteRolesForUser_Handler,
		},
		{
			MethodName: "GetRolePolicies",
			Handler:    _Auth_GetRolePolicies_Handler,
		},
		{
			MethodName: "SetRolePolicies",
			Handler:    _Auth_SetRolePolicies_Handler,
		},
		{
			MethodName: "CheckAuth",
			Handler:    _Auth_CheckAuth_Handler,
		},
		{
			MethodName: "CreateMenu",
			Handler:    _Auth_CreateMenu_Handler,
		},
		{
			MethodName: "EditMenu",
			Handler:    _Auth_EditMenu_Handler,
		},
		{
			MethodName: "DeleteMenu",
			Handler:    _Auth_DeleteMenu_Handler,
		},
		{
			MethodName: "ListMenu",
			Handler:    _Auth_ListMenu_Handler,
		},
		{
			MethodName: "ListMenuTree",
			Handler:    _Auth_ListMenuTree_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth/v1/auth.proto",
}

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

View Source
var File_api_auth_v1_auth_proto protoreflect.FileDescriptor

Functions

func RegisterAuthHTTPServer

func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer)

func RegisterAuthServer

func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)

Types

type AddRoleRep

type AddRoleRep struct {

	// 角色Id
	RoleId uint64 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"`
	// 角色名称
	RoleName string `protobuf:"bytes,2,opt,name=roleName,proto3" json:"roleName,omitempty"`
	// contains filtered or unexported fields
}

添加角色回复

func (*AddRoleRep) Descriptor deprecated

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

Deprecated: Use AddRoleRep.ProtoReflect.Descriptor instead.

func (*AddRoleRep) GetRoleId

func (x *AddRoleRep) GetRoleId() uint64

func (*AddRoleRep) GetRoleName

func (x *AddRoleRep) GetRoleName() string

func (*AddRoleRep) ProtoMessage

func (*AddRoleRep) ProtoMessage()

func (*AddRoleRep) ProtoReflect

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

func (*AddRoleRep) Reset

func (x *AddRoleRep) Reset()

func (*AddRoleRep) String

func (x *AddRoleRep) String() string

func (*AddRoleRep) Validate

func (m *AddRoleRep) Validate() error

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

func (m *AddRoleRep) ValidateAll() error

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

type AddRoleRepMultiError

type AddRoleRepMultiError []error

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

func (AddRoleRepMultiError) AllErrors

func (m AddRoleRepMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddRoleRepMultiError) Error

func (m AddRoleRepMultiError) Error() string

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

type AddRoleRepValidationError

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

AddRoleRepValidationError is the validation error returned by AddRoleRep.Validate if the designated constraints aren't met.

func (AddRoleRepValidationError) Cause

func (e AddRoleRepValidationError) Cause() error

Cause function returns cause value.

func (AddRoleRepValidationError) Error

Error satisfies the builtin error interface

func (AddRoleRepValidationError) ErrorName

func (e AddRoleRepValidationError) ErrorName() string

ErrorName returns error name.

func (AddRoleRepValidationError) Field

Field function returns field value.

func (AddRoleRepValidationError) Key

Key function returns key value.

func (AddRoleRepValidationError) Reason

func (e AddRoleRepValidationError) Reason() string

Reason function returns reason value.

type AddRoleReq

type AddRoleReq struct {

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

添加角色

func (*AddRoleReq) Descriptor deprecated

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

Deprecated: Use AddRoleReq.ProtoReflect.Descriptor instead.

func (*AddRoleReq) GetName

func (x *AddRoleReq) GetName() string

func (*AddRoleReq) ProtoMessage

func (*AddRoleReq) ProtoMessage()

func (*AddRoleReq) ProtoReflect

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

func (*AddRoleReq) Reset

func (x *AddRoleReq) Reset()

func (*AddRoleReq) String

func (x *AddRoleReq) String() string

func (*AddRoleReq) Validate

func (m *AddRoleReq) Validate() error

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

func (m *AddRoleReq) ValidateAll() error

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

type AddRoleReqMultiError

type AddRoleReqMultiError []error

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

func (AddRoleReqMultiError) AllErrors

func (m AddRoleReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddRoleReqMultiError) Error

func (m AddRoleReqMultiError) Error() string

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

type AddRoleReqValidationError

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

AddRoleReqValidationError is the validation error returned by AddRoleReq.Validate if the designated constraints aren't met.

func (AddRoleReqValidationError) Cause

func (e AddRoleReqValidationError) Cause() error

Cause function returns cause value.

func (AddRoleReqValidationError) Error

Error satisfies the builtin error interface

func (AddRoleReqValidationError) ErrorName

func (e AddRoleReqValidationError) ErrorName() string

ErrorName returns error name.

func (AddRoleReqValidationError) Field

Field function returns field value.

func (AddRoleReqValidationError) Key

Key function returns key value.

func (AddRoleReqValidationError) Reason

func (e AddRoleReqValidationError) Reason() string

Reason function returns reason value.

type AuthClient

type AuthClient interface {
	// 添加角色
	AddRole(ctx context.Context, in *AddRoleReq, opts ...grpc.CallOption) (*AddRoleRep, error)
	// 编辑角色
	EditRole(ctx context.Context, in *EditRoleReq, opts ...grpc.CallOption) (*RepStatus, error)
	// 删除角色
	DelRole(ctx context.Context, in *DelRoleReq, opts ...grpc.CallOption) (*RepStatus, error)
	// 获取角色列表(完整)
	FullRoleList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FullRoleListRep, error)
	// 获取角色列表(分页)
	PageRoleList(ctx context.Context, in *PageRoleListReq, opts ...grpc.CallOption) (*PageRoleListRep, error)
	// 给用户设置角色
	AddRolesForUser(ctx context.Context, in *SetUserForRoleReq, opts ...grpc.CallOption) (*RepStatus, error)
	// 获取用户角色
	GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...grpc.CallOption) (*GetRolesForUserRep, error)
	// 获取角色有那些用户
	GetUsersForRole(ctx context.Context, in *GetUsersForRoleReq, opts ...grpc.CallOption) (*GetUsersForRoleRep, error)
	// 删除单个用户角色(如果需要删除单个用户的某个角色用这个)
	DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...grpc.CallOption) (*RepStatus, error)
	// 删除多个用户角色(删除传递用户的所有角色)
	DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...grpc.CallOption) (*RepStatus, error)
	// 获取角色有那些权限
	GetRolePolicies(ctx context.Context, in *GetRolePoliciesReq, opts ...grpc.CallOption) (*GetRolePoliciesRep, error)
	// 设置角色权限
	SetRolePolicies(ctx context.Context, in *SetRolePoliciesReq, opts ...grpc.CallOption) (*RepStatus, error)
	// 检查权限
	CheckAuth(ctx context.Context, in *CheckAuthReq, opts ...grpc.CallOption) (*RepStatus, error)
	// 创建菜单
	CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...grpc.CallOption) (*Menu, error)
	// 更新菜单
	EditMenu(ctx context.Context, in *EditMenuReq, opts ...grpc.CallOption) (*RepStatus, error)
	// 删除菜单
	DeleteMenu(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*RepStatus, error)
	// 菜单列表(完整)
	ListMenu(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListMenuRep, error)
	// 菜单列表(树)
	ListMenuTree(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListMenuRep, error)
}

AuthClient is the client API for Auth service.

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

func NewAuthClient

func NewAuthClient(cc grpc.ClientConnInterface) AuthClient

type AuthHTTPClient

type AuthHTTPClient interface {
	AddRole(ctx context.Context, req *AddRoleReq, opts ...http.CallOption) (rsp *AddRoleRep, err error)
	AddRolesForUser(ctx context.Context, req *SetUserForRoleReq, opts ...http.CallOption) (rsp *RepStatus, err error)
	CheckAuth(ctx context.Context, req *CheckAuthReq, opts ...http.CallOption) (rsp *RepStatus, err error)
	CreateMenu(ctx context.Context, req *CreateMenuReq, opts ...http.CallOption) (rsp *Menu, err error)
	DelRole(ctx context.Context, req *DelRoleReq, opts ...http.CallOption) (rsp *RepStatus, err error)
	DeleteMenu(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *RepStatus, err error)
	DeleteRoleForUser(ctx context.Context, req *DeleteRoleForUserReq, opts ...http.CallOption) (rsp *RepStatus, err error)
	DeleteRolesForUser(ctx context.Context, req *DeleteRolesForUserReq, opts ...http.CallOption) (rsp *RepStatus, err error)
	EditMenu(ctx context.Context, req *EditMenuReq, opts ...http.CallOption) (rsp *RepStatus, err error)
	EditRole(ctx context.Context, req *EditRoleReq, opts ...http.CallOption) (rsp *RepStatus, err error)
	FullRoleList(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *FullRoleListRep, err error)
	GetRolePolicies(ctx context.Context, req *GetRolePoliciesReq, opts ...http.CallOption) (rsp *GetRolePoliciesRep, err error)
	GetRolesForUser(ctx context.Context, req *GetRolesForUserReq, opts ...http.CallOption) (rsp *GetRolesForUserRep, err error)
	GetUsersForRole(ctx context.Context, req *GetUsersForRoleReq, opts ...http.CallOption) (rsp *GetUsersForRoleRep, err error)
	ListMenu(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *ListMenuRep, err error)
	ListMenuTree(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *ListMenuRep, err error)
	PageRoleList(ctx context.Context, req *PageRoleListReq, opts ...http.CallOption) (rsp *PageRoleListRep, err error)
	SetRolePolicies(ctx context.Context, req *SetRolePoliciesReq, opts ...http.CallOption) (rsp *RepStatus, err error)
}

func NewAuthHTTPClient

func NewAuthHTTPClient(client *http.Client) AuthHTTPClient

type AuthHTTPClientImpl

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

func (*AuthHTTPClientImpl) AddRole

func (c *AuthHTTPClientImpl) AddRole(ctx context.Context, in *AddRoleReq, opts ...http.CallOption) (*AddRoleRep, error)

func (*AuthHTTPClientImpl) AddRolesForUser

func (c *AuthHTTPClientImpl) AddRolesForUser(ctx context.Context, in *SetUserForRoleReq, opts ...http.CallOption) (*RepStatus, error)

func (*AuthHTTPClientImpl) CheckAuth

func (c *AuthHTTPClientImpl) CheckAuth(ctx context.Context, in *CheckAuthReq, opts ...http.CallOption) (*RepStatus, error)

func (*AuthHTTPClientImpl) CreateMenu added in v0.0.8

func (c *AuthHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...http.CallOption) (*Menu, error)

func (*AuthHTTPClientImpl) DelRole

func (c *AuthHTTPClientImpl) DelRole(ctx context.Context, in *DelRoleReq, opts ...http.CallOption) (*RepStatus, error)

func (*AuthHTTPClientImpl) DeleteMenu added in v0.0.8

func (c *AuthHTTPClientImpl) DeleteMenu(ctx context.Context, in *IdReq, opts ...http.CallOption) (*RepStatus, error)

func (*AuthHTTPClientImpl) DeleteRoleForUser

func (c *AuthHTTPClientImpl) DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...http.CallOption) (*RepStatus, error)

func (*AuthHTTPClientImpl) DeleteRolesForUser

func (c *AuthHTTPClientImpl) DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...http.CallOption) (*RepStatus, error)

func (*AuthHTTPClientImpl) EditMenu added in v0.0.8

func (c *AuthHTTPClientImpl) EditMenu(ctx context.Context, in *EditMenuReq, opts ...http.CallOption) (*RepStatus, error)

func (*AuthHTTPClientImpl) EditRole

func (c *AuthHTTPClientImpl) EditRole(ctx context.Context, in *EditRoleReq, opts ...http.CallOption) (*RepStatus, error)

func (*AuthHTTPClientImpl) FullRoleList

func (c *AuthHTTPClientImpl) FullRoleList(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*FullRoleListRep, error)

func (*AuthHTTPClientImpl) GetRolePolicies

func (c *AuthHTTPClientImpl) GetRolePolicies(ctx context.Context, in *GetRolePoliciesReq, opts ...http.CallOption) (*GetRolePoliciesRep, error)

func (*AuthHTTPClientImpl) GetRolesForUser

func (c *AuthHTTPClientImpl) GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...http.CallOption) (*GetRolesForUserRep, error)

func (*AuthHTTPClientImpl) GetUsersForRole

func (c *AuthHTTPClientImpl) GetUsersForRole(ctx context.Context, in *GetUsersForRoleReq, opts ...http.CallOption) (*GetUsersForRoleRep, error)

func (*AuthHTTPClientImpl) ListMenu added in v0.0.8

func (c *AuthHTTPClientImpl) ListMenu(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*ListMenuRep, error)

func (*AuthHTTPClientImpl) ListMenuTree added in v0.0.8

func (c *AuthHTTPClientImpl) ListMenuTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*ListMenuRep, error)

func (*AuthHTTPClientImpl) PageRoleList

func (c *AuthHTTPClientImpl) PageRoleList(ctx context.Context, in *PageRoleListReq, opts ...http.CallOption) (*PageRoleListRep, error)

func (*AuthHTTPClientImpl) SetRolePolicies

func (c *AuthHTTPClientImpl) SetRolePolicies(ctx context.Context, in *SetRolePoliciesReq, opts ...http.CallOption) (*RepStatus, error)

type AuthHTTPServer

type AuthHTTPServer interface {
	// AddRole 添加角色
	AddRole(context.Context, *AddRoleReq) (*AddRoleRep, error)
	// AddRolesForUser 给用户设置角色
	AddRolesForUser(context.Context, *SetUserForRoleReq) (*RepStatus, error)
	// CheckAuth 检查权限
	CheckAuth(context.Context, *CheckAuthReq) (*RepStatus, error)
	// CreateMenu 创建菜单
	CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
	// DelRole 删除角色
	DelRole(context.Context, *DelRoleReq) (*RepStatus, error)
	// DeleteMenu 删除菜单
	DeleteMenu(context.Context, *IdReq) (*RepStatus, error)
	// DeleteRoleForUser 删除单个用户角色(如果需要删除单个用户的某个角色用这个)
	DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*RepStatus, error)
	// DeleteRolesForUser 删除多个用户角色(删除传递用户的所有角色)
	DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*RepStatus, error)
	// EditMenu 更新菜单
	EditMenu(context.Context, *EditMenuReq) (*RepStatus, error)
	// EditRole 编辑角色
	EditRole(context.Context, *EditRoleReq) (*RepStatus, error)
	// FullRoleList 获取角色列表(完整)
	FullRoleList(context.Context, *emptypb.Empty) (*FullRoleListRep, error)
	// GetRolePolicies 获取角色有那些权限
	GetRolePolicies(context.Context, *GetRolePoliciesReq) (*GetRolePoliciesRep, error)
	// GetRolesForUser 获取用户角色
	GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRep, error)
	// GetUsersForRole 获取角色有那些用户
	GetUsersForRole(context.Context, *GetUsersForRoleReq) (*GetUsersForRoleRep, error)
	// ListMenu 菜单列表(完整)
	ListMenu(context.Context, *emptypb.Empty) (*ListMenuRep, error)
	// ListMenuTree 菜单列表(树)
	ListMenuTree(context.Context, *emptypb.Empty) (*ListMenuRep, error)
	// PageRoleList 获取角色列表(分页)
	PageRoleList(context.Context, *PageRoleListReq) (*PageRoleListRep, error)
	// SetRolePolicies 设置角色权限
	SetRolePolicies(context.Context, *SetRolePoliciesReq) (*RepStatus, error)
}

type AuthServer

type AuthServer interface {
	// 添加角色
	AddRole(context.Context, *AddRoleReq) (*AddRoleRep, error)
	// 编辑角色
	EditRole(context.Context, *EditRoleReq) (*RepStatus, error)
	// 删除角色
	DelRole(context.Context, *DelRoleReq) (*RepStatus, error)
	// 获取角色列表(完整)
	FullRoleList(context.Context, *emptypb.Empty) (*FullRoleListRep, error)
	// 获取角色列表(分页)
	PageRoleList(context.Context, *PageRoleListReq) (*PageRoleListRep, error)
	// 给用户设置角色
	AddRolesForUser(context.Context, *SetUserForRoleReq) (*RepStatus, error)
	// 获取用户角色
	GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRep, error)
	// 获取角色有那些用户
	GetUsersForRole(context.Context, *GetUsersForRoleReq) (*GetUsersForRoleRep, error)
	// 删除单个用户角色(如果需要删除单个用户的某个角色用这个)
	DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*RepStatus, error)
	// 删除多个用户角色(删除传递用户的所有角色)
	DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*RepStatus, error)
	// 获取角色有那些权限
	GetRolePolicies(context.Context, *GetRolePoliciesReq) (*GetRolePoliciesRep, error)
	// 设置角色权限
	SetRolePolicies(context.Context, *SetRolePoliciesReq) (*RepStatus, error)
	// 检查权限
	CheckAuth(context.Context, *CheckAuthReq) (*RepStatus, error)
	// 创建菜单
	CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
	// 更新菜单
	EditMenu(context.Context, *EditMenuReq) (*RepStatus, error)
	// 删除菜单
	DeleteMenu(context.Context, *IdReq) (*RepStatus, error)
	// 菜单列表(完整)
	ListMenu(context.Context, *emptypb.Empty) (*ListMenuRep, error)
	// 菜单列表(树)
	ListMenuTree(context.Context, *emptypb.Empty) (*ListMenuRep, error)
	// contains filtered or unexported methods
}

AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility

type CheckAuthReq

type CheckAuthReq struct {
	Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	Url  string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Mod  string `protobuf:"bytes,3,opt,name=mod,proto3" json:"mod,omitempty"`
	// contains filtered or unexported fields
}

权限检查

func (*CheckAuthReq) Descriptor deprecated

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

Deprecated: Use CheckAuthReq.ProtoReflect.Descriptor instead.

func (*CheckAuthReq) GetMod

func (x *CheckAuthReq) GetMod() string

func (*CheckAuthReq) GetRole

func (x *CheckAuthReq) GetRole() string

func (*CheckAuthReq) GetUrl

func (x *CheckAuthReq) GetUrl() string

func (*CheckAuthReq) ProtoMessage

func (*CheckAuthReq) ProtoMessage()

func (*CheckAuthReq) ProtoReflect

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

func (*CheckAuthReq) Reset

func (x *CheckAuthReq) Reset()

func (*CheckAuthReq) String

func (x *CheckAuthReq) String() string

func (*CheckAuthReq) Validate

func (m *CheckAuthReq) Validate() error

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

func (m *CheckAuthReq) ValidateAll() error

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

type CheckAuthReqMultiError

type CheckAuthReqMultiError []error

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

func (CheckAuthReqMultiError) AllErrors

func (m CheckAuthReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CheckAuthReqMultiError) Error

func (m CheckAuthReqMultiError) Error() string

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

type CheckAuthReqValidationError

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

CheckAuthReqValidationError is the validation error returned by CheckAuthReq.Validate if the designated constraints aren't met.

func (CheckAuthReqValidationError) Cause

Cause function returns cause value.

func (CheckAuthReqValidationError) Error

Error satisfies the builtin error interface

func (CheckAuthReqValidationError) ErrorName

func (e CheckAuthReqValidationError) ErrorName() string

ErrorName returns error name.

func (CheckAuthReqValidationError) Field

Field function returns field value.

func (CheckAuthReqValidationError) Key

Key function returns key value.

func (CheckAuthReqValidationError) Reason

Reason function returns reason value.

type CreateMenuReq added in v0.0.8

type CreateMenuReq struct {

	// 父级id
	ParentId uint64 `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 uint64 `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 added in v0.0.8

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

Deprecated: Use CreateMenuReq.ProtoReflect.Descriptor instead.

func (*CreateMenuReq) GetComponent added in v0.0.8

func (x *CreateMenuReq) GetComponent() string

func (*CreateMenuReq) GetHidden added in v0.0.8

func (x *CreateMenuReq) GetHidden() bool

func (*CreateMenuReq) GetIcon added in v0.0.8

func (x *CreateMenuReq) GetIcon() string

func (*CreateMenuReq) GetMenuBtns added in v0.0.8

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

func (*CreateMenuReq) GetName added in v0.0.8

func (x *CreateMenuReq) GetName() string

func (*CreateMenuReq) GetParentId added in v0.0.8

func (x *CreateMenuReq) GetParentId() uint64

func (*CreateMenuReq) GetParentIds added in v0.0.8

func (x *CreateMenuReq) GetParentIds() string

func (*CreateMenuReq) GetPath added in v0.0.8

func (x *CreateMenuReq) GetPath() string

func (*CreateMenuReq) GetSort added in v0.0.8

func (x *CreateMenuReq) GetSort() uint64

func (*CreateMenuReq) GetTitle added in v0.0.8

func (x *CreateMenuReq) GetTitle() string

func (*CreateMenuReq) ProtoMessage added in v0.0.8

func (*CreateMenuReq) ProtoMessage()

func (*CreateMenuReq) ProtoReflect added in v0.0.8

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

func (*CreateMenuReq) Reset added in v0.0.8

func (x *CreateMenuReq) Reset()

func (*CreateMenuReq) String added in v0.0.8

func (x *CreateMenuReq) String() string

func (*CreateMenuReq) Validate added in v0.0.8

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 added in v0.0.8

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 added in v0.0.8

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 added in v0.0.8

func (m CreateMenuReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateMenuReqMultiError) Error added in v0.0.8

func (m CreateMenuReqMultiError) Error() string

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

type CreateMenuReqValidationError added in v0.0.8

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 added in v0.0.8

Cause function returns cause value.

func (CreateMenuReqValidationError) Error added in v0.0.8

Error satisfies the builtin error interface

func (CreateMenuReqValidationError) ErrorName added in v0.0.8

func (e CreateMenuReqValidationError) ErrorName() string

ErrorName returns error name.

func (CreateMenuReqValidationError) Field added in v0.0.8

Field function returns field value.

func (CreateMenuReqValidationError) Key added in v0.0.8

Key function returns key value.

func (CreateMenuReqValidationError) Reason added in v0.0.8

Reason function returns reason value.

type DelRoleReq

type DelRoleReq struct {
	RoleId uint64 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"`
	// contains filtered or unexported fields
}

删除角色

func (*DelRoleReq) Descriptor deprecated

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

Deprecated: Use DelRoleReq.ProtoReflect.Descriptor instead.

func (*DelRoleReq) GetRoleId

func (x *DelRoleReq) GetRoleId() uint64

func (*DelRoleReq) ProtoMessage

func (*DelRoleReq) ProtoMessage()

func (*DelRoleReq) ProtoReflect

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

func (*DelRoleReq) Reset

func (x *DelRoleReq) Reset()

func (*DelRoleReq) String

func (x *DelRoleReq) String() string

func (*DelRoleReq) Validate

func (m *DelRoleReq) Validate() error

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

func (m *DelRoleReq) ValidateAll() error

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

type DelRoleReqMultiError

type DelRoleReqMultiError []error

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

func (DelRoleReqMultiError) AllErrors

func (m DelRoleReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DelRoleReqMultiError) Error

func (m DelRoleReqMultiError) Error() string

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

type DelRoleReqValidationError

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

DelRoleReqValidationError is the validation error returned by DelRoleReq.Validate if the designated constraints aren't met.

func (DelRoleReqValidationError) Cause

func (e DelRoleReqValidationError) Cause() error

Cause function returns cause value.

func (DelRoleReqValidationError) Error

Error satisfies the builtin error interface

func (DelRoleReqValidationError) ErrorName

func (e DelRoleReqValidationError) ErrorName() string

ErrorName returns error name.

func (DelRoleReqValidationError) Field

Field function returns field value.

func (DelRoleReqValidationError) Key

Key function returns key value.

func (DelRoleReqValidationError) Reason

func (e DelRoleReqValidationError) Reason() string

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 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 EditMenuReq added in v0.0.8

type EditMenuReq struct {

	// 主键id
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 父级id
	ParentId uint64 `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 uint64 `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 (*EditMenuReq) Descriptor deprecated added in v0.0.8

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

Deprecated: Use EditMenuReq.ProtoReflect.Descriptor instead.

func (*EditMenuReq) GetComponent added in v0.0.8

func (x *EditMenuReq) GetComponent() string

func (*EditMenuReq) GetHidden added in v0.0.8

func (x *EditMenuReq) GetHidden() bool

func (*EditMenuReq) GetIcon added in v0.0.8

func (x *EditMenuReq) GetIcon() string

func (*EditMenuReq) GetId added in v0.0.8

func (x *EditMenuReq) GetId() uint64

func (*EditMenuReq) GetMenuBtnS added in v0.0.8

func (x *EditMenuReq) GetMenuBtnS() []*MenuBtn

func (*EditMenuReq) GetName added in v0.0.8

func (x *EditMenuReq) GetName() string

func (*EditMenuReq) GetParentId added in v0.0.8

func (x *EditMenuReq) GetParentId() uint64

func (*EditMenuReq) GetParentIds added in v0.0.8

func (x *EditMenuReq) GetParentIds() string

func (*EditMenuReq) GetPath added in v0.0.8

func (x *EditMenuReq) GetPath() string

func (*EditMenuReq) GetSort added in v0.0.8

func (x *EditMenuReq) GetSort() uint64

func (*EditMenuReq) GetTitle added in v0.0.8

func (x *EditMenuReq) GetTitle() string

func (*EditMenuReq) ProtoMessage added in v0.0.8

func (*EditMenuReq) ProtoMessage()

func (*EditMenuReq) ProtoReflect added in v0.0.8

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

func (*EditMenuReq) Reset added in v0.0.8

func (x *EditMenuReq) Reset()

func (*EditMenuReq) String added in v0.0.8

func (x *EditMenuReq) String() string

func (*EditMenuReq) Validate added in v0.0.8

func (m *EditMenuReq) Validate() error

Validate checks the field values on EditMenuReq 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 (*EditMenuReq) ValidateAll added in v0.0.8

func (m *EditMenuReq) ValidateAll() error

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

type EditMenuReqMultiError added in v0.0.8

type EditMenuReqMultiError []error

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

func (EditMenuReqMultiError) AllErrors added in v0.0.8

func (m EditMenuReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EditMenuReqMultiError) Error added in v0.0.8

func (m EditMenuReqMultiError) Error() string

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

type EditMenuReqValidationError added in v0.0.8

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

EditMenuReqValidationError is the validation error returned by EditMenuReq.Validate if the designated constraints aren't met.

func (EditMenuReqValidationError) Cause added in v0.0.8

Cause function returns cause value.

func (EditMenuReqValidationError) Error added in v0.0.8

Error satisfies the builtin error interface

func (EditMenuReqValidationError) ErrorName added in v0.0.8

func (e EditMenuReqValidationError) ErrorName() string

ErrorName returns error name.

func (EditMenuReqValidationError) Field added in v0.0.8

Field function returns field value.

func (EditMenuReqValidationError) Key added in v0.0.8

Key function returns key value.

func (EditMenuReqValidationError) Reason added in v0.0.8

Reason function returns reason value.

type EditRoleReq

type EditRoleReq struct {

	// 角色Id
	RoleId uint64 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"`
	// 角色名称
	RoleName string `protobuf:"bytes,2,opt,name=roleName,proto3" json:"roleName,omitempty"`
	// contains filtered or unexported fields
}

编辑角色

func (*EditRoleReq) Descriptor deprecated

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

Deprecated: Use EditRoleReq.ProtoReflect.Descriptor instead.

func (*EditRoleReq) GetRoleId

func (x *EditRoleReq) GetRoleId() uint64

func (*EditRoleReq) GetRoleName

func (x *EditRoleReq) GetRoleName() string

func (*EditRoleReq) ProtoMessage

func (*EditRoleReq) ProtoMessage()

func (*EditRoleReq) ProtoReflect

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

func (*EditRoleReq) Reset

func (x *EditRoleReq) Reset()

func (*EditRoleReq) String

func (x *EditRoleReq) String() string

func (*EditRoleReq) Validate

func (m *EditRoleReq) Validate() error

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

func (m *EditRoleReq) ValidateAll() error

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

type EditRoleReqMultiError

type EditRoleReqMultiError []error

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

func (EditRoleReqMultiError) AllErrors

func (m EditRoleReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EditRoleReqMultiError) Error

func (m EditRoleReqMultiError) Error() string

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

type EditRoleReqValidationError

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

EditRoleReqValidationError is the validation error returned by EditRoleReq.Validate if the designated constraints aren't met.

func (EditRoleReqValidationError) Cause

Cause function returns cause value.

func (EditRoleReqValidationError) Error

Error satisfies the builtin error interface

func (EditRoleReqValidationError) ErrorName

func (e EditRoleReqValidationError) ErrorName() string

ErrorName returns error name.

func (EditRoleReqValidationError) Field

Field function returns field value.

func (EditRoleReqValidationError) Key

Key function returns key value.

func (EditRoleReqValidationError) Reason

Reason function returns reason value.

type FullRoleListRep

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

完整角色列表回复

func (*FullRoleListRep) Descriptor deprecated

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

Deprecated: Use FullRoleListRep.ProtoReflect.Descriptor instead.

func (*FullRoleListRep) GetList

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

func (*FullRoleListRep) ProtoMessage

func (*FullRoleListRep) ProtoMessage()

func (*FullRoleListRep) ProtoReflect

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

func (*FullRoleListRep) Reset

func (x *FullRoleListRep) Reset()

func (*FullRoleListRep) String

func (x *FullRoleListRep) String() string

func (*FullRoleListRep) Validate

func (m *FullRoleListRep) Validate() error

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

func (m *FullRoleListRep) ValidateAll() error

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

type FullRoleListRepMultiError

type FullRoleListRepMultiError []error

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

func (FullRoleListRepMultiError) AllErrors

func (m FullRoleListRepMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FullRoleListRepMultiError) Error

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

type FullRoleListRepValidationError

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

FullRoleListRepValidationError is the validation error returned by FullRoleListRep.Validate if the designated constraints aren't met.

func (FullRoleListRepValidationError) Cause

Cause function returns cause value.

func (FullRoleListRepValidationError) Error

Error satisfies the builtin error interface

func (FullRoleListRepValidationError) ErrorName

func (e FullRoleListRepValidationError) ErrorName() string

ErrorName returns error name.

func (FullRoleListRepValidationError) Field

Field function returns field value.

func (FullRoleListRepValidationError) Key

Key function returns key value.

func (FullRoleListRepValidationError) Reason

Reason function returns reason value.

type GetRolePoliciesRep

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

获取角色有那些权限 回复

func (*GetRolePoliciesRep) Descriptor deprecated

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

Deprecated: Use GetRolePoliciesRep.ProtoReflect.Descriptor instead.

func (*GetRolePoliciesRep) GetPolicyRules

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

func (*GetRolePoliciesRep) ProtoMessage

func (*GetRolePoliciesRep) ProtoMessage()

func (*GetRolePoliciesRep) ProtoReflect

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

func (*GetRolePoliciesRep) Reset

func (x *GetRolePoliciesRep) Reset()

func (*GetRolePoliciesRep) String

func (x *GetRolePoliciesRep) String() string

func (*GetRolePoliciesRep) Validate

func (m *GetRolePoliciesRep) Validate() error

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

func (m *GetRolePoliciesRep) ValidateAll() error

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

type GetRolePoliciesRepMultiError

type GetRolePoliciesRepMultiError []error

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

func (GetRolePoliciesRepMultiError) AllErrors

func (m GetRolePoliciesRepMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRolePoliciesRepMultiError) Error

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

type GetRolePoliciesRepValidationError

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

GetRolePoliciesRepValidationError is the validation error returned by GetRolePoliciesRep.Validate if the designated constraints aren't met.

func (GetRolePoliciesRepValidationError) Cause

Cause function returns cause value.

func (GetRolePoliciesRepValidationError) Error

Error satisfies the builtin error interface

func (GetRolePoliciesRepValidationError) ErrorName

ErrorName returns error name.

func (GetRolePoliciesRepValidationError) Field

Field function returns field value.

func (GetRolePoliciesRepValidationError) Key

Key function returns key value.

func (GetRolePoliciesRepValidationError) Reason

Reason function returns reason value.

type GetRolePoliciesReq

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

获取角色有那些权限

func (*GetRolePoliciesReq) Descriptor deprecated

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

Deprecated: Use GetRolePoliciesReq.ProtoReflect.Descriptor instead.

func (*GetRolePoliciesReq) GetRole

func (x *GetRolePoliciesReq) GetRole() string

func (*GetRolePoliciesReq) ProtoMessage

func (*GetRolePoliciesReq) ProtoMessage()

func (*GetRolePoliciesReq) ProtoReflect

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

func (*GetRolePoliciesReq) Reset

func (x *GetRolePoliciesReq) Reset()

func (*GetRolePoliciesReq) String

func (x *GetRolePoliciesReq) String() string

func (*GetRolePoliciesReq) Validate

func (m *GetRolePoliciesReq) Validate() error

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

func (m *GetRolePoliciesReq) ValidateAll() error

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

type GetRolePoliciesReqMultiError

type GetRolePoliciesReqMultiError []error

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

func (GetRolePoliciesReqMultiError) AllErrors

func (m GetRolePoliciesReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRolePoliciesReqMultiError) Error

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

type GetRolePoliciesReqValidationError

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

GetRolePoliciesReqValidationError is the validation error returned by GetRolePoliciesReq.Validate if the designated constraints aren't met.

func (GetRolePoliciesReqValidationError) Cause

Cause function returns cause value.

func (GetRolePoliciesReqValidationError) Error

Error satisfies the builtin error interface

func (GetRolePoliciesReqValidationError) ErrorName

ErrorName returns error name.

func (GetRolePoliciesReqValidationError) Field

Field function returns field value.

func (GetRolePoliciesReqValidationError) Key

Key function returns key value.

func (GetRolePoliciesReqValidationError) Reason

Reason function returns reason value.

type GetRolesForUserRep

type GetRolesForUserRep struct {

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

获取用户角色回复

func (*GetRolesForUserRep) Descriptor deprecated

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

Deprecated: Use GetRolesForUserRep.ProtoReflect.Descriptor instead.

func (*GetRolesForUserRep) GetRoles

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

func (*GetRolesForUserRep) ProtoMessage

func (*GetRolesForUserRep) ProtoMessage()

func (*GetRolesForUserRep) ProtoReflect

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

func (*GetRolesForUserRep) Reset

func (x *GetRolesForUserRep) Reset()

func (*GetRolesForUserRep) String

func (x *GetRolesForUserRep) String() string

func (*GetRolesForUserRep) Validate

func (m *GetRolesForUserRep) Validate() error

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

func (m *GetRolesForUserRep) ValidateAll() error

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

type GetRolesForUserRepMultiError

type GetRolesForUserRepMultiError []error

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

func (GetRolesForUserRepMultiError) AllErrors

func (m GetRolesForUserRepMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRolesForUserRepMultiError) Error

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

type GetRolesForUserRepValidationError

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

GetRolesForUserRepValidationError is the validation error returned by GetRolesForUserRep.Validate if the designated constraints aren't met.

func (GetRolesForUserRepValidationError) Cause

Cause function returns cause value.

func (GetRolesForUserRepValidationError) Error

Error satisfies the builtin error interface

func (GetRolesForUserRepValidationError) ErrorName

ErrorName returns error name.

func (GetRolesForUserRepValidationError) Field

Field function returns field value.

func (GetRolesForUserRepValidationError) Key

Key function returns key value.

func (GetRolesForUserRepValidationError) 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 GetUsersForRoleRep

type GetUsersForRoleRep struct {

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

获取角色有那些用户 回复

func (*GetUsersForRoleRep) Descriptor deprecated

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

Deprecated: Use GetUsersForRoleRep.ProtoReflect.Descriptor instead.

func (*GetUsersForRoleRep) GetUsers

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

func (*GetUsersForRoleRep) ProtoMessage

func (*GetUsersForRoleRep) ProtoMessage()

func (*GetUsersForRoleRep) ProtoReflect

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

func (*GetUsersForRoleRep) Reset

func (x *GetUsersForRoleRep) Reset()

func (*GetUsersForRoleRep) String

func (x *GetUsersForRoleRep) String() string

func (*GetUsersForRoleRep) Validate

func (m *GetUsersForRoleRep) Validate() error

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

func (m *GetUsersForRoleRep) ValidateAll() error

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

type GetUsersForRoleRepMultiError

type GetUsersForRoleRepMultiError []error

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

func (GetUsersForRoleRepMultiError) AllErrors

func (m GetUsersForRoleRepMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUsersForRoleRepMultiError) Error

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

type GetUsersForRoleRepValidationError

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

GetUsersForRoleRepValidationError is the validation error returned by GetUsersForRoleRep.Validate if the designated constraints aren't met.

func (GetUsersForRoleRepValidationError) Cause

Cause function returns cause value.

func (GetUsersForRoleRepValidationError) Error

Error satisfies the builtin error interface

func (GetUsersForRoleRepValidationError) ErrorName

ErrorName returns error name.

func (GetUsersForRoleRepValidationError) Field

Field function returns field value.

func (GetUsersForRoleRepValidationError) Key

Key function returns key value.

func (GetUsersForRoleRepValidationError) Reason

Reason function returns reason value.

type GetUsersForRoleReq

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

获取角色有那些用户

func (*GetUsersForRoleReq) Descriptor deprecated

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

Deprecated: Use GetUsersForRoleReq.ProtoReflect.Descriptor instead.

func (*GetUsersForRoleReq) GetRole

func (x *GetUsersForRoleReq) GetRole() string

func (*GetUsersForRoleReq) ProtoMessage

func (*GetUsersForRoleReq) ProtoMessage()

func (*GetUsersForRoleReq) ProtoReflect

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

func (*GetUsersForRoleReq) Reset

func (x *GetUsersForRoleReq) Reset()

func (*GetUsersForRoleReq) String

func (x *GetUsersForRoleReq) String() string

func (*GetUsersForRoleReq) Validate

func (m *GetUsersForRoleReq) Validate() error

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

func (m *GetUsersForRoleReq) ValidateAll() error

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

type GetUsersForRoleReqMultiError

type GetUsersForRoleReqMultiError []error

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

func (GetUsersForRoleReqMultiError) AllErrors

func (m GetUsersForRoleReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUsersForRoleReqMultiError) Error

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

type GetUsersForRoleReqValidationError

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

GetUsersForRoleReqValidationError is the validation error returned by GetUsersForRoleReq.Validate if the designated constraints aren't met.

func (GetUsersForRoleReqValidationError) Cause

Cause function returns cause value.

func (GetUsersForRoleReqValidationError) Error

Error satisfies the builtin error interface

func (GetUsersForRoleReqValidationError) ErrorName

ErrorName returns error name.

func (GetUsersForRoleReqValidationError) Field

Field function returns field value.

func (GetUsersForRoleReqValidationError) Key

Key function returns key value.

func (GetUsersForRoleReqValidationError) Reason

Reason function returns reason value.

type IdReq added in v0.0.8

type IdReq struct {

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

请求

func (*IdReq) Descriptor deprecated added in v0.0.8

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

Deprecated: Use IdReq.ProtoReflect.Descriptor instead.

func (*IdReq) GetId added in v0.0.8

func (x *IdReq) GetId() uint64

func (*IdReq) ProtoMessage added in v0.0.8

func (*IdReq) ProtoMessage()

func (*IdReq) ProtoReflect added in v0.0.8

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

func (*IdReq) Reset added in v0.0.8

func (x *IdReq) Reset()

func (*IdReq) String added in v0.0.8

func (x *IdReq) String() string

func (*IdReq) Validate added in v0.0.8

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 added in v0.0.8

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 added in v0.0.8

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 added in v0.0.8

func (m IdReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IdReqMultiError) Error added in v0.0.8

func (m IdReqMultiError) Error() string

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

type IdReqValidationError added in v0.0.8

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 added in v0.0.8

func (e IdReqValidationError) Cause() error

Cause function returns cause value.

func (IdReqValidationError) Error added in v0.0.8

func (e IdReqValidationError) Error() string

Error satisfies the builtin error interface

func (IdReqValidationError) ErrorName added in v0.0.8

func (e IdReqValidationError) ErrorName() string

ErrorName returns error name.

func (IdReqValidationError) Field added in v0.0.8

func (e IdReqValidationError) Field() string

Field function returns field value.

func (IdReqValidationError) Key added in v0.0.8

func (e IdReqValidationError) Key() bool

Key function returns key value.

func (IdReqValidationError) Reason added in v0.0.8

func (e IdReqValidationError) Reason() string

Reason function returns reason value.

type ListMenuRep added in v0.0.8

type ListMenuRep struct {
	List []*Menu `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

菜单返回

func (*ListMenuRep) Descriptor deprecated added in v0.0.8

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

Deprecated: Use ListMenuRep.ProtoReflect.Descriptor instead.

func (*ListMenuRep) GetList added in v0.0.8

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

func (*ListMenuRep) ProtoMessage added in v0.0.8

func (*ListMenuRep) ProtoMessage()

func (*ListMenuRep) ProtoReflect added in v0.0.8

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

func (*ListMenuRep) Reset added in v0.0.8

func (x *ListMenuRep) Reset()

func (*ListMenuRep) String added in v0.0.8

func (x *ListMenuRep) String() string

func (*ListMenuRep) Validate added in v0.0.8

func (m *ListMenuRep) Validate() error

Validate checks the field values on ListMenuRep 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 (*ListMenuRep) ValidateAll added in v0.0.8

func (m *ListMenuRep) ValidateAll() error

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

type ListMenuRepMultiError added in v0.0.8

type ListMenuRepMultiError []error

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

func (ListMenuRepMultiError) AllErrors added in v0.0.8

func (m ListMenuRepMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListMenuRepMultiError) Error added in v0.0.8

func (m ListMenuRepMultiError) Error() string

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

type ListMenuRepValidationError added in v0.0.8

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

ListMenuRepValidationError is the validation error returned by ListMenuRep.Validate if the designated constraints aren't met.

func (ListMenuRepValidationError) Cause added in v0.0.8

Cause function returns cause value.

func (ListMenuRepValidationError) Error added in v0.0.8

Error satisfies the builtin error interface

func (ListMenuRepValidationError) ErrorName added in v0.0.8

func (e ListMenuRepValidationError) ErrorName() string

ErrorName returns error name.

func (ListMenuRepValidationError) Field added in v0.0.8

Field function returns field value.

func (ListMenuRepValidationError) Key added in v0.0.8

Key function returns key value.

func (ListMenuRepValidationError) Reason added in v0.0.8

Reason function returns reason value.

type Menu struct {

	// 主键id
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 父级id
	ParentId uint64 `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 uint64 `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() uint64
func (x *Menu) GetMenuBtns() []*MenuBtn
func (x *Menu) GetName() string
func (x *Menu) GetParentId() uint64
func (x *Menu) GetParentIds() string
func (x *Menu) GetPath() string
func (x *Menu) GetSort() uint64
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 PageRoleListRep

type PageRoleListRep struct {
	Total uint64  `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 (*PageRoleListRep) Descriptor deprecated

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

Deprecated: Use PageRoleListRep.ProtoReflect.Descriptor instead.

func (*PageRoleListRep) GetList

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

func (*PageRoleListRep) GetTotal

func (x *PageRoleListRep) GetTotal() uint64

func (*PageRoleListRep) ProtoMessage

func (*PageRoleListRep) ProtoMessage()

func (*PageRoleListRep) ProtoReflect

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

func (*PageRoleListRep) Reset

func (x *PageRoleListRep) Reset()

func (*PageRoleListRep) String

func (x *PageRoleListRep) String() string

func (*PageRoleListRep) Validate

func (m *PageRoleListRep) Validate() error

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

func (m *PageRoleListRep) ValidateAll() error

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

type PageRoleListRepMultiError

type PageRoleListRepMultiError []error

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

func (PageRoleListRepMultiError) AllErrors

func (m PageRoleListRepMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageRoleListRepMultiError) Error

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

type PageRoleListRepValidationError

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

PageRoleListRepValidationError is the validation error returned by PageRoleListRep.Validate if the designated constraints aren't met.

func (PageRoleListRepValidationError) Cause

Cause function returns cause value.

func (PageRoleListRepValidationError) Error

Error satisfies the builtin error interface

func (PageRoleListRepValidationError) ErrorName

func (e PageRoleListRepValidationError) ErrorName() string

ErrorName returns error name.

func (PageRoleListRepValidationError) Field

Field function returns field value.

func (PageRoleListRepValidationError) Key

Key function returns key value.

func (PageRoleListRepValidationError) Reason

Reason function returns reason value.

type PageRoleListReq

type PageRoleListReq struct {
	Page     uint64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	RoleName string `protobuf:"bytes,3,opt,name=roleName,proto3" json:"roleName,omitempty"`
	// contains filtered or unexported fields
}

请求 分页角色列表

func (*PageRoleListReq) Descriptor deprecated

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

Deprecated: Use PageRoleListReq.ProtoReflect.Descriptor instead.

func (*PageRoleListReq) GetPage

func (x *PageRoleListReq) GetPage() uint64

func (*PageRoleListReq) GetPageSize

func (x *PageRoleListReq) GetPageSize() uint64

func (*PageRoleListReq) GetRoleName

func (x *PageRoleListReq) GetRoleName() string

func (*PageRoleListReq) ProtoMessage

func (*PageRoleListReq) ProtoMessage()

func (*PageRoleListReq) ProtoReflect

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

func (*PageRoleListReq) Reset

func (x *PageRoleListReq) Reset()

func (*PageRoleListReq) String

func (x *PageRoleListReq) String() string

func (*PageRoleListReq) Validate

func (m *PageRoleListReq) Validate() error

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

func (m *PageRoleListReq) ValidateAll() error

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

type PageRoleListReqMultiError

type PageRoleListReqMultiError []error

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

func (PageRoleListReqMultiError) AllErrors

func (m PageRoleListReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageRoleListReqMultiError) Error

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

type PageRoleListReqValidationError

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

PageRoleListReqValidationError is the validation error returned by PageRoleListReq.Validate if the designated constraints aren't met.

func (PageRoleListReqValidationError) Cause

Cause function returns cause value.

func (PageRoleListReqValidationError) Error

Error satisfies the builtin error interface

func (PageRoleListReqValidationError) ErrorName

func (e PageRoleListReqValidationError) ErrorName() string

ErrorName returns error name.

func (PageRoleListReqValidationError) Field

Field function returns field value.

func (PageRoleListReqValidationError) Key

Key function returns key value.

func (PageRoleListReqValidationError) Reason

Reason function returns reason value.

type PolicyRules

type PolicyRules struct {
	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 RepStatus added in v0.0.8

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

角色状态回复

func (*RepStatus) Descriptor deprecated added in v0.0.8

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

Deprecated: Use RepStatus.ProtoReflect.Descriptor instead.

func (*RepStatus) GetSuccess added in v0.0.8

func (x *RepStatus) GetSuccess() bool

func (*RepStatus) ProtoMessage added in v0.0.8

func (*RepStatus) ProtoMessage()

func (*RepStatus) ProtoReflect added in v0.0.8

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

func (*RepStatus) Reset added in v0.0.8

func (x *RepStatus) Reset()

func (*RepStatus) String added in v0.0.8

func (x *RepStatus) String() string

func (*RepStatus) Validate added in v0.0.8

func (m *RepStatus) Validate() error

Validate checks the field values on RepStatus with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RepStatus) ValidateAll added in v0.0.8

func (m *RepStatus) ValidateAll() error

ValidateAll checks the field values on RepStatus with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RepStatusMultiError, or nil if none found.

type RepStatusMultiError added in v0.0.8

type RepStatusMultiError []error

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

func (RepStatusMultiError) AllErrors added in v0.0.8

func (m RepStatusMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RepStatusMultiError) Error added in v0.0.8

func (m RepStatusMultiError) Error() string

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

type RepStatusValidationError added in v0.0.8

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

RepStatusValidationError is the validation error returned by RepStatus.Validate if the designated constraints aren't met.

func (RepStatusValidationError) Cause added in v0.0.8

func (e RepStatusValidationError) Cause() error

Cause function returns cause value.

func (RepStatusValidationError) Error added in v0.0.8

func (e RepStatusValidationError) Error() string

Error satisfies the builtin error interface

func (RepStatusValidationError) ErrorName added in v0.0.8

func (e RepStatusValidationError) ErrorName() string

ErrorName returns error name.

func (RepStatusValidationError) Field added in v0.0.8

func (e RepStatusValidationError) Field() string

Field function returns field value.

func (RepStatusValidationError) Key added in v0.0.8

Key function returns key value.

func (RepStatusValidationError) Reason added in v0.0.8

func (e RepStatusValidationError) Reason() string

Reason function returns reason value.

type Role

type Role struct {

	// 角色Id
	RoleId uint64 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,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) GetName

func (x *Role) GetName() string

func (*Role) GetRoleId

func (x *Role) GetRoleId() uint64

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

type SetRolePoliciesReq 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 (*SetRolePoliciesReq) Descriptor deprecated

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

Deprecated: Use SetRolePoliciesReq.ProtoReflect.Descriptor instead.

func (*SetRolePoliciesReq) GetPolicyRules

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

func (*SetRolePoliciesReq) GetRole

func (x *SetRolePoliciesReq) GetRole() string

func (*SetRolePoliciesReq) ProtoMessage

func (*SetRolePoliciesReq) ProtoMessage()

func (*SetRolePoliciesReq) ProtoReflect

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

func (*SetRolePoliciesReq) Reset

func (x *SetRolePoliciesReq) Reset()

func (*SetRolePoliciesReq) String

func (x *SetRolePoliciesReq) String() string

func (*SetRolePoliciesReq) Validate

func (m *SetRolePoliciesReq) Validate() error

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

func (m *SetRolePoliciesReq) ValidateAll() error

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

type SetRolePoliciesReqMultiError

type SetRolePoliciesReqMultiError []error

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

func (SetRolePoliciesReqMultiError) AllErrors

func (m SetRolePoliciesReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetRolePoliciesReqMultiError) Error

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

type SetRolePoliciesReqValidationError

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

SetRolePoliciesReqValidationError is the validation error returned by SetRolePoliciesReq.Validate if the designated constraints aren't met.

func (SetRolePoliciesReqValidationError) Cause

Cause function returns cause value.

func (SetRolePoliciesReqValidationError) Error

Error satisfies the builtin error interface

func (SetRolePoliciesReqValidationError) ErrorName

ErrorName returns error name.

func (SetRolePoliciesReqValidationError) Field

Field function returns field value.

func (SetRolePoliciesReqValidationError) Key

Key function returns key value.

func (SetRolePoliciesReqValidationError) Reason

Reason function returns reason value.

type SetUserForRoleReq

type SetUserForRoleReq 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 (*SetUserForRoleReq) Descriptor deprecated

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

Deprecated: Use SetUserForRoleReq.ProtoReflect.Descriptor instead.

func (*SetUserForRoleReq) GetRoles

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

func (*SetUserForRoleReq) GetUsername

func (x *SetUserForRoleReq) GetUsername() string

func (*SetUserForRoleReq) ProtoMessage

func (*SetUserForRoleReq) ProtoMessage()

func (*SetUserForRoleReq) ProtoReflect

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

func (*SetUserForRoleReq) Reset

func (x *SetUserForRoleReq) Reset()

func (*SetUserForRoleReq) String

func (x *SetUserForRoleReq) String() string

func (*SetUserForRoleReq) Validate

func (m *SetUserForRoleReq) Validate() error

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

func (m *SetUserForRoleReq) ValidateAll() error

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

type SetUserForRoleReqMultiError

type SetUserForRoleReqMultiError []error

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

func (SetUserForRoleReqMultiError) AllErrors

func (m SetUserForRoleReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetUserForRoleReqMultiError) Error

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

type SetUserForRoleReqValidationError

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

SetUserForRoleReqValidationError is the validation error returned by SetUserForRoleReq.Validate if the designated constraints aren't met.

func (SetUserForRoleReqValidationError) Cause

Cause function returns cause value.

func (SetUserForRoleReqValidationError) Error

Error satisfies the builtin error interface

func (SetUserForRoleReqValidationError) ErrorName

ErrorName returns error name.

func (SetUserForRoleReqValidationError) Field

Field function returns field value.

func (SetUserForRoleReqValidationError) Key

Key function returns key value.

func (SetUserForRoleReqValidationError) Reason

Reason function returns reason value.

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServer) AddRole

func (UnimplementedAuthServer) AddRolesForUser

func (UnimplementedAuthServer) CheckAuth

func (UnimplementedAuthServer) CreateMenu added in v0.0.8

func (UnimplementedAuthServer) DelRole

func (UnimplementedAuthServer) DeleteMenu added in v0.0.8

func (UnimplementedAuthServer) DeleteRoleForUser

func (UnimplementedAuthServer) DeleteRolesForUser

func (UnimplementedAuthServer) EditMenu added in v0.0.8

func (UnimplementedAuthServer) EditRole

func (UnimplementedAuthServer) FullRoleList

func (UnimplementedAuthServer) GetRolePolicies

func (UnimplementedAuthServer) GetRolesForUser

func (UnimplementedAuthServer) GetUsersForRole

func (UnimplementedAuthServer) ListMenu added in v0.0.8

func (UnimplementedAuthServer) ListMenuTree added in v0.0.8

func (UnimplementedAuthServer) PageRoleList

func (UnimplementedAuthServer) SetRolePolicies

type UnsafeAuthServer

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

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

Jump to

Keyboard shortcuts

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