You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
Go
54 lines
1.1 KiB
Go
package service
|
|
|
|
import (
|
|
containers "joybuywork/internal/service/containers/openplatform"
|
|
pb "joybuywork/proto/go_proto/w_open_platform"
|
|
)
|
|
|
|
type WOpenPlatform struct {
|
|
Service
|
|
}
|
|
|
|
// UserList 开放平台用户列表
|
|
func (s *WOpenPlatform) UserList(req *pb.UserListReq, res *pb.UserListRes) (err error) {
|
|
defer s.checkErr()
|
|
|
|
container := new(containers.UserList)
|
|
{
|
|
container.Init(s.ctx)
|
|
container.Req = req
|
|
container.Res = res
|
|
}
|
|
|
|
return container.Run()
|
|
}
|
|
|
|
// CampaignInfo 开发平台活动信息
|
|
func (s *WOpenPlatform) CampaignInfo(req *pb.CampaignInfoReq, res *pb.CampaignInfoRes) (err error) {
|
|
defer s.checkErr()
|
|
|
|
*res = pb.CampaignInfoRes{}
|
|
container := new(containers.CampaignInfo)
|
|
{
|
|
container.Init(s.ctx)
|
|
container.Req = req
|
|
container.Res = res
|
|
}
|
|
|
|
return container.Run()
|
|
}
|
|
|
|
// Player 用户在活动中的玩家数据
|
|
func (s *WOpenPlatform) Player(req *pb.PlayerReq, res *pb.PlayerRes) (err error) {
|
|
defer s.checkErr()
|
|
*res = pb.PlayerRes{}
|
|
container := new(containers.Player)
|
|
{
|
|
container.Init(s.ctx)
|
|
container.Req = req
|
|
container.Res = res
|
|
}
|
|
|
|
return container.Run()
|
|
}
|