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.
28 lines
735 B
28 lines
735 B
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 |
|
}
|
|
|