package controller import ( "context" "tyj_admin/api/v1/game" "tyj_admin/internal/serviceGame" ) var GameMail = mailController{} type mailController struct { BaseController } // mail 列表 func (c *mailController) MialList(ctx context.Context, req *game.MailsSearchReq) (res *game.MailsSearchRes, err error) { res, err = serviceGame.GameMail().GetMailList(ctx, req) return } func (c *mailController) SendMail(ctx context.Context, req *game.MailSendReq) (res *game.MailSendRes, err error) { res, err = serviceGame.GameMail().SendMail(ctx, req) return }