1
This commit is contained in:
parent
a6fb94c21e
commit
8b32ce6c89
@ -7,28 +7,25 @@ import (
|
||||
//"strings"
|
||||
)
|
||||
|
||||
type attachment struct {
|
||||
itemId int32
|
||||
itemNum int32
|
||||
}
|
||||
|
||||
type mail struct {
|
||||
GameId int `json:"-"`
|
||||
MailId int64 `json:"mailid,string"`
|
||||
From string `json:"from"`
|
||||
To string `json:"to"`
|
||||
Subject string `json:"subject"`
|
||||
Content string `json:"content"`
|
||||
Flag int `json:"flags"`
|
||||
SendTime int32 `json:"sendtime"`
|
||||
ExpireTime int32 `json:"expiretime"`
|
||||
MailType int `json:"mailtype"`
|
||||
MailSubType int `json:"mailsubtype"`
|
||||
UserType int `json:"-"`
|
||||
CreateTime int32 `json:"-"`
|
||||
Ext string `json:"ext"`
|
||||
malid int64
|
||||
subject string
|
||||
content string
|
||||
sendTime int32
|
||||
expireTime int32
|
||||
attachments []*attachment
|
||||
}
|
||||
|
||||
func (m *mail) Init() {
|
||||
func (this *mail) Init() {
|
||||
|
||||
}
|
||||
|
||||
func NewMail() *mail {
|
||||
func newMail() *mail {
|
||||
m := new(mail)
|
||||
m.Init()
|
||||
return m
|
||||
|
@ -11,9 +11,14 @@ type userMail struct {
|
||||
userMailHash map[string]map[string]*mail
|
||||
}
|
||||
|
||||
type group struct {
|
||||
userHash map[string]int32
|
||||
}
|
||||
|
||||
type mailMgr struct {
|
||||
idHash map[int64]*mail
|
||||
userMailArr [1024]*userMail
|
||||
groupHash map[string]*group
|
||||
}
|
||||
|
||||
func (this *mailMgr) Init() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user