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
963 B
33 lines
963 B
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 |
|
}
|
|
|