Documentation ¶
Index ¶
- type Service
- func (s *Service) AddHistories(c context.Context, arg *pb.AddHistoriesReq) (reply *pb.AddHistoriesReply, err error)
- func (s *Service) AddHistory(c context.Context, arg *pb.AddHistoryReq) (reply *pb.AddHistoryReply, err error)
- func (s *Service) ClearHistory(c context.Context, arg *pb.ClearHistoryReq) (reply *pb.ClearHistoryReply, err error)
- func (s *Service) Close()
- func (s *Service) DelHistories(c context.Context, arg *pb.DelHistoriesReq) (reply *pb.DelHistoriesReply, err error)
- func (s *Service) Histories(c context.Context, arg *pb.HistoriesReq) (reply *pb.HistoriesReply, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) UpdateUserHide(c context.Context, arg *pb.UpdateUserHideReq) (reply *pb.UpdateUserHideReply, err error)
- func (s *Service) UserHide(c context.Context, arg *pb.UserHideReq) (reply *pb.UserHideReply, err error)
- func (s *Service) UserHistories(c context.Context, arg *pb.UserHistoriesReq) (reply *pb.UserHistoriesReply, 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 struct
func (*Service) AddHistories ¶
func (s *Service) AddHistories(c context.Context, arg *pb.AddHistoriesReq) (reply *pb.AddHistoriesReply, err error)
AddHistories 增加多条播放历史记录
func (*Service) AddHistory ¶
func (s *Service) AddHistory(c context.Context, arg *pb.AddHistoryReq) (reply *pb.AddHistoryReply, err error)
AddHistory add history
func (*Service) ClearHistory ¶
func (s *Service) ClearHistory(c context.Context, arg *pb.ClearHistoryReq) (reply *pb.ClearHistoryReply, err error)
ClearHistory clear histories
func (*Service) DelHistories ¶
func (s *Service) DelHistories(c context.Context, arg *pb.DelHistoriesReq) (reply *pb.DelHistoriesReply, err error)
DelHistories delete histories
func (*Service) Histories ¶
func (s *Service) Histories(c context.Context, arg *pb.HistoriesReq) (reply *pb.HistoriesReply, err error)
Histories 根据id查询播放历史
func (*Service) UpdateUserHide ¶
func (s *Service) UpdateUserHide(c context.Context, arg *pb.UpdateUserHideReq) (reply *pb.UpdateUserHideReply, err error)
UpdateUserHide 修改是否记录播放历史
func (*Service) UserHide ¶
func (s *Service) UserHide(c context.Context, arg *pb.UserHideReq) (reply *pb.UserHideReply, err error)
UserHide 查询是否记录播放历史
func (*Service) UserHistories ¶
func (s *Service) UserHistories(c context.Context, arg *pb.UserHistoriesReq) (reply *pb.UserHistoriesReply, err error)
UserHistories 查询用户的播放历史列表
Click to show internal directories.
Click to hide internal directories.