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.
51 lines
1.8 KiB
51 lines
1.8 KiB
3 years ago
|
package game
|
||
|
|
||
|
import (
|
||
|
"github.com/gogf/gf/v2/frame/g"
|
||
|
"tyj_admin/internal/model/entity"
|
||
|
)
|
||
|
|
||
|
type MailsSearchReq struct {
|
||
|
g.Meta `path:"/mail/list" tags:"查询邮件" method:"get" summary:"邮件列表"`
|
||
|
ServerId string `p:"serverId" v:""`
|
||
|
Uid string `p:"uid"`
|
||
|
LowTime int64 `p:"lowTime"`
|
||
|
UpperTime int64 `p:"upperTime"`
|
||
|
}
|
||
|
|
||
|
type MailsSearchRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
Mails []*entity.Mail `json:"mails"`
|
||
|
}
|
||
|
|
||
|
type MailSendReq struct {
|
||
|
g.Meta `path:"/mail/send" tags:"发送邮件" method:"post"`
|
||
|
ServerId string `p:"serverId" v:"required#区服不能为空"`
|
||
|
To string `p:"to" `
|
||
|
GmName string `p:"gmName" v:"required#GMm名字不能为空"`
|
||
|
Type string `p:"type" v:"required#邮件类型不能为空"`
|
||
|
Time int64 `p:"time"`
|
||
|
Expired int64 `p:"expired" `
|
||
|
NewGet string `p:"newGet" v:"required#类型不能为空"`
|
||
|
RepeatedCollection interface{} `p:"repeatedCollection" v:"required#领取类型不能为空"`
|
||
|
Title string `p:"title" v:"required#标题不能为空"`
|
||
|
Content string `p:"content" v:"required#邮件内容不能为空"`
|
||
|
Drops string `p:"drops" `
|
||
|
Remark string `p:"remark" v:"required#说明不能为空"`
|
||
|
}
|
||
|
type MailSendRes struct {
|
||
|
}
|
||
|
|
||
|
//type OnlineSearchReq struct {
|
||
|
// g.Meta `path:"/online/list" tags:"在线玩家" method:"get" summary:"在线玩家列表"`
|
||
|
// ServerId string `p:"serverId" v:""`
|
||
|
// Uid string `p:"uid"`
|
||
|
// LowTime int64 `p:"lowTime"`
|
||
|
// UpperTime int64 `p:"upperTime"`
|
||
|
//}
|
||
|
//
|
||
|
//type OnlineSearchRes struct {
|
||
|
// g.Meta `mime:"application/json"`
|
||
|
// Lines []*entity.Online `json:"lines"`
|
||
|
//}
|