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: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BannerService

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

BannerService struct

func NewBannerService

func NewBannerService(c *conf.Config) (s *BannerService)

NewBannerService init

func (*BannerService) GetBanner

func (s *BannerService) GetBanner(ctx context.Context, req *v1pb.GetBannerReq) (resp *v1pb.GetBannerResp, err error)

GetBanner implementation 获取有效banner配置 `method:"GET" internal:"true" `

func (*BannerService) GetBlinkBanner

func (s *BannerService) GetBlinkBanner(ctx context.Context, req *v1pb.GetInfoReq) (resp *v1pb.GetInfoResp, err error)

GetBlinkBanner implementation 获取有效banner配置 `method:"GET" internal:"true" `

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) DeleteCoin

func (s *CapsuleService) DeleteCoin(ctx context.Context, req *v1pb.DeleteCoinReqAdmin) (resp *v1pb.DeleteCoinRespAdmin, err error)

DeleteCoin implementation

func (*CapsuleService) DeletePool

func (s *CapsuleService) DeletePool(ctx context.Context, req *v1pb.DeletePoolReqAdmin) (resp *v1pb.DeletePoolRespAdmin, err error)

DeletePool implementation

func (*CapsuleService) DeletePoolPrize

func (s *CapsuleService) DeletePoolPrize(ctx context.Context, req *v1pb.DeletePoolPrizeReqAdmin) (resp *v1pb.DeletePoolPrizeRespAdmin, err error)

DeletePoolPrize implementation `method:"POST" internal:"true" `

func (*CapsuleService) FormatErr

func (s *CapsuleService) FormatErr(statusCode *status.Status) (code int32, msg string)

FormatErr format error msg

func (*CapsuleService) GetCoinList

func (s *CapsuleService) GetCoinList(ctx context.Context, req *v1pb.GetCoinListReqAdmin) (resp *v1pb.GetCoinListRespAdmin, err error)

GetCoinList implementation

func (*CapsuleService) GetCouponList

GetCouponList implementation `internal:"true"`

func (*CapsuleService) GetPoolList

func (s *CapsuleService) GetPoolList(ctx context.Context, req *v1pb.GetPoolListReqAdmin) (resp *v1pb.GetPoolListRespAdmin, err error)

GetPoolList implementation `internal:"true"`

func (*CapsuleService) GetPoolPrize

func (s *CapsuleService) GetPoolPrize(ctx context.Context, req *v1pb.GetPoolPrizeReqAdmin) (resp *v1pb.GetPoolPrizeRespAdmin, err error)

GetPoolPrize implementation `internal:"true"`

func (*CapsuleService) GetPrizeExpire

func (s *CapsuleService) GetPrizeExpire(ctx context.Context, req *v1pb.GetPrizeExpireReq) (resp *v1pb.GetPrizeExpireResp, err error)

GetPrizeExpire implementation `internal:"true"`

func (*CapsuleService) GetPrizeType

func (s *CapsuleService) GetPrizeType(ctx context.Context, req *v1pb.GetPrizeTypeReq) (resp *v1pb.GetPrizeTypeResp, err error)

GetPrizeType implementation `internal:"true"`

func (*CapsuleService) UpdateCoinConfig

func (s *CapsuleService) UpdateCoinConfig(ctx context.Context, req *v1pb.UpdateCoinConfigReqAdmin) (resp *v1pb.UpdateCoinConfigRespAdmin, err error)

UpdateCoinConfig implementation

func (*CapsuleService) UpdateCoinStatus

func (s *CapsuleService) UpdateCoinStatus(ctx context.Context, req *v1pb.UpdateCoinStatusReqAdmin) (resp *v1pb.UpdateCoinStatusRespAdmin, err error)

UpdateCoinStatus implementation

func (*CapsuleService) UpdatePool

func (s *CapsuleService) UpdatePool(ctx context.Context, req *v1pb.UpdatePoolReqAdmin) (resp *v1pb.UpdatePoolRespAdmin, err error)

UpdatePool implementation `method:"POST" internal:"true"`

func (*CapsuleService) UpdatePoolPrize

func (s *CapsuleService) UpdatePoolPrize(ctx context.Context, req *v1pb.UpdatePoolPrizeReqAdmin) (resp *v1pb.UpdatePoolPrizeRespAdmin, err error)

