package controller import ( "context" "tyj_admin/api/v1/game" "tyj_admin/internal/serviceGame" ) var GameChannel = channelController{} type channelController struct { BaseController } func (c *channelController) GetChannel(ctx context.Context, req *game.GetChannelReq) (res *game.GetChannelRes, err error) { res, err = serviceGame.Channel().GetChannel(ctx, req) return } func (c *channelController) AddChannel(ctx context.Context, req *game.AddChannelReq) (res *game.AddChannelRes, err error) { res, err = serviceGame.Channel().AddChannel(ctx, req) return } func (c *channelController) DelChannel(ctx context.Context, req *game.DelChannelReq) (res *game.DelChannelRes, err error) { res, err = serviceGame.Channel().DelChannel(ctx, req) return } func (c *channelController) GetAllChannel(ctx context.Context, req *game.GetAllChannelReq) (res *game.GetAllChannelRes, err error) { res, err = serviceGame.Channel().GetAllChannel(ctx, req) return }