Documentation ¶
Index ¶
- type Service
- func (s *Service) AddGlobalFilter(c context.Context, arg *model.ArgAddGlobalFilter) (res *model.GlobalFilter, err error)
- func (s *Service) AddUpFilters(c context.Context, arg *model.ArgAddUpFilters) (err error)
- func (s *Service) AddUserFilters(c context.Context, arg *model.ArgAddUserFilters) (res []*model.UserFilter, err error)
- func (s *Service) AdvanceState(c context.Context, arg *model.ArgAdvance) (res *model.AdvState, err error)
- func (s *Service) Advances(c context.Context, arg *model.ArgMid) (res []*model.Advance, err error)
- func (s *Service) BanUsers(c context.Context, arg *model.ArgBanUsers) (err error)
- func (s *Service) BuyAdvance(c context.Context, arg *model.ArgAdvance) (err error)
- func (s *Service) CancelAdvance(c context.Context, arg *model.ArgUpAdvance) (err error)
- func (s *Service) CancelBanUsers(c context.Context, arg *model.ArgCancelBanUsers) (err error)
- func (s *Service) DelGlobalFilters(c context.Context, arg *model.ArgDelGlobalFilters) (affect int64, err error)
- func (s *Service) DelUserFilters(c context.Context, arg *model.ArgDelUserFilters) (affect int64, err error)
- func (s *Service) DenyAdvance(c context.Context, arg *model.ArgUpAdvance) (err error)
- func (s *Service) EditDMAttr(c context.Context, arg *model.ArgEditDMAttr) (err error)
- func (s *Service) EditDMPool(c context.Context, arg *model.ArgEditDMPool) (err error)
- func (s *Service) EditDMState(c context.Context, arg *model.ArgEditDMState) (err error)
- func (s *Service) EditUpFilters(c context.Context, arg *model.ArgEditUpFilters) (affect int64, err error)
- func (s *Service) GlobalFilters(c context.Context, arg *model.ArgGlobalFilters) (res []*model.GlobalFilter, err error)
- func (s *Service) Mask(c context.Context, arg *model.ArgMask) (res *model.Mask, err error)
- func (s *Service) PassAdvance(c context.Context, arg *model.ArgUpAdvance) (err error)
- func (s *Service) SubjectInfos(c context.Context, arg *model.ArgOids) (res map[int64]*model.SubjectInfo, err error)
- func (s *Service) SubtitleGet(c context.Context, arg *model.ArgSubtitleGet) (res *model.VideoSubtitles, err error)
- func (s *Service) SubtitleSubjectSubmitGet(c context.Context, arg *model.ArgArchiveID) (res *model.SubtitleSubjectReply, err error)
- func (s *Service) SubtitleSujectSubmit(c context.Context, arg *model.ArgSubtitleAllowSubmit) (err error)
- func (s *Service) UpFilters(c context.Context, arg *model.ArgUpFilters) (res []*model.UpFilter, err error)
- func (s *Service) UserFilters(c context.Context, arg *model.ArgMid) (res []*model.UserFilter, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service dm rpc client.
func (*Service) AddGlobalFilter ¶
func (s *Service) AddGlobalFilter(c context.Context, arg *model.ArgAddGlobalFilter) (res *model.GlobalFilter, err error)
AddGlobalFilter add global filters.
func (*Service) AddUpFilters ¶
AddUpFilters add up filters.
func (*Service) AddUserFilters ¶
func (s *Service) AddUserFilters(c context.Context, arg *model.ArgAddUserFilters) (res []*model.UserFilter, err error)
AddUserFilters add user filter.
func (*Service) AdvanceState ¶
func (s *Service) AdvanceState(c context.Context, arg *model.ArgAdvance) (res *model.AdvState, err error)
AdvanceState 高级弹幕状态
func (*Service) BuyAdvance ¶
BuyAdvance 购买高级弹幕
func (*Service) CancelAdvance ¶
CancelAdvance 取消高级弹幕申请
func (*Service) CancelBanUsers ¶
CancelBanUsers cancel users by upper or assiat.
func (*Service) DelGlobalFilters ¶
func (s *Service) DelGlobalFilters(c context.Context, arg *model.ArgDelGlobalFilters) (affect int64, err error)
DelGlobalFilters delete global filter.
func (*Service) DelUserFilters ¶
func (s *Service) DelUserFilters(c context.Context, arg *model.ArgDelUserFilters) (affect int64, err error)
DelUserFilters delete user filters by filter id.
func (*Service) DenyAdvance ¶
DenyAdvance 拒绝高级弹幕申请
func (*Service) EditDMAttr ¶
EditDMAttr update dm attr.
func (*Service) EditDMPool ¶
EditDMPool update dm pool. 0:普通弹幕池、1:字幕弹幕池
func (*Service) EditDMState ¶
EditDMState update dm state. 0:正常、1:删除10:用户删除、11:举报脚本删除
func (*Service) EditUpFilters ¶
func (s *Service) EditUpFilters(c context.Context, arg *model.ArgEditUpFilters) (affect int64, err error)
EditUpFilters edit upper filters.
func (*Service) GlobalFilters ¶
func (s *Service) GlobalFilters(c context.Context, arg *model.ArgGlobalFilters) (res []*model.GlobalFilter, err error)
GlobalFilters multi get global filters.
func (*Service) PassAdvance ¶
PassAdvance 通过高级弹幕申请
func (*Service) SubjectInfos ¶
func (s *Service) SubjectInfos(c context.Context, arg *model.ArgOids) (res map[int64]*model.SubjectInfo, err error)
SubjectInfos multi get dm subject info by type and oids.
func (*Service) SubtitleGet ¶
func (s *Service) SubtitleGet(c context.Context, arg *model.ArgSubtitleGet) (res *model.VideoSubtitles, err error)
SubtitleGet get mask list
func (*Service) SubtitleSubjectSubmitGet ¶
func (s *Service) SubtitleSubjectSubmitGet(c context.Context, arg *model.ArgArchiveID) (res *model.SubtitleSubjectReply, err error)
SubtitleSubjectSubmitGet .
func (*Service) SubtitleSujectSubmit ¶
func (s *Service) SubtitleSujectSubmit(c context.Context, arg *model.ArgSubtitleAllowSubmit) (err error)
SubtitleSujectSubmit .
func (*Service) UpFilters ¶
func (s *Service) UpFilters(c context.Context, arg *model.ArgUpFilters) (res []*model.UpFilter, err error)
UpFilters multi get up filters.
func (*Service) UserFilters ¶
func (s *Service) UserFilters(c context.Context, arg *model.ArgMid) (res []*model.UserFilter, err error)
UserFilters multi get user filters.