Documentation ¶
Index ¶
- type Service
- func (s *Service) AddDPTask(ctx context.Context, task *model.DPTask) (err error)
- func (s *Service) AddTask(c context.Context, task *model.Task) (err error)
- func (s *Service) CheckDpData(ctx context.Context) (err error)
- func (s *Service) CheckUploadMid(c context.Context, data []byte) (err error)
- func (s *Service) CheckUploadToken(c context.Context, data []byte) (err error)
- func (s *Service) Close()
- func (s *Service) DpTaskInfo(ctx context.Context, id int64, job string) (res *model.DPTask, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) TestPushMid(c context.Context, mid string, task *model.Task) (err error)
- func (s *Service) TestPushToken(c context.Context, info *pushmdl.PushInfo, platform int, token string) (err error)
- func (s *Service) UpdateDpCondtionStatus(ctx context.Context, job string, status int) (err error)
- func (s *Service) Upimg(ctx context.Context, file multipart.File, header *multipart.FileHeader) (url string, err error)
- func (s *Service) Upload(c context.Context, dir, path string, data []byte) (err error)
- func (s *Service) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service biz service def.
func (*Service) CheckDpData ¶
CheckDpData check whether data platform data is ready
func (*Service) CheckUploadMid ¶
CheckUploadMid checks uploaded mid validation.
func (*Service) CheckUploadToken ¶
CheckUploadToken checks uploaded token validation.
func (*Service) DpTaskInfo ¶
func (s *Service) DpTaskInfo(ctx context.Context, id int64, job string) (res *model.DPTask, err error)
DpTaskInfo .
func (*Service) TestPushMid ¶
TestPushMid test push by mid.
func (*Service) TestPushToken ¶
func (s *Service) TestPushToken(c context.Context, info *pushmdl.PushInfo, platform int, token string) (err error)
TestPushToken test push by token.
func (*Service) UpdateDpCondtionStatus ¶
UpdateDpCondtionStatus .
func (*Service) Upimg ¶
func (s *Service) Upimg(ctx context.Context, file multipart.File, header *multipart.FileHeader) (url string, err error)
Upimg upload image
Click to show internal directories.
Click to hide internal directories.