ecs/proto/old/external_game_mail.go

61 lines
1.6 KiB
Go
Raw Normal View History

2025-06-04 18:17:39 +08:00
package old
type Mail struct {
Id uint64 `json:"Id"` //ID
Type uint32 `json:"Type"` //邮件类型: 1.常规邮件, 2.特殊邮件, 3.后台邮件, 4.全服邮件
Title string `json:"Title,omitempty"` //邮件标题(邮件类型1,2为标题ID, 3,4为文字标题),
Content string `json:"Content,omitempty"` //邮件内容(规则同标题)
Args []string `json:"Args,omitempty"` //内容参数(用于内容中需要可以变字符时)
Status uint32 `json:"Status"` //邮件状态: 0.未读 1.已读 2.已领取(已领取即已读), 3.已删除(已删除的邮件不会再发给客户端)
ItemList []*ItemPair `json:"ItemList,omitempty"` //邮件附件(奖励物品, 可能为空)
CreateTime int64 `json:"CreateTime"` //邮件发送时间
Expiration int64 `json:"Expiration,omitempty"` //过期时间
}
type MsgMailListAck struct {
List []*Mail `json:"List,omitempty"`
}
type MailChange struct {
Id uint64 `json:"Id"`
Status uint32 `json:"Status"`
}
type MsgMailReadReq struct {
Id uint64 `json:"Id"`
}
type MsgMailReadAck struct {
*MailChange
}
type MsgMailReceiveReq struct {
Id uint64 `json:"Id"`
}
type MsgMailReceiveAck struct {
*MsgRewardListAck
*MailChange
}
type MsgMailReceiveAllAck struct {
*MsgRewardListAck
ChangeList []*MailChange `json:"ChangeList"`
}
type MsgMailDeleteReq struct {
Id uint64 `json:"Id"`
}
type MsgMailDeleteAck struct {
*MailChange
}
type MsgMailDeleteAllAck struct {
ChangeList []*MailChange `json:"ChangeList"`
}
type MsgMailSendAck struct {
*Mail
}