You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
902 B

4 months ago
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
}