package controller import ( "context" "tyj_admin/api/v1/game" "tyj_admin/internal/serviceGame" ) var GameCustom = customController{} type customController struct { BaseController } // bug 列表 func (c *customController) List(ctx context.Context, req *game.BugListReq) (res *game.BugListRes, err error) { res, err = serviceGame.GameCustom().List(ctx, req) return } func (c *customController) Operate(ctx context.Context, req *game.OperateBugReq) (res *game.OperateBugRes, err error) { res, err = serviceGame.GameCustom().UpdateState(ctx, req) return } func (c *customController) Add(ctx context.Context, req *game.BugAddReq) (res *game.BugAddRes, err error) { res, err = serviceGame.GameCustom().Add(ctx, req) return }