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.
30 lines
850 B
30 lines
850 B
package controller |
|
|
|
import ( |
|
"context" |
|
"tyj_admin/api/v1/game" |
|
"tyj_admin/internal/serviceGame" |
|
) |
|
|
|
var GameWhiteList = whiteListController{} |
|
|
|
type whiteListController struct { |
|
BaseController |
|
} |
|
|
|
func (c *whiteListController) Get(ctx context.Context, req *game.GetListWhiteListReq) (res *game.GetListWhiteListRes, err error) { |
|
res, err = serviceGame.GameWhiteList().Get(ctx, req) |
|
return |
|
} |
|
|
|
func (c *whiteListController) Update(ctx context.Context, req *game.UpdateWhiteListReq) (res *game.UpdateWhiteListRes, err error) { |
|
res = new(game.UpdateWhiteListRes) |
|
res, err = serviceGame.GameWhiteList().Update(ctx, req) |
|
return |
|
} |
|
|
|
func (c *whiteListController) Del(ctx context.Context, req *game.DelWhiteListReq) (res *game.DelWhiteListRes, err error) { |
|
res = new(game.DelWhiteListRes) |
|
res, err = serviceGame.GameWhiteList().Del(ctx, req) |
|
return |
|
}
|
|
|