UpdatePoolPrize implementation `method:"POST" internal:"true"`

func (*CapsuleService) UpdatePoolStatus

func (s *CapsuleService) UpdatePoolStatus(ctx context.Context, req *v1pb.UpdatePoolStatusReqAdmin) (resp *v1pb.UpdatePoolStatusRespAdmin, err error)

UpdatePoolStatus implementation

type GaeaService

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

GaeaService struct

func NewGaeaService

func NewGaeaService(c *conf.Config) (s *GaeaService)

NewGaeaService init

func (*GaeaService) FormatErr

func (s *GaeaService) FormatErr(statusCode *status.Status) (code int32, msg string)

FormatErr format error msg

func (*GaeaService) GetConfigByKeyword

func (s *GaeaService) GetConfigByKeyword(ctx context.Context, req *v1pb.GetConfigReq) (resp *v1pb.GetConfigResp, err error)

GetConfigByKeyword implementation 获取team下某个keyword的配置 `internal:"true"`

func (*GaeaService) GetConfigsByKeyword

func (s *GaeaService) GetConfigsByKeyword(ctx context.Context, req *v1pb.GetConfigsReq) (resp *v1pb.GetConfigsResp, err error)

GetConfigsByKeyword implementation 通过keyword获取配置 `internal:"true"`

func (*GaeaService) GetConfigsByParams

func (s *GaeaService) GetConfigsByParams(ctx context.Context, req *v1pb.ParamsConfigReq) (resp *v1pb.ParamsConfigResp, err error)

GetConfigsByParams implementation 管理后台根据条件获取配置 `internal:"true"`

func (*GaeaService) GetConfigsByTeam

func (s *GaeaService) GetConfigsByTeam(ctx context.Context, req *v1pb.TeamConfigReq) (resp *v1pb.TeamConfigResp, err error)

GetConfigsByTeam implementation 获取单个team的全部配置 `internal:"true"`

func (*GaeaService) GetConfigsByTeams

func (s *GaeaService) GetConfigsByTeams(ctx context.Context, req *v1pb.TeamsConfigReq) (resp *v1pb.TeamsConfigResp, err error)

GetConfigsByTeams implementation 获取多个team下的全部配置 `internal:"true"`

func (*GaeaService) SetConfigByKeyword

func (s *GaeaService) SetConfigByKeyword(ctx context.Context, req *v1pb.SetConfigReq) (resp *v1pb.SetConfigResp, err error)

SetConfigByKeyword implementation 设置team下某个keyword配置 `internal:"true"`

type PayGoodsService

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

PayGoodsService struct

func NewPayGoodsService

func NewPayGoodsService(c *conf.Config) (s *PayGoodsService)

NewPayGoodsService init

func (*PayGoodsService) Add

Add implementation * 生成一张付费直播票

func (*PayGoodsService) Close

Close implementation * 关闭购票

func (*PayGoodsService) GetList

GetList implementation * 获取付费直播票列表

func (*PayGoodsService) Open

Open implementation * 开启购票

func (*PayGoodsService) Update

Update implementation * 更新一张付费直播票

type PayLiveService

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

PayLiveService struct

func NewPayLiveService

func NewPayLiveService(c *conf.Config) (s *PayLiveService)

NewPayLiveService init

func (*PayLiveService) Add

func (s *PayLiveService) Add(ctx context.Context, req *v1pb.PayLiveAddReq) (resp *v1pb.PayLiveAddResp, err error)

Add implementation `method:"POST" internal:"true"` 生成付费直播信息

func (*PayLiveService) Close

func (s *PayLiveService) Close(ctx context.Context, req *v1pb.PayLiveCloseReq) (resp *v1pb.PayLiveCloseResp, err error)

Close implementation `method:"POST" internal:"true"` 关闭鉴权

func (*PayLiveService) GetList

func (s *PayLiveService) GetList(ctx context.Context, req *v1pb.PayLiveGetListReq) (resp *v1pb.PayLiveGetListResp, err error)

GetList implementation `method:"POST" internal:"true"` 获取付费直播列表

func (*PayLiveService) Open

