Documentation ¶
Index ¶
- type UserResourceService
- func (s *UserResourceService) Add(ctx context.Context, req *v2pb.UserResourceAddReq) (resp *v2pb.UserResourceAddResp, err error)
- func (s *UserResourceService) Edit(ctx context.Context, req *v2pb.UserResourceEditReq) (resp *v2pb.UserResourceEditResp, err error)
- func (s *UserResourceService) Get(ctx context.Context, req *v2pb.UserResourceListReq) (resp *v2pb.UserResourceListResp, err error)
- func (s *UserResourceService) GetSingle(ctx context.Context, req *v2pb.UserResourceGetSingleReq) (resp *v2pb.UserResourceGetSingleResp, err error)
- func (s *UserResourceService) SetStatus(ctx context.Context, req *v2pb.UserResourceSetStatusReq) (resp *v2pb.UserResourceSetStatusResp, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserResourceService ¶
type UserResourceService struct {
// contains filtered or unexported fields
}
UserResourceService struct
func NewUserResourceService ¶
func NewUserResourceService(c *conf.Config) (s *UserResourceService)
NewUserResourceService init
func (*UserResourceService) Add ¶
func (s *UserResourceService) Add(ctx context.Context, req *v2pb.UserResourceAddReq) (resp *v2pb.UserResourceAddResp, err error)
Add implementation Add 添加资源接口 `method:"POST" internal:"true" `
func (*UserResourceService) Edit ¶
func (s *UserResourceService) Edit(ctx context.Context, req *v2pb.UserResourceEditReq) (resp *v2pb.UserResourceEditResp, err error)
Edit implementation Edit 编辑现有资源 `method:"POST" internal:"true" `
func (*UserResourceService) Get ¶
func (s *UserResourceService) Get(ctx context.Context, req *v2pb.UserResourceListReq) (resp *v2pb.UserResourceListResp, err error)
Get implementation Get 获取资源列表 `method:"GET" internal:"true" `
func (*UserResourceService) GetSingle ¶
func (s *UserResourceService) GetSingle(ctx context.Context, req *v2pb.UserResourceGetSingleReq) (resp *v2pb.UserResourceGetSingleResp, err error)
GetSingle implementation Query 请求单个资源
func (*UserResourceService) SetStatus ¶
func (s *UserResourceService) SetStatus(ctx context.Context, req *v2pb.UserResourceSetStatusReq) (resp *v2pb.UserResourceSetStatusResp, err error)
SetStatus implementation SetStatus 更改资源状态 `method:"POST" internal:"true" `
Click to show internal directories.
Click to hide internal directories.