package controller import ( "context" "tyj_admin/api/v1/game" "tyj_admin/internal/serviceGame" ) var GameMonthlyLottery = monthlyLotteryController{} type monthlyLotteryController struct { BaseController } func (c *monthlyLotteryController) GetMonthlyLottery(ctx context.Context, req *game.GetMonthlyLotteryReq) (res *game.GetMonthlyLotteryRes, err error) { res, err = serviceGame.GameMonthlyLottery().Get(ctx, req) return } func (c *monthlyLotteryController) UpdateMonthlyLottery(ctx context.Context, req *game.UpdateMonthlyLotteryReq) (res *game.UpdateMonthlyLotteryRes, err error) { res, err = serviceGame.GameMonthlyLottery().Update(ctx, req) return } func (c *monthlyLotteryController) InsertMonthlyLottery(ctx context.Context, req *game.InsertMonthlyLotteryReq) (res *game.InsertMonthlyLotteryRes, err error) { res, err = serviceGame.GameMonthlyLottery().Insert(ctx, req) return }