12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- package model
- import "fmt"
- // TSysMailTemplate [...]
- type TSysMailTemplate struct {
- Id int64 `db:"id" json:"id"`
- Content map[string]SystemMailContent `db:"content" json:"content"` // 模板内容
- Remark string `db:"remark" json:"remark"` // 注释
- }
- // TableName get sql table name.获取数据库表名
- func (TSysMailTemplate) TableName() string {
- return "crazygod_api_config.t_sys_mail_template"
- }
- type SystemMailContent struct {
- Title string `db:"title" json:"title"`
- Body string `db:"body" json:"body"`
- }
- // TSysMailSchedule [...]
- type TSysMailSchedule struct {
- SysMailScheduleSub
- Days int64 `db:"days" json:"days"` // 显示天数
- OnlineStart int64 `db:"online_start" json:"online_start"`
- OnlineEnd int64 `db:"online_end" json:"online_end"`
- LevelStart int64 `db:"level_start" json:"level_start"` // 等级区间
- LevelEnd int64 `db:"level_end" json:"level_end"` // 等级区间
- ScoreStart int64 `db:"score_start" json:"score_start"` // 积分区间
- ScoreEnd int64 `db:"score_end" json:"score_end"` // 积分区间
- Sid int64 `db:"sid" json:"sid"` // 设备
- Langs []string `db:"langs" json:"langs"` // 语言编码
- Version []string `db:"version" json:"version"` // 版本范围
- }
- // TableName get sql table name.获取数据库表名
- func (TSysMailSchedule) TableName() string {
- return "crazygod_api_config.t_sys_mail_schedule"
- }
- // SysMailScheduleSub [...]
- type SysMailScheduleSub struct {
- Id int64 `db:"id" json:"id"`
- TemplateId int64 `db:"template_id" json:"template_id"`
- Rewards []PropPrize `db:"rewards" json:"rewards"` // 邮件奖励
- Remark string `db:"remark" json:"remark"` // 注释
- Uids string `db:"uids" json:"uids"` // uid列表
- AliveStart int64 `db:"alive_start" json:"alive_start"`
- AliveEnd int64 `db:"alive_end" json:"alive_end"`
- CreateTime int64 `db:"create_time" json:"create_time"` // 创建时间
- Operator string `db:"operator" json:"operator"` // 创建时间
- }
- // TableName get sql table name.获取数据库表名
- func (SysMailScheduleSub) TableName() string {
- return "crazygod_api_config.t_sys_mail_schedule"
- }
- type SysMailScheduleShow struct {
- Id int64 `json:"id"`
- Template string `json:"template"`
- Rewards []PropPrize `json:"rewards"` // 邮件奖励
- Remark string `json:"remark"` // 注释
- Type int64 `json:"type"` // 发送类型
- Status int64 `json:"status"` // 发送状态
- CreateTime string `json:"create_time"` // 创建时间
- Operator string `json:"operator"` // 创建时间
- }
- // UserSysMail [...]
- type UserSysMail struct {
- Id int64 `db:"id" json:"id"` // 邮件id
- Uid int64 `db:"uid" json:"uid"` // 玩家id
- Msgid int64 `db:"msgid" json:"msgid"` // 邮件模板id
- Got int64 `db:"got" json:"got"` // 状态:(0:未读,1:已读,2:已领)
- Rewards []PropPrize `db:"rewards" json:"rewards"` // 奖励
- Expire int64 `db:"expire" json:"expire"` // 过期时间
- CreateTime int64 `db:"create_time" json:"create_time"` // 创建时间
- Supplement *DocModel `db:"supplement" json:"supplement"` // 补充内容
- }
- type DocModel struct {
- Title []string `json:"title"`
- Body []string `json:"body"`
- }
- // TableName get sql table name.获取数据库表名
- func (UserSysMail) TableName(uid int64) string {
- return fmt.Sprintf("crazygod_user_sysmail.user_sysmail_%d", uid%100)
- }
- type SendMailRewardsConf struct {
- Uids []int64 `json:"uids"`
- MsgId int64 `json:"msgId"`
- Rewards []PropPrize `json:"rewards"`
- }
|