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.
25 lines
566 B
25 lines
566 B
3 years ago
|
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
|
||
|
}
|