Documentation ¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type CreateRoleRequest
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)
- func (m *CreateRoleRequest) GetForbiddenMenu() []string
- func (m *CreateRoleRequest) GetName() string
- func (m *CreateRoleRequest) GetPermission() []string
- func (*CreateRoleRequest) ProtoMessage()
- func (m *CreateRoleRequest) Reset()
- func (m *CreateRoleRequest) String() string
- func (this *CreateRoleRequest) Validate() error
- func (m *CreateRoleRequest) XXX_DiscardUnknown()
- func (m *CreateRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateRoleRequest) XXX_Merge(src proto.Message)
- func (m *CreateRoleRequest) XXX_Size() int
- func (m *CreateRoleRequest) XXX_Unmarshal(b []byte) error
- type CreateRoleResponse
- func (*CreateRoleResponse) Descriptor() ([]byte, []int)
- func (m *CreateRoleResponse) GetId() string
- func (*CreateRoleResponse) ProtoMessage()
- func (m *CreateRoleResponse) Reset()
- func (m *CreateRoleResponse) String() string
- func (this *CreateRoleResponse) Validate() error
- func (m *CreateRoleResponse) XXX_DiscardUnknown()
- func (m *CreateRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateRoleResponse) XXX_Merge(src proto.Message)
- func (m *CreateRoleResponse) XXX_Size() int
- func (m *CreateRoleResponse) XXX_Unmarshal(b []byte) error
- type CreateRoleResponseWrapper
- func (*CreateRoleResponseWrapper) Descriptor() ([]byte, []int)
- func (m *CreateRoleResponseWrapper) GetCode() int32
- func (m *CreateRoleResponseWrapper) GetCodeExplain() string
- func (m *CreateRoleResponseWrapper) GetData() *CreateRoleResponse
- func (m *CreateRoleResponseWrapper) GetError() string
- func (*CreateRoleResponseWrapper) ProtoMessage()
- func (m *CreateRoleResponseWrapper) Reset()
- func (m *CreateRoleResponseWrapper) String() string
- func (this *CreateRoleResponseWrapper) Validate() error
- func (m *CreateRoleResponseWrapper) XXX_DiscardUnknown()
- func (m *CreateRoleResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateRoleResponseWrapper) XXX_Merge(src proto.Message)
- func (m *CreateRoleResponseWrapper) XXX_Size() int
- func (m *CreateRoleResponseWrapper) XXX_Unmarshal(b []byte) error
- type GetPermissionListRequest
- func (*GetPermissionListRequest) Descriptor() ([]byte, []int)
- func (m *GetPermissionListRequest) GetAction() string
- func (m *GetPermissionListRequest) GetAction_In() string
- func (m *GetPermissionListRequest) GetXXX_RestFieldMask() []string
- func (*GetPermissionListRequest) ProtoMessage()
- func (m *GetPermissionListRequest) Reset()
- func (m *GetPermissionListRequest) String() string
- func (this *GetPermissionListRequest) Validate() error
- func (m *GetPermissionListRequest) XXX_DiscardUnknown()
- func (m *GetPermissionListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPermissionListRequest) XXX_Merge(src proto.Message)
- func (m *GetPermissionListRequest) XXX_Size() int
- func (m *GetPermissionListRequest) XXX_Unmarshal(b []byte) error
- type GetPermissionListResponse
- func (*GetPermissionListResponse) Descriptor() ([]byte, []int)
- func (m *GetPermissionListResponse) GetCode() int32
- func (m *GetPermissionListResponse) GetData() []*permission.Permission
- func (*GetPermissionListResponse) ProtoMessage()
- func (m *GetPermissionListResponse) Reset()
- func (m *GetPermissionListResponse) String() string
- func (this *GetPermissionListResponse) Validate() error
- func (m *GetPermissionListResponse) XXX_DiscardUnknown()
- func (m *GetPermissionListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPermissionListResponse) XXX_Merge(src proto.Message)
- func (m *GetPermissionListResponse) XXX_Size() int
- func (m *GetPermissionListResponse) XXX_Unmarshal(b []byte) error
- type GetPermissionListResponseWrapper
- func (*GetPermissionListResponseWrapper) Descriptor() ([]byte, []int)
- func (m *GetPermissionListResponseWrapper) GetCode() int32
- func (m *GetPermissionListResponseWrapper) GetCodeExplain() string
- func (m *GetPermissionListResponseWrapper) GetData() *GetPermissionListResponse
- func (m *GetPermissionListResponseWrapper) GetError() string
- func (*GetPermissionListResponseWrapper) ProtoMessage()
- func (m *GetPermissionListResponseWrapper) Reset()
- func (m *GetPermissionListResponseWrapper) String() string
- func (this *GetPermissionListResponseWrapper) Validate() error
- func (m *GetPermissionListResponseWrapper) XXX_DiscardUnknown()
- func (m *GetPermissionListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPermissionListResponseWrapper) XXX_Merge(src proto.Message)
- func (m *GetPermissionListResponseWrapper) XXX_Size() int
- func (m *GetPermissionListResponseWrapper) XXX_Unmarshal(b []byte) error
- type GetRoleDetailRequest
- func (*GetRoleDetailRequest) Descriptor() ([]byte, []int)
- func (m *GetRoleDetailRequest) GetId() string
- func (*GetRoleDetailRequest) ProtoMessage()
- func (m *GetRoleDetailRequest) Reset()
- func (m *GetRoleDetailRequest) String() string
- func (this *GetRoleDetailRequest) Validate() error
- func (m *GetRoleDetailRequest) XXX_DiscardUnknown()
- func (m *GetRoleDetailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRoleDetailRequest) XXX_Merge(src proto.Message)
- func (m *GetRoleDetailRequest) XXX_Size() int
- func (m *GetRoleDetailRequest) XXX_Unmarshal(b []byte) error
- type GetRoleDetailResponse
- func (*GetRoleDetailResponse) Descriptor() ([]byte, []int)
- func (m *GetRoleDetailResponse) GetForbiddenMenu() []string
- func (m *GetRoleDetailResponse) GetId() string
- func (m *GetRoleDetailResponse) GetOrg() int32
- func (m *GetRoleDetailResponse) GetPermission() []string
- func (m *GetRoleDetailResponse) GetPermissionIdMap() *types.Struct
- func (m *GetRoleDetailResponse) GetRole() string
- func (m *GetRoleDetailResponse) GetUser() []string
- func (m *GetRoleDetailResponse) GetUserGroup() []string
- func (*GetRoleDetailResponse) ProtoMessage()
- func (m *GetRoleDetailResponse) Reset()
- func (m *GetRoleDetailResponse) String() string
- func (this *GetRoleDetailResponse) Validate() error
- func (m *GetRoleDetailResponse) XXX_DiscardUnknown()
- func (m *GetRoleDetailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRoleDetailResponse) XXX_Merge(src proto.Message)
- func (m *GetRoleDetailResponse) XXX_Size() int
- func (m *GetRoleDetailResponse) XXX_Unmarshal(b []byte) error
- type GetRoleDetailResponseWrapper
- func (*GetRoleDetailResponseWrapper) Descriptor() ([]byte, []int)
- func (m *GetRoleDetailResponseWrapper) GetCode() int32
- func (m *GetRoleDetailResponseWrapper) GetCodeExplain() string
- func (m *GetRoleDetailResponseWrapper) GetData() *GetRoleDetailResponse
- func (m *GetRoleDetailResponseWrapper) GetError() string
- func (*GetRoleDetailResponseWrapper) ProtoMessage()
- func (m *GetRoleDetailResponseWrapper) Reset()
- func (m *GetRoleDetailResponseWrapper) String() string
- func (this *GetRoleDetailResponseWrapper) Validate() error
- func (m *GetRoleDetailResponseWrapper) XXX_DiscardUnknown()
- func (m *GetRoleDetailResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRoleDetailResponseWrapper) XXX_Merge(src proto.Message)
- func (m *GetRoleDetailResponseWrapper) XXX_Size() int
- func (m *GetRoleDetailResponseWrapper) XXX_Unmarshal(b []byte) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func RegisterService(s giraffe_micro.Server, srv Service)
Types ¶
type Client ¶
type Client interface { CreateRole(ctx context.Context, in *CreateRoleRequest) (*CreateRoleResponse, error) GetPermissionList(ctx context.Context, in *GetPermissionListRequest) (*GetPermissionListResponse, error) GetRoleDetail(ctx context.Context, in *GetRoleDetailRequest) (*GetRoleDetailResponse, error) }
Client is the client API for permission_ctrl service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(c giraffe_micro.Client) Client
type CreateRoleRequest ¶
type CreateRoleRequest struct { // //角色名 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"` // //角色禁用菜单列表 ForbiddenMenu []string `protobuf:"bytes,2,rep,name=forbidden_menu,json=forbiddenMenu,proto3" json:"forbidden_menu" form:"forbidden_menu"` // //角色下权限id列表 Permission []string `protobuf:"bytes,3,rep,name=permission,proto3" json:"permission" form:"permission"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CreateRole请求
func (*CreateRoleRequest) Descriptor ¶
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
func (*CreateRoleRequest) GetForbiddenMenu ¶
func (m *CreateRoleRequest) GetForbiddenMenu() []string
func (*CreateRoleRequest) GetName ¶
func (m *CreateRoleRequest) GetName() string
func (*CreateRoleRequest) GetPermission ¶
func (m *CreateRoleRequest) GetPermission() []string
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) Reset ¶
func (m *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (m *CreateRoleRequest) String() string
func (*CreateRoleRequest) Validate ¶
func (this *CreateRoleRequest) Validate() error
func (*CreateRoleRequest) XXX_DiscardUnknown ¶
func (m *CreateRoleRequest) XXX_DiscardUnknown()
func (*CreateRoleRequest) XXX_Marshal ¶
func (m *CreateRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRoleRequest) XXX_Merge ¶
func (m *CreateRoleRequest) XXX_Merge(src proto.Message)
func (*CreateRoleRequest) XXX_Size ¶
func (m *CreateRoleRequest) XXX_Size() int
func (*CreateRoleRequest) XXX_Unmarshal ¶
func (m *CreateRoleRequest) XXX_Unmarshal(b []byte) error
type CreateRoleResponse ¶
type CreateRoleResponse struct { // //角色id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CreateRole返回
func (*CreateRoleResponse) Descriptor ¶
func (*CreateRoleResponse) Descriptor() ([]byte, []int)
func (*CreateRoleResponse) GetId ¶
func (m *CreateRoleResponse) GetId() string
func (*CreateRoleResponse) ProtoMessage ¶
func (*CreateRoleResponse) ProtoMessage()
func (*CreateRoleResponse) Reset ¶
func (m *CreateRoleResponse) Reset()
func (*CreateRoleResponse) String ¶
func (m *CreateRoleResponse) String() string
func (*CreateRoleResponse) Validate ¶
func (this *CreateRoleResponse) Validate() error
func (*CreateRoleResponse) XXX_DiscardUnknown ¶
func (m *CreateRoleResponse) XXX_DiscardUnknown()
func (*CreateRoleResponse) XXX_Marshal ¶
func (m *CreateRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRoleResponse) XXX_Merge ¶
func (m *CreateRoleResponse) XXX_Merge(src proto.Message)
func (*CreateRoleResponse) XXX_Size ¶
func (m *CreateRoleResponse) XXX_Size() int
func (*CreateRoleResponse) XXX_Unmarshal ¶
func (m *CreateRoleResponse) XXX_Unmarshal(b []byte) error
type CreateRoleResponseWrapper ¶
type CreateRoleResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *CreateRoleResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CreateRoleApi返回
func (*CreateRoleResponseWrapper) Descriptor ¶
func (*CreateRoleResponseWrapper) Descriptor() ([]byte, []int)
func (*CreateRoleResponseWrapper) GetCode ¶
func (m *CreateRoleResponseWrapper) GetCode() int32
func (*CreateRoleResponseWrapper) GetCodeExplain ¶
func (m *CreateRoleResponseWrapper) GetCodeExplain() string
func (*CreateRoleResponseWrapper) GetData ¶
func (m *CreateRoleResponseWrapper) GetData() *CreateRoleResponse
func (*CreateRoleResponseWrapper) GetError ¶
func (m *CreateRoleResponseWrapper) GetError() string
func (*CreateRoleResponseWrapper) ProtoMessage ¶
func (*CreateRoleResponseWrapper) ProtoMessage()
func (*CreateRoleResponseWrapper) Reset ¶
func (m *CreateRoleResponseWrapper) Reset()
func (*CreateRoleResponseWrapper) String ¶
func (m *CreateRoleResponseWrapper) String() string
func (*CreateRoleResponseWrapper) Validate ¶
func (this *CreateRoleResponseWrapper) Validate() error
func (*CreateRoleResponseWrapper) XXX_DiscardUnknown ¶
func (m *CreateRoleResponseWrapper) XXX_DiscardUnknown()
func (*CreateRoleResponseWrapper) XXX_Marshal ¶
func (m *CreateRoleResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRoleResponseWrapper) XXX_Merge ¶
func (m *CreateRoleResponseWrapper) XXX_Merge(src proto.Message)
func (*CreateRoleResponseWrapper) XXX_Size ¶
func (m *CreateRoleResponseWrapper) XXX_Size() int
func (*CreateRoleResponseWrapper) XXX_Unmarshal ¶
func (m *CreateRoleResponseWrapper) XXX_Unmarshal(b []byte) error
type GetPermissionListRequest ¶
type GetPermissionListRequest struct { // //action名称过滤,多个用,分隔 Action_In string `protobuf:"bytes,1,opt,name=action__in,json=actionIn,proto3" json:"action__in" form:"action__in"` // //sdk限制字段使用 XXX_RestFieldMask []string `protobuf:"bytes,2,rep,name=XXX_RestFieldMask,json=XXXRestFieldMask,proto3" json:"XXX_RestFieldMask" form:"XXX_RestFieldMask"` // //需要鉴权的动作, 全局唯一 Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action" form:"action"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetPermissionList请求
func (*GetPermissionListRequest) Descriptor ¶
func (*GetPermissionListRequest) Descriptor() ([]byte, []int)
func (*GetPermissionListRequest) GetAction ¶
func (m *GetPermissionListRequest) GetAction() string
func (*GetPermissionListRequest) GetAction_In ¶
func (m *GetPermissionListRequest) GetAction_In() string
func (*GetPermissionListRequest) GetXXX_RestFieldMask ¶
func (m *GetPermissionListRequest) GetXXX_RestFieldMask() []string
func (*GetPermissionListRequest) ProtoMessage ¶
func (*GetPermissionListRequest) ProtoMessage()
func (*GetPermissionListRequest) Reset ¶
func (m *GetPermissionListRequest) Reset()
func (*GetPermissionListRequest) String ¶
func (m *GetPermissionListRequest) String() string
func (*GetPermissionListRequest) Validate ¶
func (this *GetPermissionListRequest) Validate() error
func (*GetPermissionListRequest) XXX_DiscardUnknown ¶
func (m *GetPermissionListRequest) XXX_DiscardUnknown()
func (*GetPermissionListRequest) XXX_Marshal ¶
func (m *GetPermissionListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPermissionListRequest) XXX_Merge ¶
func (m *GetPermissionListRequest) XXX_Merge(src proto.Message)
func (*GetPermissionListRequest) XXX_Size ¶
func (m *GetPermissionListRequest) XXX_Size() int
func (*GetPermissionListRequest) XXX_Unmarshal ¶
func (m *GetPermissionListRequest) XXX_Unmarshal(b []byte) error
type GetPermissionListResponse ¶
type GetPermissionListResponse struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //数据 Data []*permission.Permission `protobuf:"bytes,2,rep,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetPermissionList返回
func (*GetPermissionListResponse) Descriptor ¶
func (*GetPermissionListResponse) Descriptor() ([]byte, []int)
func (*GetPermissionListResponse) GetCode ¶
func (m *GetPermissionListResponse) GetCode() int32
func (*GetPermissionListResponse) GetData ¶
func (m *GetPermissionListResponse) GetData() []*permission.Permission
func (*GetPermissionListResponse) ProtoMessage ¶
func (*GetPermissionListResponse) ProtoMessage()
func (*GetPermissionListResponse) Reset ¶
func (m *GetPermissionListResponse) Reset()
func (*GetPermissionListResponse) String ¶
func (m *GetPermissionListResponse) String() string
func (*GetPermissionListResponse) Validate ¶
func (this *GetPermissionListResponse) Validate() error
func (*GetPermissionListResponse) XXX_DiscardUnknown ¶
func (m *GetPermissionListResponse) XXX_DiscardUnknown()
func (*GetPermissionListResponse) XXX_Marshal ¶
func (m *GetPermissionListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPermissionListResponse) XXX_Merge ¶
func (m *GetPermissionListResponse) XXX_Merge(src proto.Message)
func (*GetPermissionListResponse) XXX_Size ¶
func (m *GetPermissionListResponse) XXX_Size() int
func (*GetPermissionListResponse) XXX_Unmarshal ¶
func (m *GetPermissionListResponse) XXX_Unmarshal(b []byte) error
type GetPermissionListResponseWrapper ¶
type GetPermissionListResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *GetPermissionListResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetPermissionListApi返回
func (*GetPermissionListResponseWrapper) Descriptor ¶
func (*GetPermissionListResponseWrapper) Descriptor() ([]byte, []int)
func (*GetPermissionListResponseWrapper) GetCode ¶
func (m *GetPermissionListResponseWrapper) GetCode() int32
func (*GetPermissionListResponseWrapper) GetCodeExplain ¶
func (m *GetPermissionListResponseWrapper) GetCodeExplain() string
func (*GetPermissionListResponseWrapper) GetData ¶
func (m *GetPermissionListResponseWrapper) GetData() *GetPermissionListResponse
func (*GetPermissionListResponseWrapper) GetError ¶
func (m *GetPermissionListResponseWrapper) GetError() string
func (*GetPermissionListResponseWrapper) ProtoMessage ¶
func (*GetPermissionListResponseWrapper) ProtoMessage()
func (*GetPermissionListResponseWrapper) Reset ¶
func (m *GetPermissionListResponseWrapper) Reset()
func (*GetPermissionListResponseWrapper) String ¶
func (m *GetPermissionListResponseWrapper) String() string
func (*GetPermissionListResponseWrapper) Validate ¶
func (this *GetPermissionListResponseWrapper) Validate() error
func (*GetPermissionListResponseWrapper) XXX_DiscardUnknown ¶
func (m *GetPermissionListResponseWrapper) XXX_DiscardUnknown()
func (*GetPermissionListResponseWrapper) XXX_Marshal ¶
func (m *GetPermissionListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPermissionListResponseWrapper) XXX_Merge ¶
func (m *GetPermissionListResponseWrapper) XXX_Merge(src proto.Message)
func (*GetPermissionListResponseWrapper) XXX_Size ¶
func (m *GetPermissionListResponseWrapper) XXX_Size() int
func (*GetPermissionListResponseWrapper) XXX_Unmarshal ¶
func (m *GetPermissionListResponseWrapper) XXX_Unmarshal(b []byte) error
type GetRoleDetailRequest ¶
type GetRoleDetailRequest struct { // //角色Id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetRoleDetail请求
func (*GetRoleDetailRequest) Descriptor ¶
func (*GetRoleDetailRequest) Descriptor() ([]byte, []int)
func (*GetRoleDetailRequest) GetId ¶
func (m *GetRoleDetailRequest) GetId() string
func (*GetRoleDetailRequest) ProtoMessage ¶
func (*GetRoleDetailRequest) ProtoMessage()
func (*GetRoleDetailRequest) Reset ¶
func (m *GetRoleDetailRequest) Reset()
func (*GetRoleDetailRequest) String ¶
func (m *GetRoleDetailRequest) String() string
func (*GetRoleDetailRequest) Validate ¶
func (this *GetRoleDetailRequest) Validate() error
func (*GetRoleDetailRequest) XXX_DiscardUnknown ¶
func (m *GetRoleDetailRequest) XXX_DiscardUnknown()
func (*GetRoleDetailRequest) XXX_Marshal ¶
func (m *GetRoleDetailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRoleDetailRequest) XXX_Merge ¶
func (m *GetRoleDetailRequest) XXX_Merge(src proto.Message)
func (*GetRoleDetailRequest) XXX_Size ¶
func (m *GetRoleDetailRequest) XXX_Size() int
func (*GetRoleDetailRequest) XXX_Unmarshal ¶
func (m *GetRoleDetailRequest) XXX_Unmarshal(b []byte) error
type GetRoleDetailResponse ¶
type GetRoleDetailResponse struct { // //权限点信息 PermissionIdMap *types.Struct `protobuf:"bytes,1,opt,name=permissionIdMap,proto3" json:"permissionIdMap" form:"permissionIdMap"` // //角色禁用菜单列表 ForbiddenMenu []string `protobuf:"bytes,2,rep,name=forbidden_menu,json=forbiddenMenu,proto3" json:"forbidden_menu" form:"forbidden_menu"` // //角色id Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id" form:"id"` // //角色所在org Org int32 `protobuf:"varint,4,opt,name=org,proto3" json:"org" form:"org"` // //角色名称 Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role" form:"role"` // //角色下用户列表 User []string `protobuf:"bytes,6,rep,name=user,proto3" json:"user" form:"user"` // //角色下权限id列表 Permission []string `protobuf:"bytes,7,rep,name=permission,proto3" json:"permission" form:"permission"` // //角色下用户组列表 UserGroup []string `protobuf:"bytes,8,rep,name=user_group,json=userGroup,proto3" json:"user_group" form:"user_group"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetRoleDetail返回
func (*GetRoleDetailResponse) Descriptor ¶
func (*GetRoleDetailResponse) Descriptor() ([]byte, []int)
func (*GetRoleDetailResponse) GetForbiddenMenu ¶
func (m *GetRoleDetailResponse) GetForbiddenMenu() []string
func (*GetRoleDetailResponse) GetId ¶
func (m *GetRoleDetailResponse) GetId() string
func (*GetRoleDetailResponse) GetOrg ¶
func (m *GetRoleDetailResponse) GetOrg() int32
func (*GetRoleDetailResponse) GetPermission ¶
func (m *GetRoleDetailResponse) GetPermission() []string
func (*GetRoleDetailResponse) GetPermissionIdMap ¶
func (m *GetRoleDetailResponse) GetPermissionIdMap() *types.Struct
func (*GetRoleDetailResponse) GetRole ¶
func (m *GetRoleDetailResponse) GetRole() string
func (*GetRoleDetailResponse) GetUser ¶
func (m *GetRoleDetailResponse) GetUser() []string
func (*GetRoleDetailResponse) GetUserGroup ¶
func (m *GetRoleDetailResponse) GetUserGroup() []string
func (*GetRoleDetailResponse) ProtoMessage ¶
func (*GetRoleDetailResponse) ProtoMessage()
func (*GetRoleDetailResponse) Reset ¶
func (m *GetRoleDetailResponse) Reset()
func (*GetRoleDetailResponse) String ¶
func (m *GetRoleDetailResponse) String() string
func (*GetRoleDetailResponse) Validate ¶
func (this *GetRoleDetailResponse) Validate() error
func (*GetRoleDetailResponse) XXX_DiscardUnknown ¶
func (m *GetRoleDetailResponse) XXX_DiscardUnknown()
func (*GetRoleDetailResponse) XXX_Marshal ¶
func (m *GetRoleDetailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRoleDetailResponse) XXX_Merge ¶
func (m *GetRoleDetailResponse) XXX_Merge(src proto.Message)
func (*GetRoleDetailResponse) XXX_Size ¶
func (m *GetRoleDetailResponse) XXX_Size() int
func (*GetRoleDetailResponse) XXX_Unmarshal ¶
func (m *GetRoleDetailResponse) XXX_Unmarshal(b []byte) error
type GetRoleDetailResponseWrapper ¶
type GetRoleDetailResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *GetRoleDetailResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetRoleDetailApi返回
func (*GetRoleDetailResponseWrapper) Descriptor ¶
func (*GetRoleDetailResponseWrapper) Descriptor() ([]byte, []int)
func (*GetRoleDetailResponseWrapper) GetCode ¶
func (m *GetRoleDetailResponseWrapper) GetCode() int32
func (*GetRoleDetailResponseWrapper) GetCodeExplain ¶
func (m *GetRoleDetailResponseWrapper) GetCodeExplain() string
func (*GetRoleDetailResponseWrapper) GetData ¶
func (m *GetRoleDetailResponseWrapper) GetData() *GetRoleDetailResponse
func (*GetRoleDetailResponseWrapper) GetError ¶
func (m *GetRoleDetailResponseWrapper) GetError() string
func (*GetRoleDetailResponseWrapper) ProtoMessage ¶
func (*GetRoleDetailResponseWrapper) ProtoMessage()
func (*GetRoleDetailResponseWrapper) Reset ¶
func (m *GetRoleDetailResponseWrapper) Reset()
func (*GetRoleDetailResponseWrapper) String ¶
func (m *GetRoleDetailResponseWrapper) String() string
func (*GetRoleDetailResponseWrapper) Validate ¶
func (this *GetRoleDetailResponseWrapper) Validate() error
func (*GetRoleDetailResponseWrapper) XXX_DiscardUnknown ¶
func (m *GetRoleDetailResponseWrapper) XXX_DiscardUnknown()
func (*GetRoleDetailResponseWrapper) XXX_Marshal ¶
func (m *GetRoleDetailResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRoleDetailResponseWrapper) XXX_Merge ¶
func (m *GetRoleDetailResponseWrapper) XXX_Merge(src proto.Message)
func (*GetRoleDetailResponseWrapper) XXX_Size ¶
func (m *GetRoleDetailResponseWrapper) XXX_Size() int
func (*GetRoleDetailResponseWrapper) XXX_Unmarshal ¶
func (m *GetRoleDetailResponseWrapper) XXX_Unmarshal(b []byte) error
type Service ¶
type Service interface { CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error) GetPermissionList(context.Context, *GetPermissionListRequest) (*GetPermissionListResponse, error) GetRoleDetail(context.Context, *GetRoleDetailRequest) (*GetRoleDetailResponse, error) }
Service is the server API for permission_ctrl service.
Click to show internal directories.
Click to hide internal directories.