subtitle.go 902 B

12345678910111213141516171819202122232425262728293031
  1. package client
  2. import (
  3. "context"
  4. "go-common/app/interface/main/dm2/model"
  5. )
  6. const (
  7. _subtitleGet = "RPC.SubtitleGet"
  8. _subtitleSujectSubmit = "RPC.SubtitleSujectSubmit"
  9. _subtitleSubjectSubmitGet = "RPC.SubtitleSubjectSubmitGet"
  10. )
  11. // SubtitleGet get mask list
  12. func (s *Service) SubtitleGet(c context.Context, arg *model.ArgSubtitleGet) (res *model.VideoSubtitles, err error) {
  13. err = s.client.Call(c, _subtitleGet, arg, &res)
  14. return
  15. }
  16. // SubtitleSujectSubmit .
  17. func (s *Service) SubtitleSujectSubmit(c context.Context, arg *model.ArgSubtitleAllowSubmit) (err error) {
  18. err = s.client.Call(c, _subtitleSujectSubmit, arg, _noArg)
  19. return
  20. }
  21. // SubtitleSubjectSubmitGet .
  22. func (s *Service) SubtitleSubjectSubmitGet(c context.Context, arg *model.ArgArchiveID) (res *model.SubtitleSubjectReply, err error) {
  23. err = s.client.Call(c, _subtitleSubjectSubmitGet, arg, &res)
  24. return
  25. }