Documentation ¶
Index ¶
- type Service
- func (s *Service) BatchUpdateResourceStatus(ctx context.Context, req *resourceapi.BatchUpdateResourceStatusRequest) (*resourceapi.BatchUpdateResourceStatusReply, error)
- func (s *Service) GetResource(ctx context.Context, req *resourceapi.GetResourceRequest) (*resourceapi.GetResourceReply, error)
- func (s *Service) GetResourceSelectList(ctx context.Context, req *resourceapi.ListResourceRequest) (*resourceapi.GetResourceSelectListReply, error)
- func (s *Service) ListResource(ctx context.Context, req *resourceapi.ListResourceRequest) (*resourceapi.ListResourceReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { resourceapi.UnimplementedResourceServer // contains filtered or unexported fields }
Service 资源管理服务
func NewResourceService ¶
func NewResourceService(resourceBiz *biz.ResourceBiz) *Service
NewResourceService 创建资源管理服务
func (*Service) BatchUpdateResourceStatus ¶
func (s *Service) BatchUpdateResourceStatus(ctx context.Context, req *resourceapi.BatchUpdateResourceStatusRequest) (*resourceapi.BatchUpdateResourceStatusReply, error)
BatchUpdateResourceStatus 批量更新资源状态
func (*Service) GetResource ¶
func (s *Service) GetResource(ctx context.Context, req *resourceapi.GetResourceRequest) (*resourceapi.GetResourceReply, error)
GetResource 获取资源
func (*Service) GetResourceSelectList ¶
func (s *Service) GetResourceSelectList(ctx context.Context, req *resourceapi.ListResourceRequest) (*resourceapi.GetResourceSelectListReply, error)
GetResourceSelectList 获取资源下拉列表
func (*Service) ListResource ¶
func (s *Service) ListResource(ctx context.Context, req *resourceapi.ListResourceRequest) (*resourceapi.ListResourceReply, error)
ListResource 获取资源列表
Click to show internal directories.
Click to hide internal directories.