v1

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

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

AddReward implementation (主播侧)-添加主播奖励(内部接口) `method:"POST" internal:"true"`

func (*AnchorTaskService) IsViewed

IsViewed implementation (主播侧)-奖励和任务红点(登录态) `midware:"auth"`

func (*AnchorTaskService) MyReward

MyReward implementation * (主播侧)-我的主播奖励(登录态)

func (*AnchorTaskService) UseRecord

UseRecord implementation (主播侧)-奖励使用记录(登录态) `midware:"auth"`

func (*AnchorTaskService) UseReward

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

GetCapsuleInfo implementation `midware:"guest"`

func (*CapsuleService) GetDetail

GetDetail implementation

func (*CapsuleService) OpenCapsule

OpenCapsule implementation

func (*CapsuleService) OpenCapsuleByType

OpenCapsuleByType implementation `method:"POST" midware:"auth"`

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service struct

func New

func New(c *conf.Config) (s *Service)

New init

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"`,需要登录态

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL