|
|
|
package game
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
|
|
"tyj_admin/internal/model/entity"
|
|
|
|
)
|
|
|
|
|
|
|
|
type GetCronReq struct {
|
|
|
|
g.Meta `path:"/notice/getCron" tags:"定时器" method:"post" summary:"待发送公告"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetCronRes struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
NoticeLogs []entity.GameNoticeLog `json:"noticeLogs"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetMailCronReq struct {
|
|
|
|
g.Meta `path:"/mail/getCron" tags:"定时器" method:"get" summary:"待发送公告"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetMailCronRes struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
MailLogs []entity.Mail `json:"mailLogs"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddCronReq struct {
|
|
|
|
g.Meta `path:"/notice/addCron" tags:"定时器" method:"post" summary:"添加待发送公告"`
|
|
|
|
Id int64 `p:"id" description:"索引ID"`
|
|
|
|
NoticeId int64 `p:"noticeId" description:"notice表id"`
|
|
|
|
NoticeType int `p:"noticeType" description:"公告类型:1表示弹窗公告,2表示登录公告,3表示维护公告"`
|
|
|
|
Channel string `p:"channel" description:"渠道号:第三方的登录渠道"`
|
|
|
|
Content string `p:"content" description:""`
|
|
|
|
SendTime int64 `p:"sendTime" description:""`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddCronRes struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddMailCronReq struct {
|
|
|
|
g.Meta `path:"/mail/addCron" tags:"定时器" method:"post" summary:"添加待发送邮件"`
|
|
|
|
Id string `p:"Id"`
|
|
|
|
ServerId []string `p:"ServerId"`
|
|
|
|
To string `p:"To"`
|
|
|
|
From string `p:"From"`
|
|
|
|
Type int32 `p:"Type"`
|
|
|
|
Expired int64 `p:"Expired"`
|
|
|
|
ValidDay int32 `p:"ValidDay"`
|
|
|
|
Send int32 `p:"Send"`
|
|
|
|
Time int64 `p:"Time"`
|
|
|
|
NewGet int32 `p:"NewGet "`
|
|
|
|
Title string `p:"Title"`
|
|
|
|
//Greetings string `p:"Greetings"`
|
|
|
|
Content string `p:"Content"`
|
|
|
|
OwnerId string `p:"ownerId"`
|
|
|
|
Drops []entity.Drop `p:"Drops"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddMailCronRes struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddNoticeReq struct {
|
|
|
|
g.Meta `path:"/notice/add" tags:"公告" method:"post" summary:"维护公告"`
|
|
|
|
Status int `p:"status"`
|
|
|
|
Content string `p:"content"`
|
|
|
|
Channel string `p:"channel"`
|
|
|
|
NoticeType int `p:"noticeType"`
|
|
|
|
SendTime int64 `p:"sendTime"`
|
|
|
|
NoticeId int64 `p:"noticeId"`
|
|
|
|
Id int64 `p:"id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddNoticeRes struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type DelNoticeLogReq struct {
|
|
|
|
g.Meta `path:"/notice/del" tags:"公告" method:"post" summary:"公告日志删除"`
|
|
|
|
Id int64 `p:"id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DelNoticeLogRes struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type DelNoticeListReq struct {
|
|
|
|
g.Meta `path:"/notice/delList" tags:"公告" method:"post" summary:"公告列表删除"`
|
|
|
|
Id int64 `p:"id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DelNoticeListRes struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetNoticeReq struct {
|
|
|
|
g.Meta `path:"/notice/get" tags:"公告" method:"get" summary:"维护公告"`
|
|
|
|
Channel string `p:"channel"`
|
|
|
|
NoticeType int `p:"noticeType"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetNoticeRes struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
Status int `json:"status"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
Id int64 `json:"id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetNoticeListReq struct {
|
|
|
|
g.Meta `path:"/notice/list" tags:"公告" method:"post" summary:"公告列表"`
|
|
|
|
Channel string `p:"channel"`
|
|
|
|
NoticeType int `p:"noticeType"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetNoticeListRes struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
List []*entity.GameNotice `json:"list"`
|
|
|
|
Total int `json:"total"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type PopReq struct {
|
|
|
|
g.Meta `path:"/notice/pop" tags:"公告" method:"post" summary:"弹窗公告"`
|
|
|
|
PopTo int `p:"popTo"`
|
|
|
|
Type int `p:"popType"`
|
|
|
|
Uids string `p:"uids"`
|
|
|
|
ServerId int `p:"serverId"`
|
|
|
|
Content string `p:"content"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type PopRes struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetGameNoticeReq struct {
|
|
|
|
g.Meta `path:"/gamenotice/get" tags:"公告" method:"get" summary:"维护公告"`
|
|
|
|
Channel string `p:"channel"`
|
|
|
|
NoticeType int `p:"noticeType"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetGameNoticeRes struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
Status int `json:"status"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
TimeStamp int32 `json:"timeStamp"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetGameNoticeLogReq struct {
|
|
|
|
g.Meta `path:"/notice/log" tags:"公告" method:"post" summary:"历史公告"`
|
|
|
|
PageSize int `json:"pageSize"`
|
|
|
|
PageNum int `json:"pageNum"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
NoticeType int `json:"noticeType"`
|
|
|
|
BeginTime int64 `json:"beginTime"`
|
|
|
|
EndTime int64 `json:"endTime"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetGameNoticeLogRes struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
NoticeLog []entity.GameNoticeLog `json:"noticeLog"`
|
|
|
|
Total int `json:"total"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetNoticeModelReq struct {
|
|
|
|
g.Meta `path:"/notice/modelGet" tags:"公告" method:"post" summary:"公告模板"`
|
|
|
|
ModelId int `p:"modelId"`
|
|
|
|
NoticeType int `p:"noticeType"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetNoticeModelRes struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
NoticeModel []entity.GameNoticeModel `json:"noticeModel"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddNoticeModelReq struct {
|
|
|
|
g.Meta `path:"/notice/modelAdd" tags:"公告" method:"post" summary:"公告模板"`
|
|
|
|
Title string `p:"title"`
|
|
|
|
Content string `p:"content"`
|
|
|
|
Channel string `p:"channel"`
|
|
|
|
NoticeType int `p:"noticeType"`
|
|
|
|
ModelType int `p:"modelType"`
|
|
|
|
Id int `p:"id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddNoticeModelRes struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type DelNoticeModelReq struct {
|
|
|
|
g.Meta `path:"/notice/modelDel" tags:"公告" method:"post" summary:"公告模板"`
|
|
|
|
Id int `p:"id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DelNoticeModelRes struct {
|
|
|
|
}
|