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"` PageNum int64 `p:"pageNum"` PageSize int64 `p:"pageSize"` } type MailsSearchRes struct { g.Meta `mime:"application/json"` Mails []*entity.Mail `json:"mails"` Total int64 `json:"total"` } type MailSendReq struct { g.Meta `path:"/mail/send" tags:"邮件" method:"post" summary:"发送邮件"` //GmName string `p:"gmName" v:"required#GMm名字不能为空"` //RepeatedCollection interface{} `p:"repeatedCollection" v:"required#领取类型不能为空"` //Remark string `p:"remark" v:"required#说明不能为空"` //IsAll bool `p:"isAll" ` //To string `p:"to" ` ServerId []string `p:"serverId" v:"required#区服不能为空"` From string `p:"from" ` OwnerId string `p:"ownerId" ` Type int32 `p:"type" v:"required#邮件类型不能为空"` Send int32 `p:"send"` Time int64 `p:"sendTime"` Expired int64 `p:"expired" ` ValidDay int32 `p:"validDay" ` NewGet int32 `p:"newGet" v:"required#类型不能为空,1-新号不可领取,2-新号可领取"` Title string `p:"title" v:"required#标题不能为空"` //Greetings string `p:"greetings"` Content string `p:"content" v:"required#邮件内容不能为空"` UserName string `p:"userName" v:"required#操作管理员不能为空"` Drops []entity.Drop `p:"drops" ` } type MailSendRes struct { } type MailDelReq struct { g.Meta `path:"/mail/del" tags:"邮件" method:"post" summary:"删除邮件"` Id string `p:"mailId" v:"required#邮件Id不能为空"` } type MailDelRes struct { } type MailUpdateReq struct { g.Meta `path:"/mail/update" tags:"邮件" method:"post" summary:"更新邮件"` Id string `p:"mailId" v:"required#邮件Id不能为空"` From string `p:"from" ` OwnerId string `p:"ownerId" ` Type int32 `p:"type" ` Send int32 `p:"send"` Time int64 `p:"sendTime"` Expired int64 `p:"expired" ` ValidDay int32 `p:"validDay" ` NewGet int32 `p:"newGet" ` Title string `p:"title"` //Greetings string `p:"greetings" ` Content string `p:"content" ` Drops []entity.Drop `p:"drops" ` } type MailUpdateRes struct { } type GetMailDropModelReq struct { g.Meta `path:"/mail/getModel" tags:"邮件模板" method:"post" summary:"邮件模板列表"` MType int32 `json:"mType"` } type GetMailDropModelRes struct { g.Meta `mime:"application/json"` Model string `json:"model"` } type UpdateMailDropModelReq struct { g.Meta `path:"/mail/updateModel" tags:"邮件模板" method:"post" summary:"更新邮件模板"` MType int32 `json:"mType"` Model string `json:"model"` } type UpdateMailDropModelRes struct { g.Meta `mime:"application/json"` }