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.
33 lines
903 B
33 lines
903 B
package controller |
|
|
|
import ( |
|
"context" |
|
"tyj_admin/api/v1/game" |
|
"tyj_admin/internal/serviceGame" |
|
) |
|
|
|
var GameModel = modelController{} |
|
|
|
type modelController struct { |
|
BaseController |
|
} |
|
|
|
func (c *modelController) Get(ctx context.Context, req *game.GetModelReq) (res *game.GetModelRes, err error) { |
|
res, err = serviceGame.GameModel().Get(ctx, req) |
|
return |
|
} |
|
|
|
func (c *modelController) Update(ctx context.Context, req *game.UpdateModelReq) (res *game.UpdateModelRes, err error) { |
|
res, err = serviceGame.GameModel().Update(ctx, req) |
|
return |
|
} |
|
|
|
func (c *modelController) Insert(ctx context.Context, req *game.InsertModelReq) (res *game.InsertModelRes, err error) { |
|
res, err = serviceGame.GameModel().Insert(ctx, req) |
|
return |
|
} |
|
|
|
func (c *modelController) Delete(ctx context.Context, req *game.DelModelReq) (res *game.DelModelRes, err error) { |
|
res, err = serviceGame.GameModel().Delete(ctx, req) |
|
return |
|
}
|
|
|