func (s *PayLiveService) Open(ctx context.Context, req *v1pb.PayLiveOpenReq) (resp *v1pb.PayLiveOpenResp, err error)

Open implementation `method:"POST" internal:"true"` 开启鉴权

func (*PayLiveService) Update

func (s *PayLiveService) Update(ctx context.Context, req *v1pb.PayLiveUpdateReq) (resp *v1pb.PayLiveUpdateResp, err error)

Update implementation `method:"POST" internal:"true"` 更新付费直播信息

type ResourceService

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

ResourceService struct

func NewResourceService

func NewResourceService(c *conf.Config) (s *ResourceService)

NewResourceService init

func (*ResourceService) Add

func (s *ResourceService) Add(ctx context.Context, req *v1pb.AddReq) (resp *v1pb.AddResp, err error)

Add implementation Add 添加资源接口 `method:"POST" internal:"true"

func (*ResourceService) AddEx

func (s *ResourceService) AddEx(ctx context.Context, req *v1pb.AddReq) (resp *v1pb.AddResp, err error)

AddEx implementation AddEx 添加资源接口 `method:"POST" internal:"true"

func (*ResourceService) Edit

func (s *ResourceService) Edit(ctx context.Context, req *v1pb.EditReq) (resp *v1pb.EditResp, err error)

Edit implementation Edit 编辑资源接口 `method:"POST" internal:"true" `

func (*ResourceService) GetList

func (s *ResourceService) GetList(ctx context.Context, req *v1pb.GetListReq) (resp *v1pb.GetListResp, err error)

GetList implementation GetList 获取资源列表 `method:"GET" internal:"true" `

func (*ResourceService) GetListEx

func (s *ResourceService) GetListEx(ctx context.Context, req *v1pb.GetListExReq) (resp *v1pb.GetListExResp, err error)

GetListEx implementation GetListEx 获取资源列表 `method:"GET" internal:"true" `

func (*ResourceService) GetPlatformList

func (s *ResourceService) GetPlatformList(ctx context.Context, req *v1pb.GetPlatformListReq) (resp *v1pb.GetPlatformListResp, err error)

GetPlatformList implementation 获取平台列表 `method:"GET" internal:"true" `

func (*ResourceService) Offline

func (s *ResourceService) Offline(ctx context.Context, req *v1pb.OfflineReq) (resp *v1pb.OfflineResp, err error)

Offline implementation Offline 下线资源接口 `method:"POST" internal:"true" `

type RoomMngService

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

RoomMngService struct

func NewRoomMngService

func NewRoomMngService(c *conf.Config) (s *RoomMngService)

NewRoomMngService init

func (*RoomMngService) GetSecondVerifyListWithPics

func (s *RoomMngService) GetSecondVerifyListWithPics(ctx context.Context, req *v1pb.RoomMngGetSecondVerifyListReq) (resp *v1pb.RoomMngGetSecondVerifyListResp, err error)

GetSecondVerifyListWithPics implementation 获取带有图片地址的二次审核列表 `method:"GET" internal:"true" `

type SplashService

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

SplashService struct

func NewSplashService

func NewSplashService(c *conf.Config) (s *SplashService)

NewSplashService init

func (*SplashService) GetInfo

func (s *SplashService) GetInfo(ctx context.Context, req *v1pb.GetInfoReq) (resp *v1pb.GetInfoResp, err error)

GetInfo implementation 获取有效闪屏配置 `method:"GET" internal:"true" `

type TokenService

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

TokenService struct

func NewTokenService

func NewTokenService(c *conf.Config, d *dao.Dao) (s *TokenService)

NewTokenService init

func (*TokenService) New

func (s *TokenService) New(ctx context.Context, req *v1pb.NewTokenReq) (resp *v1pb.NewTokenResp, err error)

New implementation Request for a token for upload. `method:"POST" internal:"true"`

type UploadService

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

UploadService struct

func NewUploadService

func NewUploadService(c *conf.Config, d *dao.Dao) (s *UploadService)

NewUploadService init

func (*UploadService) File

func (s *UploadService) File(ctx context.Context, req *v1pb.UploadFileReq) (resp *v1pb.UploadFileResp, err error)

File implementation `method:"POST" content-type:"multipart/form-data" midware:"guest"`

Jump to

Keyboard shortcuts

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