Documentation ¶
Index ¶
- Variables
- func NewRoleEndpoints() []*api.Endpoint
- func RegisterRoleHandler(s server.Server, hdlr RoleHandler, opts ...server.HandlerOption) error
- type AllRole
- type FindAll
- type Response
- type RoleHandler
- type RoleId
- type RoleInfo
- func (*RoleInfo) Descriptor() ([]byte, []int)deprecated
- func (x *RoleInfo) GetId() int64
- func (x *RoleInfo) GetRoleName() string
- func (x *RoleInfo) GetRoleStatus() string
- func (*RoleInfo) ProtoMessage()
- func (x *RoleInfo) ProtoReflect() protoreflect.Message
- func (x *RoleInfo) Reset()
- func (x *RoleInfo) String() string
- type RolePermission
- func (*RolePermission) Descriptor() ([]byte, []int)deprecated
- func (x *RolePermission) GetPermissionId() []int64
- func (x *RolePermission) GetRoleId() int64
- func (*RolePermission) ProtoMessage()
- func (x *RolePermission) ProtoReflect() protoreflect.Message
- func (x *RolePermission) Reset()
- func (x *RolePermission) String() string
- type RoleService
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_role_role_proto protoreflect.FileDescriptor
Functions ¶
func NewRoleEndpoints ¶
func RegisterRoleHandler ¶
func RegisterRoleHandler(s server.Server, hdlr RoleHandler, opts ...server.HandlerOption) error
Types ¶
type AllRole ¶
type AllRole struct { RoleInfo []*RoleInfo `protobuf:"bytes,1,rep,name=role_info,json=roleInfo,proto3" json:"role_info,omitempty"` // contains filtered or unexported fields }
func (*AllRole) Descriptor
deprecated
func (*AllRole) GetRoleInfo ¶
func (*AllRole) ProtoMessage ¶
func (*AllRole) ProtoMessage()
func (*AllRole) ProtoReflect ¶
func (x *AllRole) ProtoReflect() protoreflect.Message
type FindAll ¶
type FindAll struct {
// contains filtered or unexported fields
}
func (*FindAll) Descriptor
deprecated
func (*FindAll) ProtoMessage ¶
func (*FindAll) ProtoMessage()
func (*FindAll) ProtoReflect ¶
func (x *FindAll) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type RoleHandler ¶
type RoleHandler interface { //对外提供添加服务 AddRole(context.Context, *RoleInfo, *Response) error DeleteRole(context.Context, *RoleId, *Response) error UpdateRole(context.Context, *RoleInfo, *Response) error FindRoleByID(context.Context, *RoleId, *RoleInfo) error FindAllRole(context.Context, *FindAll, *AllRole) error AddPermission(context.Context, *RolePermission, *Response) error UpdatePermission(context.Context, *RolePermission, *Response) error DeletePermission(context.Context, *RolePermission, *Response) error }
type RoleId ¶
type RoleId struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RoleId) Descriptor
deprecated
func (*RoleId) ProtoMessage ¶
func (*RoleId) ProtoMessage()
func (*RoleId) ProtoReflect ¶
func (x *RoleId) ProtoReflect() protoreflect.Message
type RoleInfo ¶
type RoleInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` RoleStatus string `protobuf:"bytes,3,opt,name=role_status,json=roleStatus,proto3" json:"role_status,omitempty"` // contains filtered or unexported fields }
func (*RoleInfo) Descriptor
deprecated
func (*RoleInfo) GetRoleName ¶
func (*RoleInfo) GetRoleStatus ¶
func (*RoleInfo) ProtoMessage ¶
func (*RoleInfo) ProtoMessage()
func (*RoleInfo) ProtoReflect ¶
func (x *RoleInfo) ProtoReflect() protoreflect.Message
type RolePermission ¶
type RolePermission struct { RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` PermissionId []int64 `protobuf:"varint,2,rep,packed,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"` // contains filtered or unexported fields }
func (*RolePermission) Descriptor
deprecated
func (*RolePermission) Descriptor() ([]byte, []int)
Deprecated: Use RolePermission.ProtoReflect.Descriptor instead.
func (*RolePermission) GetPermissionId ¶
func (x *RolePermission) GetPermissionId() []int64
func (*RolePermission) GetRoleId ¶
func (x *RolePermission) GetRoleId() int64
func (*RolePermission) ProtoMessage ¶
func (*RolePermission) ProtoMessage()
func (*RolePermission) ProtoReflect ¶
func (x *RolePermission) ProtoReflect() protoreflect.Message
func (*RolePermission) Reset ¶
func (x *RolePermission) Reset()
func (*RolePermission) String ¶
func (x *RolePermission) String() string
type RoleService ¶
type RoleService interface { //对外提供添加服务 AddRole(ctx context.Context, in *RoleInfo, opts ...client.CallOption) (*Response, error) DeleteRole(ctx context.Context, in *RoleId, opts ...client.CallOption) (*Response, error) UpdateRole(ctx context.Context, in *RoleInfo, opts ...client.CallOption) (*Response, error) FindRoleByID(ctx context.Context, in *RoleId, opts ...client.CallOption) (*RoleInfo, error) FindAllRole(ctx context.Context, in *FindAll, opts ...client.CallOption) (*AllRole, error) AddPermission(ctx context.Context, in *RolePermission, opts ...client.CallOption) (*Response, error) UpdatePermission(ctx context.Context, in *RolePermission, opts ...client.CallOption) (*Response, error) DeletePermission(ctx context.Context, in *RolePermission, opts ...client.CallOption) (*Response, error) }
func NewRoleService ¶
func NewRoleService(name string, c client.Client) RoleService
Click to show internal directories.
Click to hide internal directories.