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.
34 lines
954 B
34 lines
954 B
4 months ago
|
package controller
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"tyj_admin/api/v1/game"
|
||
|
"tyj_admin/internal/serviceGame"
|
||
|
)
|
||
|
|
||
|
var GameBazaar = bazaarController{}
|
||
|
|
||
|
type bazaarController struct {
|
||
|
BaseController
|
||
|
}
|
||
|
|
||
|
func (c *bazaarController) GetBazaar(ctx context.Context, req *game.GetBazaarReq) (res *game.GetBazaarRes, err error) {
|
||
|
res, err = serviceGame.GameBazaar().Get(ctx, req)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
func (c *bazaarController) Update(ctx context.Context, req *game.UpdateBazaarReq) (res *game.UpdateBazaarRes, err error) {
|
||
|
res, err = serviceGame.GameBazaar().Update(ctx, req)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
func (c *bazaarController) Insert(ctx context.Context, req *game.InsertBazaarReq) (res *game.InsertBazaarRes, err error) {
|
||
|
res, err = serviceGame.GameBazaar().Insert(ctx, req)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
func (c *bazaarController) InsertBatch(ctx context.Context, req *game.InsertBatchBazaarReq) (res *game.InsertBatchBazaarRes, err error) {
|
||
|
res, err = serviceGame.GameBazaar().InsertBatch(ctx, req)
|
||
|
return
|
||
|
}
|