v1

package
v0.0.69 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 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"
	Auth_CreateRoleMenu_FullMethodName     = "/api.auth.v1.Auth/CreateRoleMenu"
	Auth_CreateRoleMenuBtn_FullMethodName  = "/api.auth.v1.Auth/CreateRoleMenuBtn"
	Auth_ListRoleMenu_FullMethodName       = "/api.auth.v1.Auth/ListRoleMenu"
	Auth_ListRoleMenuTree_FullMethodName   = "/api.auth.v1.Auth/ListRoleMenuTree"
	Auth_GetRoleMenuBtn_FullMethodName     = "/api.auth.v1.Auth/GetRoleMenuBtn"
	Auth_GetApiList_FullMethodName         = "/api.auth.v1.Auth/GetApiList"
	Auth_GetApiPageList_FullMethodName     = "/api.auth.v1.Auth/GetApiPageList"
	Auth_CreateApi_FullMethodName          = "/api.auth.v1.Auth/CreateApi"
	Auth_UpdateApi_FullMethodName          = "/api.auth.v1.Auth/UpdateApi"
	Auth_DeleteApi_FullMethodName          = "/api.auth.v1.Auth/DeleteApi"
)
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 OperationAuthCreateApi = "/api.auth.v1.Auth/CreateApi"
View Source
const OperationAuthCreateMenu = "/api.auth.v1.Auth/CreateMenu"
View Source
const OperationAuthCreateRoleMenu = "/api.auth.v1.Auth/CreateRoleMenu"
View Source
const OperationAuthCreateRoleMenuBtn = "/api.auth.v1.Auth/CreateRoleMenuBtn"
View Source
const OperationAuthDelRole = "/api.auth.v1.Auth/DelRole"
View Source
const OperationAuthDeleteApi = "/api.auth.v1.Auth/DeleteApi"
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 OperationAuthGetApiList = "/api.auth.v1.Auth/GetApiList"
View Source
const OperationAuthGetApiPageList = "/api.auth.v1.Auth/GetApiPageList"
View Source
const OperationAuthGetRoleMenuBtn = "/api.auth.v1.Auth/GetRoleMenuBtn"
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 OperationAuthListRoleMenu = "/api.auth.v1.Auth/ListRoleMenu"
View Source
const OperationAuthListRoleMenuTree = "/api.auth.v1.Auth/ListRoleMenuTree"
View Source
const OperationAuthPageRoleList = "/api.auth.v1.Auth/PageRoleList"
View Source
const OperationAuthSetRolePolicies = "/api.auth.v1.Auth/SetRolePolicies"
View Source
const OperationAuthUpdateApi = "/api.auth.v1.Auth/UpdateApi"

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,
		},
		{
			MethodName: "CreateRoleMenu",
			Handler:    _Auth_CreateRoleMenu_Handler,
		},
		{
			MethodName: "CreateRoleMenuBtn",
			Handler:    _Auth_CreateRoleMenuBtn_Handler,
		},
		{
			MethodName: "ListRoleMenu",
			Handler:    _Auth_ListRoleMenu_Handler,
		},
		{
			MethodName: "ListRoleMenuTree",
			Handler:    _Auth_ListRoleMenuTree_Handler,
		},
		{
			MethodName: "GetRoleMenuBtn",
			Handler:    _Auth_GetRoleMenuBtn_Handler,
		},
		{
			MethodName: "GetApiList",
			Handler:    _Auth_GetApiList_Handler,
		},
		{
			MethodName: "GetApiPageList",
			Handler:    _Auth_GetApiPageList_Handler,
		},
		{
			MethodName: "CreateApi",
			Handler:    _Auth_CreateApi_Handler,
		},
		{
			MethodName: "UpdateApi",
			Handler:    _Auth_UpdateApi_Handler,
		},
		{
			MethodName: "DeleteApi",
			Handler:    _Auth_DeleteApi_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 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 ApiInfo added in v0.0.38

type ApiInfo struct {

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

API信息

func (*ApiInfo) Descriptor deprecated added in v0.0.38

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

Deprecated: Use ApiInfo.ProtoReflect.Descriptor instead.

func (*ApiInfo) GetCreatedAt added in v0.0.38

func (x *ApiInfo) GetCreatedAt() string

func (*ApiInfo) GetDomain added in v0.0.38

func (x *ApiInfo) GetDomain() string

func (*ApiInfo) GetGroup added in v0.0.38

func (x *ApiInfo) GetGroup() string

func (*ApiInfo) GetId added in v0.0.38

func (x *ApiInfo) GetId() uint64

func (*ApiInfo) GetMethod added in v0.0.38

func (x *ApiInfo) GetMethod() string

func (*ApiInfo) GetName added in v0.0.38

func (x *ApiInfo) GetName() string

func (*ApiInfo) GetPath added in v0.0.38

func (x *ApiInfo) GetPath() string

func (*ApiInfo) GetUpdatedAt added in v0.0.38

func (x *ApiInfo) GetUpdatedAt() string

func (*ApiInfo) ProtoMessage added in v0.0.38

func (*ApiInfo) ProtoMessage()

func (*ApiInfo) ProtoReflect added in v0.0.38

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

func (*ApiInfo) Reset added in v0.0.38

func (x *ApiInfo) Reset()

func (*ApiInfo) String added in v0.0.38

func (x *ApiInfo) String() string

func (*ApiInfo) Validate added in v0.0.38

func (m *ApiInfo) Validate() error

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

func (m *ApiInfo) ValidateAll() error

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

type ApiInfoMultiError added in v0.0.38

type ApiInfoMultiError []error

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

func (ApiInfoMultiError) AllErrors added in v0.0.38

func (m ApiInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ApiInfoMultiError) Error added in v0.0.38

func (m ApiInfoMultiError) Error() string

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

type ApiInfoValidationError added in v0.0.38

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

ApiInfoValidationError is the validation error returned by ApiInfo.Validate if the designated constraints aren't met.

func (ApiInfoValidationError) Cause added in v0.0.38

func (e ApiInfoValidationError) Cause() error

Cause function returns cause value.

func (ApiInfoValidationError) Error added in v0.0.38

func (e ApiInfoValidationError) Error() string

Error satisfies the builtin error interface

func (ApiInfoValidationError) ErrorName added in v0.0.38

func (e ApiInfoValidationError) ErrorName() string

ErrorName returns error name.

func (ApiInfoValidationError) Field added in v0.0.38

func (e ApiInfoValidationError) Field() string

Field function returns field value.

func (ApiInfoValidationError) Key added in v0.0.38

func (e ApiInfoValidationError) Key() bool

Key function returns key value.

func (ApiInfoValidationError) Reason added in v0.0.38

func (e ApiInfoValidationError) Reason() string

Reason function returns reason value.

type AuthClient

type AuthClient interface {
	// 添加角色
	AddRole(ctx context.Context, in *AddRoleReq, opts ...grpc.CallOption) (*Role, 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)
	// 角色菜单添加
	CreateRoleMenu(ctx context.Context, in *CreateRoleMenuReq, opts ...grpc.CallOption) (*RepStatus, error)
	// 角色菜单按钮添加
	CreateRoleMenuBtn(ctx context.Context, in *CreateRoleMenuBtnReq, opts ...grpc.CallOption) (*RepStatus, error)
	// 角色菜单列表(完整)
	ListRoleMenu(ctx context.Context, in *ListRoleMenuReq, opts ...grpc.CallOption) (*ListMenuRep, error)
	// 角色菜单 - 树状结构
	ListRoleMenuTree(ctx context.Context, in *ListRoleMenuReq, opts ...grpc.CallOption) (*ListMenuRep, error)
	// 角色菜单按钮 - 列表
	GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...grpc.CallOption) (*GetRoleMenuBtnRep, error)
	// Api列表
	GetApiList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetApiListRep, error)
	// Api列表分页
	GetApiPageList(ctx context.Context, in *GetApiListReq, opts ...grpc.CallOption) (*GetApiListPageRep, error)
	// Api创建
	CreateApi(ctx context.Context, in *CreateApiReq, opts ...grpc.CallOption) (*ApiInfo, error)
	// Api更新
	UpdateApi(ctx context.Context, in *UpdateApiReq, opts ...grpc.CallOption) (*RepStatus, error)
	// Api删除
	DeleteApi(ctx context.Context, in *DeleteApiReq, opts ...grpc.CallOption) (*RepStatus, 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 *Role, 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)
	CreateApi(ctx context.Context, req *CreateApiReq, opts ...http.CallOption) (rsp *ApiInfo, err error)
	CreateMenu(ctx context.Context, req *CreateMenuReq, opts ...http.CallOption) (rsp *Menu, err error)
	CreateRoleMenu(ctx context.Context, req *CreateRoleMenuReq, opts ...http.CallOption) (rsp *RepStatus, err error)
	CreateRoleMenuBtn(ctx context.Context, req *CreateRoleMenuBtnReq, opts ...http.CallOption) (rsp *RepStatus, err error)
	DelRole(ctx context.Context, req *DelRoleReq, opts ...http.CallOption) (rsp *RepStatus, err error)
	DeleteApi(ctx context.Context, req *DeleteApiReq, 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)
	GetApiList(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetApiListRep, err error)
	GetApiPageList(ctx context.Context, req *GetApiListReq, opts ...http.CallOption) (rsp *GetApiListPageRep, err error)
	GetRoleMenuBtn(ctx context.Context, req *GetRoleMenuBtnReq, opts ...http.CallOption) (rsp *GetRoleMenuBtnRep, 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)
	ListRoleMenu(ctx context.Context, req *ListRoleMenuReq, opts ...http.CallOption) (rsp *ListMenuRep, err error)
	ListRoleMenuTree(ctx context.Context, req *ListRoleMenuReq, 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)
	UpdateApi(ctx context.Context, req *UpdateApiReq, 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) (*Role, 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) CreateApi added in v0.0.38

func (c *AuthHTTPClientImpl) CreateApi(ctx context.Context, in *CreateApiReq, opts ...http.CallOption) (*ApiInfo, 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) CreateRoleMenu added in v0.0.14

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

func (*AuthHTTPClientImpl) CreateRoleMenuBtn added in v0.0.14

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

func (*AuthHTTPClientImpl) DelRole

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

func (*AuthHTTPClientImpl) DeleteApi added in v0.0.38

func (c *AuthHTTPClientImpl) DeleteApi(ctx context.Context, in *DeleteApiReq, 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) GetApiList added in v0.0.38

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

func (*AuthHTTPClientImpl) GetApiPageList added in v0.0.41

func (c *AuthHTTPClientImpl) GetApiPageList(ctx context.Context, in *GetApiListReq, opts ...http.CallOption) (*GetApiListPageRep, error)

func (*AuthHTTPClientImpl) GetRoleMenuBtn added in v0.0.14

func (c *AuthHTTPClientImpl) GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...http.CallOption) (*GetRoleMenuBtnRep, 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) ListRoleMenu added in v0.0.14

