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.

37 lines
964 B
Go

package handler
import (
"context"
"joybuywork/internal/service"
pb "joybuywork/proto/go_proto/w_open_platform"
)
type WOpenPlatformServer struct{}
// UserList 开放平台用户列表
func (s *WOpenPlatformServer) UserList(ctx context.Context, req *pb.UserListReq, res *pb.UserListRes) (err error) {
//初始化服务
srv := service.WOpenPlatform{}
srv.Init(ctx)
err = srv.UserList(req, res)
return err
}
// CampaignInfo 开发平台活动信息
func (s *WOpenPlatformServer) CampaignInfo(ctx context.Context, req *pb.CampaignInfoReq, res *pb.CampaignInfoRes) (err error) {
//初始化服务
srv := service.WOpenPlatform{}
srv.Init(ctx)
err = srv.CampaignInfo(req, res)
return err
}
// Player 用户在活动中的玩家数据
func (s *WOpenPlatformServer) Player(ctx context.Context, req *pb.PlayerReq, res *pb.PlayerRes) (err error) {
//初始化服务
srv := service.WOpenPlatform{}
srv.Init(ctx)
err = srv.Player(req, res)
return err
}