package controller import ( "context" "tyj_admin/api/v1/game" "tyj_admin/internal/serviceGame" ) var GamePropExchange = propExchangeController{} type propExchangeController struct { BaseController } func (c *propExchangeController) GetPropExchange(ctx context.Context, req *game.GetPropExchangeReq) (res *game.GetPropExchangeRes, err error) { res, err = serviceGame.GamePropExchange().Get(ctx, req) return } func (c *propExchangeController) UpdatePropExchange(ctx context.Context, req *game.UpdatePropExchangeReq) (res *game.UpdatePropExchangeRes, err error) { res, err = serviceGame.GamePropExchange().Update(ctx, req) return } func (c *propExchangeController) InsertPropExchange(ctx context.Context, req *game.InsertPropExchangeReq) (res *game.InsertPropExchangeRes, err error) { res, err = serviceGame.GamePropExchange().Insert(ctx, req) return } func (c *propExchangeController) CheckPropExchangeTime(ctx context.Context, req *game.CheckPropExchangeReq) (res *game.CheckPropExchangeRes, err error) { res, err = serviceGame.GamePropExchange().Check(ctx, req) return }