func (c *AuthHTTPClientImpl) ListRoleMenu(ctx context.Context, in *ListRoleMenuReq, opts ...http.CallOption) (*ListMenuRep, error)

func (*AuthHTTPClientImpl) ListRoleMenuTree added in v0.0.14

func (c *AuthHTTPClientImpl) ListRoleMenuTree(ctx context.Context, in *ListRoleMenuReq, 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)

func (*AuthHTTPClientImpl) UpdateApi added in v0.0.38

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

type AuthHTTPServer

type AuthHTTPServer interface {
	// AddRole 添加角色
	AddRole(context.Context, *AddRoleReq) (*Role, error)
	// AddRolesForUser 给用户设置角色
	AddRolesForUser(context.Context, *SetUserForRoleReq) (*RepStatus, error)
	// CheckAuth 检查权限
	CheckAuth(context.Context, *CheckAuthReq) (*RepStatus, error)
	// CreateApi Api创建
	CreateApi(context.Context, *CreateApiReq) (*ApiInfo, error)
	// CreateMenu 创建菜单
	CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
	// CreateRoleMenu 角色菜单添加
	CreateRoleMenu(context.Context, *CreateRoleMenuReq) (*RepStatus, error)
	// CreateRoleMenuBtn 角色菜单按钮添加
	CreateRoleMenuBtn(context.Context, *CreateRoleMenuBtnReq) (*RepStatus, error)
	// DelRole 删除角色
	DelRole(context.Context, *DelRoleReq) (*RepStatus, error)
	// DeleteApi Api删除
	DeleteApi(context.Context, *DeleteApiReq) (*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)
	// GetApiList Api列表
	GetApiList(context.Context, *emptypb.Empty) (*GetApiListRep, error)
	// GetApiPageList Api列表分页
	GetApiPageList(context.Context, *GetApiListReq) (*GetApiListPageRep, error)
	// GetRoleMenuBtn 角色菜单按钮 - 列表
	GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRep, 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)
	// ListRoleMenu 角色菜单列表(完整)
	ListRoleMenu(context.Context, *ListRoleMenuReq) (*ListMenuRep, error)
	// ListRoleMenuTree 角色菜单 - 树状结构
	ListRoleMenuTree(context.Context, *ListRoleMenuReq) (*ListMenuRep, error)
	// PageRoleList 获取角色列表(分页)
	PageRoleList(context.Context, *PageRoleListReq) (*PageRoleListRep, error)
	// SetRolePolicies 设置角色权限
	SetRolePolicies(context.Context, *SetRolePoliciesReq) (*RepStatus, error)
	// UpdateApi Api更新
	UpdateApi(context.Context, *UpdateApiReq) (*RepStatus, error)
}

