Documentation
¶
Index ¶
- type CreateServiceLogic
- type DataCell
- type DataSelectQuery
- type DeleteServiceLogic
- type FilterQuery
- type GetServiceDetailLogic
- type GetServicesLogic
- type PaginateQuery
- type Service
- func (s *Service) CreateService(l *CreateServiceLogic, in *core.CreateServiceReq) (resp *core.CreateServiceResp, err error)
- func (s *Service) DeleteService(l *DeleteServiceLogic, in *core.DeleteServiceReq) (resp *core.DeleteServiceResp, err error)
- func (s *Service) GetServiceDetail(l *GetServiceDetailLogic, in *core.GetServiceDetailReq) (resp *core.GetServiceDetailResp, err error)
- func (s *Service) GetServices(l *GetServicesLogic, in *core.GetServicesReq) (resp *core.GetServicesResp, err error)
- func (s *Service) UpdateService(l *UpdateServiceLogic, in *core.UpdateServiceReq) (resp *core.UpdateServiceResp, err error)
- type UpdateServiceLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateServiceLogic ¶
func NewCreateServiceLogic ¶
func NewCreateServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateServiceLogic
func (*CreateServiceLogic) CreateService ¶
func (l *CreateServiceLogic) CreateService(in *core.CreateServiceReq) (*core.CreateServiceResp, error)
创建service,,接收ServiceCreate对象
type DataSelectQuery ¶
type DataSelectQuery struct { Filter *FilterQuery Paginate *PaginateQuery }
DataSelectQuery 定义过滤和分页的结构体,过滤:Name 分页:Limit和Page
type DeleteServiceLogic ¶
func NewDeleteServiceLogic ¶
func NewDeleteServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteServiceLogic
func (*DeleteServiceLogic) DeleteService ¶
func (l *DeleteServiceLogic) DeleteService(in *core.DeleteServiceReq) (*core.DeleteServiceResp, error)
type GetServiceDetailLogic ¶
func NewGetServiceDetailLogic ¶
func NewGetServiceDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetServiceDetailLogic
func (*GetServiceDetailLogic) GetServiceDetail ¶
func (l *GetServiceDetailLogic) GetServiceDetail(in *core.GetServiceDetailReq) (*core.GetServiceDetailResp, error)
type GetServicesLogic ¶
func NewGetServicesLogic ¶
func NewGetServicesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetServicesLogic
func (*GetServicesLogic) GetServices ¶
func (l *GetServicesLogic) GetServices(in *core.GetServicesReq) (*core.GetServicesResp, error)
获取service列表,支持过滤、排序、分页
type PaginateQuery ¶
分页:Limit和Page Limit是单页的数据条数,Page是第几页
type Service ¶
type Service struct{}
func (*Service) CreateService ¶
func (s *Service) CreateService(l *CreateServiceLogic, in *core.CreateServiceReq) (resp *core.CreateServiceResp, err error)
创建service,,接收ServiceCreate对象
func (*Service) DeleteService ¶
func (s *Service) DeleteService(l *DeleteServiceLogic, in *core.DeleteServiceReq) (resp *core.DeleteServiceResp, err error)
删除service
func (*Service) GetServiceDetail ¶
func (s *Service) GetServiceDetail(l *GetServiceDetailLogic, in *core.GetServiceDetailReq) (resp *core.GetServiceDetailResp, err error)
获取service详情
func (*Service) GetServices ¶
func (s *Service) GetServices(l *GetServicesLogic, in *core.GetServicesReq) (resp *core.GetServicesResp, err error)
获取service列表,支持过滤、排序、分页
func (*Service) UpdateService ¶
func (s *Service) UpdateService(l *UpdateServiceLogic, in *core.UpdateServiceReq) (resp *core.UpdateServiceResp, err error)
更新service
type UpdateServiceLogic ¶
func NewUpdateServiceLogic ¶
func NewUpdateServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateServiceLogic
func (*UpdateServiceLogic) UpdateService ¶
func (l *UpdateServiceLogic) UpdateService(in *core.UpdateServiceReq) (*core.UpdateServiceResp, error)
Click to show internal directories.
Click to hide internal directories.