Documentation
¶
Index ¶
- type AnchorTaskService
- func (s *AnchorTaskService) AddReward(ctx context.Context, req *v1pb.AnchorTaskAddRewardReq) (resp *v1pb.AnchorTaskAddRewardResp, err error)
- func (s *AnchorTaskService) IsViewed(ctx context.Context, req *v1pb.AnchorTaskIsViewedReq) (resp *v1pb.AnchorTaskIsViewedResp, err error)
- func (s *AnchorTaskService) MyReward(ctx context.Context, req *v1pb.AnchorTaskMyRewardReq) (resp *v1pb.AnchorTaskMyRewardResp, err error)
- func (s *AnchorTaskService) UseRecord(ctx context.Context, req *v1pb.AnchorTaskUseRecordReq) (resp *v1pb.AnchorTaskUseRecordResp, err error)
- func (s *AnchorTaskService) UseReward(ctx context.Context, req *v1pb.AnchorTaskUseRewardReq) (resp *v1pb.AnchorTaskUseRewardResp, err error)
- type CapsuleService
- func (s *CapsuleService) FormatErr(statusCode *status.Status) (code int32, msg string)
- func (s *CapsuleService) GetCapsuleInfo(ctx context.Context, req *v1pb.CapsuleGetCapsuleInfoReq) (resp *v1pb.CapsuleGetCapsuleInfoResp, err error)
- func (s *CapsuleService) GetDetail(ctx context.Context, req *v1pb.CapsuleGetDetailReq) (resp *v1pb.CapsuleGetDetailResp, err error)
- func (s *CapsuleService) OpenCapsule(ctx context.Context, req *v1pb.CapsuleOpenCapsuleReq) (resp *v1pb.CapsuleOpenCapsuleResp, err error)
- func (s *CapsuleService) OpenCapsuleByType(ctx context.Context, req *v1pb.CapsuleOpenCapsuleByTypeReq) (resp *v1pb.CapsuleOpenCapsuleByTypeResp, err error)
- type Service
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnchorTaskService ¶
type AnchorTaskService struct {
// contains filtered or unexported fields
}
AnchorTaskService struct
func NewAnchorTaskService ¶
func NewAnchorTaskService(c *conf.Config) (s *AnchorTaskService)
NewAnchorTaskService init
func (*AnchorTaskService) AddReward ¶
func (s *AnchorTaskService) AddReward(ctx context.Context, req *v1pb.AnchorTaskAddRewardReq) (resp *v1pb.AnchorTaskAddRewardResp, err error)
AddReward implementation (主播侧)-添加主播奖励(内部接口) `method:"POST" internal:"true"`
func (*AnchorTaskService) IsViewed ¶
func (s *AnchorTaskService) IsViewed(ctx context.Context, req *v1pb.AnchorTaskIsViewedReq) (resp *v1pb.AnchorTaskIsViewedResp, err error)
IsViewed implementation (主播侧)-奖励和任务红点(登录态) `midware:"auth"`
func (*AnchorTaskService) MyReward ¶
func (s *AnchorTaskService) MyReward(ctx context.Context, req *v1pb.AnchorTaskMyRewardReq) (resp *v1pb.AnchorTaskMyRewardResp, err error)
MyReward implementation * (主播侧)-我的主播奖励(登录态)
func (*AnchorTaskService) UseRecord ¶
func (s *AnchorTaskService) UseRecord(ctx context.Context, req *v1pb.AnchorTaskUseRecordReq) (resp *v1pb.AnchorTaskUseRecordResp, err error)
UseRecord implementation (主播侧)-奖励使用记录(登录态) `midware:"auth"`
func (*AnchorTaskService) UseReward ¶
func (s *AnchorTaskService) UseReward(ctx context.Context, req *v1pb.AnchorTaskUseRewardReq) (resp *v1pb.AnchorTaskUseRewardResp, err error)
UseReward implementation (主播侧)-使用奖励(登录态) `method:"POST" midware:"auth"`
type CapsuleService ¶
type CapsuleService struct {
// contains filtered or unexported fields
}
CapsuleService struct
func NewCapsuleService ¶
func NewCapsuleService(c *conf.Config) (s *CapsuleService)
NewCapsuleService init
func (*CapsuleService) FormatErr ¶
func (s *CapsuleService) FormatErr(statusCode *status.Status) (code int32, msg string)
FormatErr format error msg
func (*CapsuleService) GetCapsuleInfo ¶
func (s *CapsuleService) GetCapsuleInfo(ctx context.Context, req *v1pb.CapsuleGetCapsuleInfoReq) (resp *v1pb.CapsuleGetCapsuleInfoResp, err error)
GetCapsuleInfo implementation `midware:"guest"`
func (*CapsuleService) GetDetail ¶
func (s *CapsuleService) GetDetail(ctx context.Context, req *v1pb.CapsuleGetDetailReq) (resp *v1pb.CapsuleGetDetailResp, err error)
GetDetail implementation
func (*CapsuleService) OpenCapsule ¶
func (s *CapsuleService) OpenCapsule(ctx context.Context, req *v1pb.CapsuleOpenCapsuleReq) (resp *v1pb.CapsuleOpenCapsuleResp, err error)
OpenCapsule implementation
func (*CapsuleService) OpenCapsuleByType ¶
func (s *CapsuleService) OpenCapsuleByType(ctx context.Context, req *v1pb.CapsuleOpenCapsuleByTypeReq) (resp *v1pb.CapsuleOpenCapsuleByTypeResp, err error)
OpenCapsuleByType implementation `method:"POST" midware:"auth"`
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct
func (*Service) DelHistory ¶
func (s *Service) DelHistory(ctx context.Context, req *historypb.DelHistoryReq) (resp *historypb.DelHistoryResp, err error)
DelHistory 删除直播历史记录
func (*Service) GetHistoryByUid ¶
func (s *Service) GetHistoryByUid(ctx context.Context, req *historypb.GetHistoryReq) (resp *historypb.GetHistoryResp, err error)
GetHistoryByUid 获取直播历史记录
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
UserService user service
func NewUserService ¶
func NewUserService(c *conf.Config) (s *UserService)
NewUserService new user service
func (*UserService) GetUserInfo ¶
func (s *UserService) GetUserInfo(ctx context.Context, req *pb.GetInfoReq) (resp *pb.GetInfoResp, err error)
GetUserInfo implementation 根据uid查询用户信息 `midware:"auth"`,需要登录态