type AuthServer

type AuthServer interface {
	// 添加角色
	AddRole(context.Context, *AddRoleReq) (*Role, 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)
	// 角色菜单添加
	CreateRoleMenu(context.Context, *CreateRoleMenuReq) (*RepStatus, error)
	// 角色菜单按钮添加
	CreateRoleMenuBtn(context.Context, *CreateRoleMenuBtnReq) (*RepStatus, error)
	// 角色菜单列表(完整)
	ListRoleMenu(context.Context, *ListRoleMenuReq) (*ListMenuRep, error)
	// 角色菜单 - 树状结构
	ListRoleMenuTree(context.Context, *ListRoleMenuReq) (*ListMenuRep, error)
	// 角色菜单按钮 - 列表
	GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRep, error)
	// Api列表
	GetApiList(context.Context, *emptypb.Empty) (*GetApiListRep, error)
	// Api列表分页
	GetApiPageList(context.Context, *GetApiListReq) (*GetApiListPageRep, error)
	// Api创建
	CreateApi(context.Context, *CreateApiReq) (*ApiInfo, error)
	// Api更新
	UpdateApi(context.Context, *UpdateApiReq) (*RepStatus, error)
	// Api删除
	DeleteApi(context.Context, *DeleteApiReq) (*RepStatus, 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 CreateApiReq added in v0.0.38

type CreateApiReq struct {

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

API创建

func (*CreateApiReq) Descriptor deprecated added in v0.0.38

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

Deprecated: Use CreateApiReq.ProtoReflect.Descriptor instead.

func (*CreateApiReq) GetGroup added in v0.0.38

func (x *CreateApiReq) GetGroup() string

func (*CreateApiReq) GetMethod added in v0.0.38

func (x *CreateApiReq) GetMethod() string

func (*CreateApiReq) GetName added in v0.0.38

func (x *CreateApiReq) GetName() string

func (*CreateApiReq) GetPath added in v0.0.38

func (x *CreateApiReq) GetPath() string

func (*CreateApiReq) ProtoMessage added in v0.0.38

func (*CreateApiReq) ProtoMessage()

func (*CreateApiReq) ProtoReflect added in v0.0.38

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

func (*CreateApiReq) Reset added in v0.0.38

func (x *CreateApiReq) Reset()

func (*CreateApiReq) String added in v0.0.38

func (x *CreateApiReq) String() string

func (*CreateApiReq) Validate added in v0.0.38

func (m *CreateApiReq) Validate() error

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

func (*CreateApiReq) ValidateAll added in v0.0.38

func (m *CreateApiReq) ValidateAll() error

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

type CreateApiReqMultiError added in v0.0.38

type CreateApiReqMultiError []error

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

func (CreateApiReqMultiError) AllErrors added in v0.0.38

func (m CreateApiReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateApiReqMultiError) Error added in v0.0.38

func (m CreateApiReqMultiError) Error() string

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

type CreateApiReqValidationError added in v0.0.38

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

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

func (CreateApiReqValidationError) Cause added in v0.0.38

Cause function returns cause value.

func (CreateApiReqValidationError) Error added in v0.0.38

Error satisfies the builtin error interface

func (CreateApiReqValidationError) ErrorName added in v0.0.38

func (e CreateApiReqValidationError) ErrorName() string

ErrorName returns error name.

func (CreateApiReqValidationError) Field added in v0.0.38

Field function returns field value.

func (CreateApiReqValidationError) Key added in v0.0.38

Key function returns key value.

func (CreateApiReqValidationError) Reason added in v0.0.38

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

type CreateRoleMenuBtnReq struct {

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

创建角色菜单按钮

func (*CreateRoleMenuBtnReq) Descriptor deprecated added in v0.0.14

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

Deprecated: Use CreateRoleMenuBtnReq.ProtoReflect.Descriptor instead.

func (*CreateRoleMenuBtnReq) GetMenuBtnIds added in v0.0.14

func (x *CreateRoleMenuBtnReq) GetMenuBtnIds() []uint64

func (*CreateRoleMenuBtnReq) GetMenuId added in v0.0.14

func (x *CreateRoleMenuBtnReq) GetMenuId() uint64

func (*CreateRoleMenuBtnReq) GetRoleId added in v0.0.14

func (x *CreateRoleMenuBtnReq) GetRoleId() uint64

func (*CreateRoleMenuBtnReq) ProtoMessage added in v0.0.14

func (*CreateRoleMenuBtnReq) ProtoMessage()

func (*CreateRoleMenuBtnReq) ProtoReflect added in v0.0.14

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

func (*CreateRoleMenuBtnReq) Reset added in v0.0.14

func (x *CreateRoleMenuBtnReq) Reset()

func (*CreateRoleMenuBtnReq) String added in v0.0.14

func (x *CreateRoleMenuBtnReq) String() string

func (*CreateRoleMenuBtnReq) Validate added in v0.0.14

func (m *CreateRoleMenuBtnReq) Validate() error

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

func (m *CreateRoleMenuBtnReq) ValidateAll() error

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

type CreateRoleMenuBtnReqMultiError added in v0.0.14

type CreateRoleMenuBtnReqMultiError []error

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

func (CreateRoleMenuBtnReqMultiError) AllErrors added in v0.0.14

func (m CreateRoleMenuBtnReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRoleMenuBtnReqMultiError) Error added in v0.0.14

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

type CreateRoleMenuBtnReqValidationError added in v0.0.14

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

CreateRoleMenuBtnReqValidationError is the validation error returned by CreateRoleMenuBtnReq.Validate if the designated constraints aren't met.

func (CreateRoleMenuBtnReqValidationError) Cause added in v0.0.14

Cause function returns cause value.

func (CreateRoleMenuBtnReqValidationError) Error added in v0.0.14

Error satisfies the builtin error interface

func (CreateRoleMenuBtnReqValidationError) ErrorName added in v0.0.14

ErrorName returns error name.

func (CreateRoleMenuBtnReqValidationError) Field added in v0.0.14

Field function returns field value.

func (CreateRoleMenuBtnReqValidationError) Key added in v0.0.14

Key function returns key value.

func (CreateRoleMenuBtnReqValidationError) Reason added in v0.0.14

Reason function returns reason value.

type CreateRoleMenuReq added in v0.0.14

type CreateRoleMenuReq struct {

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

func (*CreateRoleMenuReq) Descriptor deprecated added in v0.0.14

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

Deprecated: Use CreateRoleMenuReq.ProtoReflect.Descriptor instead.

func (*CreateRoleMenuReq) GetMenuIds added in v0.0.14

func (x *CreateRoleMenuReq) GetMenuIds() []uint64

func (*CreateRoleMenuReq) GetRoleId added in v0.0.14

func (x *CreateRoleMenuReq) GetRoleId() uint64

func (*CreateRoleMenuReq) ProtoMessage added in v0.0.14

func (*CreateRoleMenuReq) ProtoMessage()

func (*CreateRoleMenuReq) ProtoReflect added in v0.0.14

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

func (*CreateRoleMenuReq) Reset added in v0.0.14

func (x *CreateRoleMenuReq) Reset()

func (*CreateRoleMenuReq) String added in v0.0.14

func (x *CreateRoleMenuReq) String() string

func (*CreateRoleMenuReq) Validate added in v0.0.14

func (m *CreateRoleMenuReq) Validate() error

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

func (m *CreateRoleMenuReq) ValidateAll() error

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

type CreateRoleMenuReqMultiError added in v0.0.14

type CreateRoleMenuReqMultiError []error

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

func (CreateRoleMenuReqMultiError) AllErrors added in v0.0.14

func (m CreateRoleMenuReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRoleMenuReqMultiError) Error added in v0.0.14

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

type CreateRoleMenuReqValidationError added in v0.0.14

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

CreateRoleMenuReqValidationError is the validation error returned by CreateRoleMenuReq.Validate if the designated constraints aren't met.

func (CreateRoleMenuReqValidationError) Cause added in v0.0.14

Cause function returns cause value.

func (CreateRoleMenuReqValidationError) Error added in v0.0.14

Error satisfies the builtin error interface

func (CreateRoleMenuReqValidationError) ErrorName added in v0.0.14

ErrorName returns error name.

func (CreateRoleMenuReqValidationError) Field added in v0.0.14

Field function returns field value.

func (CreateRoleMenuReqValidationError) Key added in v0.0.14

Key function returns key value.

func (CreateRoleMenuReqValidationError) Reason added in v0.0.14

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

type DeleteApiReq struct {

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

API删除

func (*DeleteApiReq) Descriptor deprecated added in v0.0.38

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

Deprecated: Use DeleteApiReq.ProtoReflect.Descriptor instead.

func (*DeleteApiReq) GetId added in v0.0.38

func (x *DeleteApiReq) GetId() uint64

func (*DeleteApiReq) ProtoMessage added in v0.0.38

func (*DeleteApiReq) ProtoMessage()

func (*DeleteApiReq) ProtoReflect added in v0.0.38

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

func (*DeleteApiReq) Reset added in v0.0.38

func (x *DeleteApiReq) Reset()

func (*DeleteApiReq) String added in v0.0.38

func (x *DeleteApiReq) String() string

func (*DeleteApiReq) Validate added in v0.0.38

func (m *DeleteApiReq) Validate() error

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

func (*DeleteApiReq) ValidateAll added in v0.0.38

func (m *DeleteApiReq) ValidateAll() error

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

type DeleteApiReqMultiError added in v0.0.38

type DeleteApiReqMultiError []error

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

func (DeleteApiReqMultiError) AllErrors added in v0.0.38

func (m DeleteApiReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteApiReqMultiError) Error added in v0.0.38

func (m DeleteApiReqMultiError) Error() string

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

type DeleteApiReqValidationError added in v0.0.38

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

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

func (DeleteApiReqValidationError) Cause added in v0.0.38

Cause function returns cause value.

func (DeleteApiReqValidationError) Error added in v0.0.38

Error satisfies the builtin error interface

func (DeleteApiReqValidationError) ErrorName added in v0.0.38

func (e DeleteApiReqValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteApiReqValidationError) Field added in v0.0.38

Field function returns field value.

func (DeleteApiReqValidationError) Key added in v0.0.38

Key function returns key value.

func (DeleteApiReqValidationError) Reason added in v0.0.38

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

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

type GetApiListPageRep struct {

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

func (*GetApiListPageRep) Descriptor deprecated added in v0.0.38

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

Deprecated: Use GetApiListPageRep.ProtoReflect.Descriptor instead.

func (*GetApiListPageRep) GetList added in v0.0.38

func (x *GetApiListPageRep) GetList() []*ApiInfo

func (*GetApiListPageRep) GetTotal added in v0.0.38

func (x *GetApiListPageRep) GetTotal() uint64

func (*GetApiListPageRep) ProtoMessage added in v0.0.38

func (*GetApiListPageRep) ProtoMessage()

func (*GetApiListPageRep) ProtoReflect added in v0.0.38

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

func (*GetApiListPageRep) Reset added in v0.0.38

func (x *GetApiListPageRep) Reset()

func (*GetApiListPageRep) String added in v0.0.38

func (x *GetApiListPageRep) String() string

func (*GetApiListPageRep) Validate added in v0.0.38

func (m *GetApiListPageRep) Validate() error

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

func (m *GetApiListPageRep) ValidateAll() error

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

type GetApiListPageRepMultiError added in v0.0.38

type GetApiListPageRepMultiError []error

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

func (GetApiListPageRepMultiError) AllErrors added in v0.0.38

func (m GetApiListPageRepMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetApiListPageRepMultiError) Error added in v0.0.38

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

type GetApiListPageRepValidationError added in v0.0.38

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

GetApiListPageRepValidationError is the validation error returned by GetApiListPageRep.Validate if the designated constraints aren't met.

func (GetApiListPageRepValidationError) Cause added in v0.0.38

Cause function returns cause value.

func (GetApiListPageRepValidationError) Error added in v0.0.38

Error satisfies the builtin error interface

func (GetApiListPageRepValidationError) ErrorName added in v0.0.38

ErrorName returns error name.

func (GetApiListPageRepValidationError) Field added in v0.0.38

Field function returns field value.

func (GetApiListPageRepValidationError) Key added in v0.0.38

Key function returns key value.

func (GetApiListPageRepValidationError) Reason added in v0.0.38

Reason function returns reason value.

type GetApiListRep added in v0.0.42

type GetApiListRep struct {

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

获取完整列表

func (*GetApiListRep) Descriptor deprecated added in v0.0.42

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

Deprecated: Use GetApiListRep.ProtoReflect.Descriptor instead.

func (*GetApiListRep) GetList added in v0.0.42

func (x *GetApiListRep) GetList() []*ApiInfo

func (*GetApiListRep) ProtoMessage added in v0.0.42

func (*GetApiListRep) ProtoMessage()

func (*GetApiListRep) ProtoReflect added in v0.0.42

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

func (*GetApiListRep) Reset added in v0.0.42

func (x *GetApiListRep) Reset()

func (*GetApiListRep) String added in v0.0.42

func (x *GetApiListRep) String() string

func (*GetApiListRep) Validate added in v0.0.42

func (m *GetApiListRep) Validate() error

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

func (m *GetApiListRep) ValidateAll() error

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

type GetApiListRepMultiError added in v0.0.42

type GetApiListRepMultiError []error

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

func (GetApiListRepMultiError) AllErrors added in v0.0.42

func (m GetApiListRepMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetApiListRepMultiError) Error added in v0.0.42

func (m GetApiListRepMultiError) Error() string

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

type GetApiListRepValidationError added in v0.0.42

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

GetApiListRepValidationError is the validation error returned by GetApiListRep.Validate if the designated constraints aren't met.

func (GetApiListRepValidationError) Cause added in v0.0.42

Cause function returns cause value.

func (GetApiListRepValidationError) Error added in v0.0.42

Error satisfies the builtin error interface

func (GetApiListRepValidationError) ErrorName added in v0.0.42

func (e GetApiListRepValidationError) ErrorName() string

ErrorName returns error name.

func (GetApiListRepValidationError) Field added in v0.0.42

Field function returns field value.

func (GetApiListRepValidationError) Key added in v0.0.42

Key function returns key value.

func (GetApiListRepValidationError) Reason added in v0.0.42

Reason function returns reason value.

type GetApiListReq added in v0.0.38

type GetApiListReq struct {

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

请求 - API分页列表

func (*GetApiListReq) Descriptor deprecated added in v0.0.38

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

Deprecated: Use GetApiListReq.ProtoReflect.Descriptor instead.

func (*GetApiListReq) GetGroup added in v0.0.38

func (x *GetApiListReq) GetGroup() string

func (*GetApiListReq) GetMethod added in v0.0.38

func (x *GetApiListReq) GetMethod() string

func (*GetApiListReq) GetName added in v0.0.38

func (x *GetApiListReq) GetName() string

func (*GetApiListReq) GetPage added in v0.0.38

func (x *GetApiListReq) GetPage() uint64

func (*GetApiListReq) GetPageSize added in v0.0.38

func (x *GetApiListReq) GetPageSize() uint64

func (*GetApiListReq) GetPath added in v0.0.38

func (x *GetApiListReq) GetPath() string

func (*GetApiListReq) ProtoMessage added in v0.0.38

func (*GetApiListReq) ProtoMessage()

func (*GetApiListReq) ProtoReflect added in v0.0.38

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

func (*GetApiListReq) Reset added in v0.0.38

func (x *GetApiListReq) Reset()

func (*GetApiListReq) String added in v0.0.38

func (x *GetApiListReq) String() string

func (*GetApiListReq) Validate added in v0.0.38

func (m *GetApiListReq) Validate() error

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

func (*GetApiListReq) ValidateAll added in v0.0.38

func (m *GetApiListReq) ValidateAll() error

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

type GetApiListReqMultiError added in v0.0.38

type GetApiListReqMultiError []error

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

func (GetApiListReqMultiError) AllErrors added in v0.0.38

func (m GetApiListReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetApiListReqMultiError) Error added in v0.0.38

func (m GetApiListReqMultiError) Error() string

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

type GetApiListReqValidationError added in v0.0.38

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

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

func (GetApiListReqValidationError) Cause added in v0.0.38

Cause function returns cause value.

func (GetApiListReqValidationError) Error added in v0.0.38

Error satisfies the builtin error interface

func (GetApiListReqValidationError) ErrorName added in v0.0.38

func (e GetApiListReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetApiListReqValidationError) Field added in v0.0.38

Field function returns field value.

func (GetApiListReqValidationError) Key added in v0.0.38

Key function returns key value.

func (GetApiListReqValidationError) Reason added in v0.0.38

Reason function returns reason value.

type GetRoleMenuBtnRep added in v0.0.15

type GetRoleMenuBtnRep struct {

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

角色菜单按钮列表

func (*GetRoleMenuBtnRep) Descriptor deprecated added in v0.0.15

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

Deprecated: Use GetRoleMenuBtnRep.ProtoReflect.Descriptor instead.

func (*GetRoleMenuBtnRep) GetList added in v0.0.15

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

func (*GetRoleMenuBtnRep) ProtoMessage added in v0.0.15

func (*GetRoleMenuBtnRep) ProtoMessage()

func (*GetRoleMenuBtnRep) ProtoReflect added in v0.0.15

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

func (*GetRoleMenuBtnRep) Reset added in v0.0.15

func (x *GetRoleMenuBtnRep) Reset()

func (*GetRoleMenuBtnRep) String added in v0.0.15

func (x *GetRoleMenuBtnRep) String() string

func (*GetRoleMenuBtnRep) Validate added in v0.0.15

func (m *GetRoleMenuBtnRep) Validate() error

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

func (m *GetRoleMenuBtnRep) ValidateAll() error

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

type GetRoleMenuBtnRepMultiError added in v0.0.15

type GetRoleMenuBtnRepMultiError []error

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

func (GetRoleMenuBtnRepMultiError) AllErrors added in v0.0.15

func (m GetRoleMenuBtnRepMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleMenuBtnRepMultiError) Error added in v0.0.15

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

type GetRoleMenuBtnRepValidationError added in v0.0.15

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

GetRoleMenuBtnRepValidationError is the validation error returned by GetRoleMenuBtnRep.Validate if the designated constraints aren't met.

func (GetRoleMenuBtnRepValidationError) Cause added in v0.0.15

Cause function returns cause value.

func (GetRoleMenuBtnRepValidationError) Error added in v0.0.15

Error satisfies the builtin error interface

func (GetRoleMenuBtnRepValidationError) ErrorName added in v0.0.15

ErrorName returns error name.

func (GetRoleMenuBtnRepValidationError) Field added in v0.0.15

Field function returns field value.

func (GetRoleMenuBtnRepValidationError) Key added in v0.0.15

Key function returns key value.

func (GetRoleMenuBtnRepValidationError) Reason added in v0.0.15

Reason function returns reason value.

type GetRoleMenuBtnReq added in v0.0.14

type GetRoleMenuBtnReq struct {

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

获取角色菜单按钮

func (*GetRoleMenuBtnReq) Descriptor deprecated added in v0.0.14

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

Deprecated: Use GetRoleMenuBtnReq.ProtoReflect.Descriptor instead.

func (*GetRoleMenuBtnReq) GetMenuId added in v0.0.14

func (x *GetRoleMenuBtnReq) GetMenuId() uint64

func (*GetRoleMenuBtnReq) GetRoleId added in v0.0.14

func (x *GetRoleMenuBtnReq) GetRoleId() uint64

func (*GetRoleMenuBtnReq) GetRoleName added in v0.0.14

func (x *GetRoleMenuBtnReq) GetRoleName() string

func (*GetRoleMenuBtnReq) ProtoMessage added in v0.0.14

func (*GetRoleMenuBtnReq) ProtoMessage()

func (*GetRoleMenuBtnReq) ProtoReflect added in v0.0.14

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

func (*GetRoleMenuBtnReq) Reset added in v0.0.14

func (x *GetRoleMenuBtnReq) Reset()

func (*GetRoleMenuBtnReq) String added in v0.0.14

func (x *GetRoleMenuBtnReq) String() string

func (*GetRoleMenuBtnReq) Validate added in v0.0.14

func (m *GetRoleMenuBtnReq) Validate() error

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

func (*GetRoleMenuBtnReq) ValidateAll added in v0.0.14

func (m *GetRoleMenuBtnReq) ValidateAll() error

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

type GetRoleMenuBtnReqMultiError added in v0.0.14

type GetRoleMenuBtnReqMultiError []error

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

func (GetRoleMenuBtnReqMultiError) AllErrors added in v0.0.14

func (m GetRoleMenuBtnReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleMenuBtnReqMultiError) Error added in v0.0.14

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

type GetRoleMenuBtnReqValidationError added in v0.0.14

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

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

func (GetRoleMenuBtnReqValidationError) Cause added in v0.0.14

Cause function returns cause value.

func (GetRoleMenuBtnReqValidationError) Error added in v0.0.14

Error satisfies the builtin error interface

func (GetRoleMenuBtnReqValidationError) ErrorName added in v0.0.14

ErrorName returns error name.

func (GetRoleMenuBtnReqValidationError) Field added in v0.0.14

Field function returns field value.

func (GetRoleMenuBtnReqValidationError) Key added in v0.0.14

Key function returns key value.

func (GetRoleMenuBtnReqValidationError) Reason added in v0.0.14

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

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

角色菜单列表

func (*ListRoleMenuReq) Descriptor deprecated added in v0.0.14

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

Deprecated: Use ListRoleMenuReq.ProtoReflect.Descriptor instead.

func (*ListRoleMenuReq) GetRole added in v0.0.14

func (x *ListRoleMenuReq) GetRole() string

func (*ListRoleMenuReq) ProtoMessage added in v0.0.14

func (*ListRoleMenuReq) ProtoMessage()

func (*ListRoleMenuReq) ProtoReflect added in v0.0.14

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

func (*ListRoleMenuReq) Reset added in v0.0.14

func (x *ListRoleMenuReq) Reset()

func (*ListRoleMenuReq) String added in v0.0.14

func (x *ListRoleMenuReq) String() string

func (*ListRoleMenuReq) Validate added in v0.0.14

func (m *ListRoleMenuReq) Validate() error

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

func (m *ListRoleMenuReq) ValidateAll() error

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

type ListRoleMenuReqMultiError added in v0.0.14

type ListRoleMenuReqMultiError []error

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

func (ListRoleMenuReqMultiError) AllErrors added in v0.0.14

func (m ListRoleMenuReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRoleMenuReqMultiError) Error added in v0.0.14

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

type ListRoleMenuReqValidationError added in v0.0.14

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

ListRoleMenuReqValidationError is the validation error returned by ListRoleMenuReq.Validate if the designated constraints aren't met.

func (ListRoleMenuReqValidationError) Cause added in v0.0.14

Cause function returns cause value.

func (ListRoleMenuReqValidationError) Error added in v0.0.14

Error satisfies the builtin error interface

func (ListRoleMenuReqValidationError) ErrorName added in v0.0.14

func (e ListRoleMenuReqValidationError) ErrorName() string

ErrorName returns error name.

func (ListRoleMenuReqValidationError) Field added in v0.0.14

Field function returns field value.

func (ListRoleMenuReqValidationError) Key added in v0.0.14

Key function returns key value.

func (ListRoleMenuReqValidationError) Reason added in v0.0.14

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 uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 菜单id
	MenuId uint64 `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() uint64
func (x *MenuBtn) GetIdentifier() string
func (x *MenuBtn) GetMenuId() uint64
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) CreateApi added in v0.0.38

func (UnimplementedAuthServer) CreateMenu added in v0.0.8

func (UnimplementedAuthServer) CreateRoleMenu added in v0.0.14

func (UnimplementedAuthServer) CreateRoleMenuBtn added in v0.0.14

func (UnimplementedAuthServer) DelRole

func (UnimplementedAuthServer) DeleteApi added in v0.0.38

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) GetApiList added in v0.0.38

func (UnimplementedAuthServer) GetApiPageList added in v0.0.41

func (UnimplementedAuthServer) GetRoleMenuBtn added in v0.0.14

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) ListRoleMenu added in v0.0.14

func (UnimplementedAuthServer) ListRoleMenuTree added in v0.0.14

func (UnimplementedAuthServer) PageRoleList

func (UnimplementedAuthServer) SetRolePolicies

func (UnimplementedAuthServer) UpdateApi added in v0.0.38

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.

type UpdateApiReq added in v0.0.38

type UpdateApiReq struct {

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

API更新

func (*UpdateApiReq) Descriptor deprecated added in v0.0.38

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

Deprecated: Use UpdateApiReq.ProtoReflect.Descriptor instead.

func (*UpdateApiReq) GetGroup added in v0.0.38

func (x *UpdateApiReq) GetGroup() string

func (*UpdateApiReq) GetId added in v0.0.38

func (x *UpdateApiReq) GetId() uint64

func (*UpdateApiReq) GetMethod added in v0.0.38

func (x *UpdateApiReq) GetMethod() string

func (*UpdateApiReq) GetName added in v0.0.38

func (x *UpdateApiReq) GetName() string

func (*UpdateApiReq) GetPath added in v0.0.38

func (x *UpdateApiReq) GetPath() string

func (*UpdateApiReq) ProtoMessage added in v0.0.38

func (*UpdateApiReq) ProtoMessage()

func (*UpdateApiReq) ProtoReflect added in v0.0.38

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

func (*UpdateApiReq) Reset added in v0.0.38

func (x *UpdateApiReq) Reset()

func (*UpdateApiReq) String added in v0.0.38

func (x *UpdateApiReq) String() string

func (*UpdateApiReq) Validate added in v0.0.38

func (m *UpdateApiReq) Validate() error

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

func (*UpdateApiReq) ValidateAll added in v0.0.38

func (m *UpdateApiReq) ValidateAll() error

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

type UpdateApiReqMultiError added in v0.0.38

type UpdateApiReqMultiError []error

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

func (UpdateApiReqMultiError) AllErrors added in v0.0.38

func (m UpdateApiReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateApiReqMultiError) Error added in v0.0.38

func (m UpdateApiReqMultiError) Error() string

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

type UpdateApiReqValidationError added in v0.0.38

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

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

func (UpdateApiReqValidationError) Cause added in v0.0.38

Cause function returns cause value.

func (UpdateApiReqValidationError) Error added in v0.0.38

Error satisfies the builtin error interface

func (UpdateApiReqValidationError) ErrorName added in v0.0.38

func (e UpdateApiReqValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateApiReqValidationError) Field added in v0.0.38

Field function returns field value.

func (UpdateApiReqValidationError) Key added in v0.0.38

Key function returns key value.

func (UpdateApiReqValidationError) Reason added in v0.0.38

Reason function returns reason value.

Jump to

Keyboard shortcuts

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