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) GetPermission() []string
- func (m *CreateRoleRequest) GetRole() string
- func (m *CreateRoleRequest) GetUser() []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 GetPermissionRoleListRequest
- func (*GetPermissionRoleListRequest) Descriptor() ([]byte, []int)
- func (m *GetPermissionRoleListRequest) GetPage() int32
- func (m *GetPermissionRoleListRequest) GetPageSize() int32
- func (m *GetPermissionRoleListRequest) GetRole() string
- func (m *GetPermissionRoleListRequest) GetUser() string
- func (m *GetPermissionRoleListRequest) GetXXX_RestFieldMask() []string
- func (*GetPermissionRoleListRequest) ProtoMessage()
- func (m *GetPermissionRoleListRequest) Reset()
- func (m *GetPermissionRoleListRequest) String() string
- func (this *GetPermissionRoleListRequest) Validate() error
- func (m *GetPermissionRoleListRequest) XXX_DiscardUnknown()
- func (m *GetPermissionRoleListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPermissionRoleListRequest) XXX_Merge(src proto.Message)
- func (m *GetPermissionRoleListRequest) XXX_Size() int
- func (m *GetPermissionRoleListRequest) XXX_Unmarshal(b []byte) error
- type GetPermissionRoleListResponse
- func (*GetPermissionRoleListResponse) Descriptor() ([]byte, []int)
- func (m *GetPermissionRoleListResponse) GetCode() int32
- func (m *GetPermissionRoleListResponse) GetData() []*GetPermissionRoleListResponse_Data
- func (m *GetPermissionRoleListResponse) GetPage() int32
- func (m *GetPermissionRoleListResponse) GetPageSize() int32
- func (*GetPermissionRoleListResponse) ProtoMessage()
- func (m *GetPermissionRoleListResponse) Reset()
- func (m *GetPermissionRoleListResponse) String() string
- func (this *GetPermissionRoleListResponse) Validate() error
- func (m *GetPermissionRoleListResponse) XXX_DiscardUnknown()
- func (m *GetPermissionRoleListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPermissionRoleListResponse) XXX_Merge(src proto.Message)
- func (m *GetPermissionRoleListResponse) XXX_Size() int
- func (m *GetPermissionRoleListResponse) XXX_Unmarshal(b []byte) error
- type GetPermissionRoleListResponseWrapper
- func (*GetPermissionRoleListResponseWrapper) Descriptor() ([]byte, []int)
- func (m *GetPermissionRoleListResponseWrapper) GetCode() int32
- func (m *GetPermissionRoleListResponseWrapper) GetCodeExplain() string
- func (m *GetPermissionRoleListResponseWrapper) GetData() *GetPermissionRoleListResponse
- func (m *GetPermissionRoleListResponseWrapper) GetError() string
- func (*GetPermissionRoleListResponseWrapper) ProtoMessage()
- func (m *GetPermissionRoleListResponseWrapper) Reset()
- func (m *GetPermissionRoleListResponseWrapper) String() string
- func (this *GetPermissionRoleListResponseWrapper) Validate() error
- func (m *GetPermissionRoleListResponseWrapper) XXX_DiscardUnknown()
- func (m *GetPermissionRoleListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPermissionRoleListResponseWrapper) XXX_Merge(src proto.Message)
- func (m *GetPermissionRoleListResponseWrapper) XXX_Size() int
- func (m *GetPermissionRoleListResponseWrapper) XXX_Unmarshal(b []byte) error
- type GetPermissionRoleListResponse_Data
- func (*GetPermissionRoleListResponse_Data) Descriptor() ([]byte, []int)
- func (m *GetPermissionRoleListResponse_Data) GetForbiddenMenu() []string
- func (m *GetPermissionRoleListResponse_Data) GetId() string
- func (m *GetPermissionRoleListResponse_Data) GetOrg() int32
- func (m *GetPermissionRoleListResponse_Data) GetPermission() []string
- func (m *GetPermissionRoleListResponse_Data) GetRole() string
- func (m *GetPermissionRoleListResponse_Data) GetUser() []string
- func (m *GetPermissionRoleListResponse_Data) GetUserGroup() []string
- func (*GetPermissionRoleListResponse_Data) ProtoMessage()
- func (m *GetPermissionRoleListResponse_Data) Reset()
- func (m *GetPermissionRoleListResponse_Data) String() string
- func (this *GetPermissionRoleListResponse_Data) Validate() error
- func (m *GetPermissionRoleListResponse_Data) XXX_DiscardUnknown()
- func (m *GetPermissionRoleListResponse_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPermissionRoleListResponse_Data) XXX_Merge(src proto.Message)
- func (m *GetPermissionRoleListResponse_Data) XXX_Size() int
- func (m *GetPermissionRoleListResponse_Data) 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) 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 GetUserRoleRequest
- func (*GetUserRoleRequest) Descriptor() ([]byte, []int)
- func (m *GetUserRoleRequest) GetUser() string
- func (*GetUserRoleRequest) ProtoMessage()
- func (m *GetUserRoleRequest) Reset()
- func (m *GetUserRoleRequest) String() string
- func (this *GetUserRoleRequest) Validate() error
- func (m *GetUserRoleRequest) XXX_DiscardUnknown()
- func (m *GetUserRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserRoleRequest) XXX_Merge(src proto.Message)
- func (m *GetUserRoleRequest) XXX_Size() int
- func (m *GetUserRoleRequest) XXX_Unmarshal(b []byte) error
- type GetUserRoleResponse
- func (*GetUserRoleResponse) Descriptor() ([]byte, []int)
- func (m *GetUserRoleResponse) GetRoles() []string
- func (*GetUserRoleResponse) ProtoMessage()
- func (m *GetUserRoleResponse) Reset()
- func (m *GetUserRoleResponse) String() string
- func (this *GetUserRoleResponse) Validate() error
- func (m *GetUserRoleResponse) XXX_DiscardUnknown()
- func (m *GetUserRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserRoleResponse) XXX_Merge(src proto.Message)
- func (m *GetUserRoleResponse) XXX_Size() int
- func (m *GetUserRoleResponse) XXX_Unmarshal(b []byte) error
- type GetUserRoleResponseWrapper
- func (*GetUserRoleResponseWrapper) Descriptor() ([]byte, []int)
- func (m *GetUserRoleResponseWrapper) GetCode() int32
- func (m *GetUserRoleResponseWrapper) GetCodeExplain() string
- func (m *GetUserRoleResponseWrapper) GetData() *GetUserRoleResponse
- func (m *GetUserRoleResponseWrapper) GetError() string
- func (*GetUserRoleResponseWrapper) ProtoMessage()
- func (m *GetUserRoleResponseWrapper) Reset()
- func (m *GetUserRoleResponseWrapper) String() string
- func (this *GetUserRoleResponseWrapper) Validate() error
- func (m *GetUserRoleResponseWrapper) XXX_DiscardUnknown()
- func (m *GetUserRoleResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserRoleResponseWrapper) XXX_Merge(src proto.Message)
- func (m *GetUserRoleResponseWrapper) XXX_Size() int
- func (m *GetUserRoleResponseWrapper) 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) GetPermissionRoleList(ctx context.Context, in *GetPermissionRoleListRequest) (*GetPermissionRoleListResponse, error) GetRoleDetail(ctx context.Context, in *GetRoleDetailRequest) (*GetRoleDetailResponse, error) GetUserRole(ctx context.Context, in *GetUserRoleRequest) (*GetUserRoleResponse, error) }
Client is the client API for role 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 { // //角色禁用菜单列表 ForbiddenMenu []string `protobuf:"bytes,1,rep,name=forbidden_menu,json=forbiddenMenu,proto3" json:"forbidden_menu" form:"forbidden_menu"` // //角色名称 Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role" form:"role"` // //角色下用户列表 User []string `protobuf:"bytes,3,rep,name=user,proto3" json:"user" form:"user"` // //角色下权限id列表 Permission []string `protobuf:"bytes,4,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) GetPermission ¶
func (m *CreateRoleRequest) GetPermission() []string
func (*CreateRoleRequest) GetRole ¶
func (m *CreateRoleRequest) GetRole() string
func (*CreateRoleRequest) GetUser ¶
func (m *CreateRoleRequest) GetUser() []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 GetPermissionRoleListRequest ¶
type GetPermissionRoleListRequest struct { // //用户名 User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user" form:"user"` // //角色名 Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role" form:"role"` // //分页 Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page" form:"page"` // //分页大小 PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"` // //sdk限制字段使用 XXX_RestFieldMask []string `protobuf:"bytes,5,rep,name=XXX_RestFieldMask,json=XXXRestFieldMask,proto3" json:"XXX_RestFieldMask" form:"XXX_RestFieldMask"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetPermissionRoleList请求
func (*GetPermissionRoleListRequest) Descriptor ¶
func (*GetPermissionRoleListRequest) Descriptor() ([]byte, []int)
func (*GetPermissionRoleListRequest) GetPage ¶
func (m *GetPermissionRoleListRequest) GetPage() int32
func (*GetPermissionRoleListRequest) GetPageSize ¶
func (m *GetPermissionRoleListRequest) GetPageSize() int32
func (*GetPermissionRoleListRequest) GetRole ¶
func (m *GetPermissionRoleListRequest) GetRole() string
func (*GetPermissionRoleListRequest) GetUser ¶
func (m *GetPermissionRoleListRequest) GetUser() string
func (*GetPermissionRoleListRequest) GetXXX_RestFieldMask ¶
func (m *GetPermissionRoleListRequest) GetXXX_RestFieldMask() []string
func (*GetPermissionRoleListRequest) ProtoMessage ¶
func (*GetPermissionRoleListRequest) ProtoMessage()
func (*GetPermissionRoleListRequest) Reset ¶
func (m *GetPermissionRoleListRequest) Reset()
func (*GetPermissionRoleListRequest) String ¶
func (m *GetPermissionRoleListRequest) String() string
func (*GetPermissionRoleListRequest) Validate ¶
func (this *GetPermissionRoleListRequest) Validate() error
func (*GetPermissionRoleListRequest) XXX_DiscardUnknown ¶
func (m *GetPermissionRoleListRequest) XXX_DiscardUnknown()
func (*GetPermissionRoleListRequest) XXX_Marshal ¶
func (m *GetPermissionRoleListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPermissionRoleListRequest) XXX_Merge ¶
func (m *GetPermissionRoleListRequest) XXX_Merge(src proto.Message)
func (*GetPermissionRoleListRequest) XXX_Size ¶
func (m *GetPermissionRoleListRequest) XXX_Size() int
func (*GetPermissionRoleListRequest) XXX_Unmarshal ¶
func (m *GetPermissionRoleListRequest) XXX_Unmarshal(b []byte) error
type GetPermissionRoleListResponse ¶
type GetPermissionRoleListResponse struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //页码 Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page" form:"page"` // //分页大小 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"` // //角色列表 Data []*GetPermissionRoleListResponse_Data `protobuf:"bytes,4,rep,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetPermissionRoleList返回
func (*GetPermissionRoleListResponse) Descriptor ¶
func (*GetPermissionRoleListResponse) Descriptor() ([]byte, []int)
func (*GetPermissionRoleListResponse) GetCode ¶
func (m *GetPermissionRoleListResponse) GetCode() int32
func (*GetPermissionRoleListResponse) GetData ¶
func (m *GetPermissionRoleListResponse) GetData() []*GetPermissionRoleListResponse_Data
func (*GetPermissionRoleListResponse) GetPage ¶
func (m *GetPermissionRoleListResponse) GetPage() int32
func (*GetPermissionRoleListResponse) GetPageSize ¶
func (m *GetPermissionRoleListResponse) GetPageSize() int32
func (*GetPermissionRoleListResponse) ProtoMessage ¶
func (*GetPermissionRoleListResponse) ProtoMessage()
func (*GetPermissionRoleListResponse) Reset ¶
func (m *GetPermissionRoleListResponse) Reset()
func (*GetPermissionRoleListResponse) String ¶
func (m *GetPermissionRoleListResponse) String() string
func (*GetPermissionRoleListResponse) Validate ¶
func (this *GetPermissionRoleListResponse) Validate() error
func (*GetPermissionRoleListResponse) XXX_DiscardUnknown ¶
func (m *GetPermissionRoleListResponse) XXX_DiscardUnknown()
func (*GetPermissionRoleListResponse) XXX_Marshal ¶
func (m *GetPermissionRoleListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPermissionRoleListResponse) XXX_Merge ¶
func (m *GetPermissionRoleListResponse) XXX_Merge(src proto.Message)
func (*GetPermissionRoleListResponse) XXX_Size ¶
func (m *GetPermissionRoleListResponse) XXX_Size() int
func (*GetPermissionRoleListResponse) XXX_Unmarshal ¶
func (m *GetPermissionRoleListResponse) XXX_Unmarshal(b []byte) error
type GetPermissionRoleListResponseWrapper ¶
type GetPermissionRoleListResponseWrapper 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 *GetPermissionRoleListResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetPermissionRoleListApi返回
func (*GetPermissionRoleListResponseWrapper) Descriptor ¶
func (*GetPermissionRoleListResponseWrapper) Descriptor() ([]byte, []int)
func (*GetPermissionRoleListResponseWrapper) GetCode ¶
func (m *GetPermissionRoleListResponseWrapper) GetCode() int32
func (*GetPermissionRoleListResponseWrapper) GetCodeExplain ¶
func (m *GetPermissionRoleListResponseWrapper) GetCodeExplain() string
func (*GetPermissionRoleListResponseWrapper) GetData ¶
func (m *GetPermissionRoleListResponseWrapper) GetData() *GetPermissionRoleListResponse
func (*GetPermissionRoleListResponseWrapper) GetError ¶
func (m *GetPermissionRoleListResponseWrapper) GetError() string
func (*GetPermissionRoleListResponseWrapper) ProtoMessage ¶
func (*GetPermissionRoleListResponseWrapper) ProtoMessage()
func (*GetPermissionRoleListResponseWrapper) Reset ¶
func (m *GetPermissionRoleListResponseWrapper) Reset()
func (*GetPermissionRoleListResponseWrapper) String ¶
func (m *GetPermissionRoleListResponseWrapper) String() string
func (*GetPermissionRoleListResponseWrapper) Validate ¶
func (this *GetPermissionRoleListResponseWrapper) Validate() error
func (*GetPermissionRoleListResponseWrapper) XXX_DiscardUnknown ¶
func (m *GetPermissionRoleListResponseWrapper) XXX_DiscardUnknown()
func (*GetPermissionRoleListResponseWrapper) XXX_Marshal ¶
func (m *GetPermissionRoleListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPermissionRoleListResponseWrapper) XXX_Merge ¶
func (m *GetPermissionRoleListResponseWrapper) XXX_Merge(src proto.Message)
func (*GetPermissionRoleListResponseWrapper) XXX_Size ¶
func (m *GetPermissionRoleListResponseWrapper) XXX_Size() int
func (*GetPermissionRoleListResponseWrapper) XXX_Unmarshal ¶
func (m *GetPermissionRoleListResponseWrapper) XXX_Unmarshal(b []byte) error
type GetPermissionRoleListResponse_Data ¶
type GetPermissionRoleListResponse_Data struct { // //角色禁用菜单列表 ForbiddenMenu []string `protobuf:"bytes,1,rep,name=forbidden_menu,json=forbiddenMenu,proto3" json:"forbidden_menu" form:"forbidden_menu"` // //角色id Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id" form:"id"` // //角色所在org Org int32 `protobuf:"varint,3,opt,name=org,proto3" json:"org" form:"org"` // //角色名称 Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role" form:"role"` // //角色下用户列表 User []string `protobuf:"bytes,5,rep,name=user,proto3" json:"user" form:"user"` // //角色下权限id列表 Permission []string `protobuf:"bytes,6,rep,name=permission,proto3" json:"permission" form:"permission"` // //角色下用户组列表 UserGroup []string `protobuf:"bytes,7,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:"-"` }
func (*GetPermissionRoleListResponse_Data) Descriptor ¶
func (*GetPermissionRoleListResponse_Data) Descriptor() ([]byte, []int)
func (*GetPermissionRoleListResponse_Data) GetForbiddenMenu ¶
func (m *GetPermissionRoleListResponse_Data) GetForbiddenMenu() []string
func (*GetPermissionRoleListResponse_Data) GetId ¶
func (m *GetPermissionRoleListResponse_Data) GetId() string
func (*GetPermissionRoleListResponse_Data) GetOrg ¶
func (m *GetPermissionRoleListResponse_Data) GetOrg() int32
func (*GetPermissionRoleListResponse_Data) GetPermission ¶
func (m *GetPermissionRoleListResponse_Data) GetPermission() []string
func (*GetPermissionRoleListResponse_Data) GetRole ¶
func (m *GetPermissionRoleListResponse_Data) GetRole() string
func (*GetPermissionRoleListResponse_Data) GetUser ¶
func (m *GetPermissionRoleListResponse_Data) GetUser() []string
func (*GetPermissionRoleListResponse_Data) GetUserGroup ¶
func (m *GetPermissionRoleListResponse_Data) GetUserGroup() []string
func (*GetPermissionRoleListResponse_Data) ProtoMessage ¶
func (*GetPermissionRoleListResponse_Data) ProtoMessage()
func (*GetPermissionRoleListResponse_Data) Reset ¶
func (m *GetPermissionRoleListResponse_Data) Reset()
func (*GetPermissionRoleListResponse_Data) String ¶
func (m *GetPermissionRoleListResponse_Data) String() string
func (*GetPermissionRoleListResponse_Data) Validate ¶
func (this *GetPermissionRoleListResponse_Data) Validate() error
func (*GetPermissionRoleListResponse_Data) XXX_DiscardUnknown ¶
func (m *GetPermissionRoleListResponse_Data) XXX_DiscardUnknown()
func (*GetPermissionRoleListResponse_Data) XXX_Marshal ¶
func (m *GetPermissionRoleListResponse_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPermissionRoleListResponse_Data) XXX_Merge ¶
func (m *GetPermissionRoleListResponse_Data) XXX_Merge(src proto.Message)
func (*GetPermissionRoleListResponse_Data) XXX_Size ¶
func (m *GetPermissionRoleListResponse_Data) XXX_Size() int
func (*GetPermissionRoleListResponse_Data) XXX_Unmarshal ¶
func (m *GetPermissionRoleListResponse_Data) 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 { // //角色禁用菜单列表 ForbiddenMenu []string `protobuf:"bytes,1,rep,name=forbidden_menu,json=forbiddenMenu,proto3" json:"forbidden_menu" form:"forbidden_menu"` // //角色id Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id" form:"id"` // //角色所在org Org int32 `protobuf:"varint,3,opt,name=org,proto3" json:"org" form:"org"` // //角色名称 Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role" form:"role"` // //角色下用户列表 User []string `protobuf:"bytes,5,rep,name=user,proto3" json:"user" form:"user"` // //角色下权限id列表 Permission []string `protobuf:"bytes,6,rep,name=permission,proto3" json:"permission" form:"permission"` // //角色下用户组列表 UserGroup []string `protobuf:"bytes,7,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) 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 GetUserRoleRequest ¶
type GetUserRoleRequest struct { // //用户名 User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user" form:"user"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetUserRole请求
func (*GetUserRoleRequest) Descriptor ¶
func (*GetUserRoleRequest) Descriptor() ([]byte, []int)
func (*GetUserRoleRequest) GetUser ¶
func (m *GetUserRoleRequest) GetUser() string
func (*GetUserRoleRequest) ProtoMessage ¶
func (*GetUserRoleRequest) ProtoMessage()
func (*GetUserRoleRequest) Reset ¶
func (m *GetUserRoleRequest) Reset()
func (*GetUserRoleRequest) String ¶
func (m *GetUserRoleRequest) String() string
func (*GetUserRoleRequest) Validate ¶
func (this *GetUserRoleRequest) Validate() error
func (*GetUserRoleRequest) XXX_DiscardUnknown ¶
func (m *GetUserRoleRequest) XXX_DiscardUnknown()
func (*GetUserRoleRequest) XXX_Marshal ¶
func (m *GetUserRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserRoleRequest) XXX_Merge ¶
func (m *GetUserRoleRequest) XXX_Merge(src proto.Message)
func (*GetUserRoleRequest) XXX_Size ¶
func (m *GetUserRoleRequest) XXX_Size() int
func (*GetUserRoleRequest) XXX_Unmarshal ¶
func (m *GetUserRoleRequest) XXX_Unmarshal(b []byte) error
type GetUserRoleResponse ¶
type GetUserRoleResponse struct { // //角色名称列表 Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles" form:"roles"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetUserRole返回
func (*GetUserRoleResponse) Descriptor ¶
func (*GetUserRoleResponse) Descriptor() ([]byte, []int)
func (*GetUserRoleResponse) GetRoles ¶
func (m *GetUserRoleResponse) GetRoles() []string
func (*GetUserRoleResponse) ProtoMessage ¶
func (*GetUserRoleResponse) ProtoMessage()
func (*GetUserRoleResponse) Reset ¶
func (m *GetUserRoleResponse) Reset()
func (*GetUserRoleResponse) String ¶
func (m *GetUserRoleResponse) String() string
func (*GetUserRoleResponse) Validate ¶
func (this *GetUserRoleResponse) Validate() error
func (*GetUserRoleResponse) XXX_DiscardUnknown ¶
func (m *GetUserRoleResponse) XXX_DiscardUnknown()
func (*GetUserRoleResponse) XXX_Marshal ¶
func (m *GetUserRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserRoleResponse) XXX_Merge ¶
func (m *GetUserRoleResponse) XXX_Merge(src proto.Message)
func (*GetUserRoleResponse) XXX_Size ¶
func (m *GetUserRoleResponse) XXX_Size() int
func (*GetUserRoleResponse) XXX_Unmarshal ¶
func (m *GetUserRoleResponse) XXX_Unmarshal(b []byte) error
type GetUserRoleResponseWrapper ¶
type GetUserRoleResponseWrapper 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 *GetUserRoleResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetUserRoleApi返回
func (*GetUserRoleResponseWrapper) Descriptor ¶
func (*GetUserRoleResponseWrapper) Descriptor() ([]byte, []int)
func (*GetUserRoleResponseWrapper) GetCode ¶
func (m *GetUserRoleResponseWrapper) GetCode() int32
func (*GetUserRoleResponseWrapper) GetCodeExplain ¶
func (m *GetUserRoleResponseWrapper) GetCodeExplain() string
func (*GetUserRoleResponseWrapper) GetData ¶
func (m *GetUserRoleResponseWrapper) GetData() *GetUserRoleResponse
func (*GetUserRoleResponseWrapper) GetError ¶
func (m *GetUserRoleResponseWrapper) GetError() string
func (*GetUserRoleResponseWrapper) ProtoMessage ¶
func (*GetUserRoleResponseWrapper) ProtoMessage()
func (*GetUserRoleResponseWrapper) Reset ¶
func (m *GetUserRoleResponseWrapper) Reset()
func (*GetUserRoleResponseWrapper) String ¶
func (m *GetUserRoleResponseWrapper) String() string
func (*GetUserRoleResponseWrapper) Validate ¶
func (this *GetUserRoleResponseWrapper) Validate() error
func (*GetUserRoleResponseWrapper) XXX_DiscardUnknown ¶
func (m *GetUserRoleResponseWrapper) XXX_DiscardUnknown()
func (*GetUserRoleResponseWrapper) XXX_Marshal ¶
func (m *GetUserRoleResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserRoleResponseWrapper) XXX_Merge ¶
func (m *GetUserRoleResponseWrapper) XXX_Merge(src proto.Message)
func (*GetUserRoleResponseWrapper) XXX_Size ¶
func (m *GetUserRoleResponseWrapper) XXX_Size() int
func (*GetUserRoleResponseWrapper) XXX_Unmarshal ¶
func (m *GetUserRoleResponseWrapper) XXX_Unmarshal(b []byte) error
type Service ¶
type Service interface { CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error) GetPermissionRoleList(context.Context, *GetPermissionRoleListRequest) (*GetPermissionRoleListResponse, error) GetRoleDetail(context.Context, *GetRoleDetailRequest) (*GetRoleDetailResponse, error) GetUserRole(context.Context, *GetUserRoleRequest) (*GetUserRoleResponse, error) }
Service is the server API for role service.
Click to show internal directories.
Click to hide internal directories.