Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailAccount ¶
type MailAccount struct { entity.StatusEntity `xorm:"extends"` Name string `xorm:"varchar(255) notnull" json:"name,omitempty"` Password string `xorm:"varchar(512)" json:"password,omitempty"` PeerId string `xorm:"varchar(512)" json:"peerId,omitempty"` StartDate *time.Time `json:"startDate,omitempty"` EndDate *time.Time `json:"endDate,omitempty"` }
* 邮件系统有多个账户account,每个账户有多个邮箱,mailbox,每个邮箱有多个消息,mailmessage
func (MailAccount) IdName ¶
func (MailAccount) IdName() string
func (MailAccount) KeyName ¶
func (MailAccount) KeyName() string
func (MailAccount) TableName ¶
func (MailAccount) TableName() string
type MailBox ¶
type MailBox struct { entity.StatusEntity `xorm:"extends"` BoxName string `xorm:"varchar(255) notnull" json:"name,omitempty"` AccountName string `xorm:"varchar(255) notnull" json:"accountName,omitempty"` Subscribed bool `json:"subscribed,omitempty"` StartDate *time.Time `json:"startDate,omitempty"` EndDate *time.Time `json:"endDate,omitempty"` Flag string `xorm:"varchar(255) notnull" json:"flag,omitempty"` PermanentFlag string `xorm:"varchar(255) notnull" json:"permanentFlag,omitempty"` ReadOnly bool `json:"readOnly,omitempty"` // 第一个未读消息的序列号 UnseenSeqNum uint32 `json:"unseenSeqNum,omitempty"` // 消息的数量 MessageNum uint32 `json:"messageNum,omitempty"` // 最后一次打开时未读消息的数量 Recent uint32 `json:"recent,omitempty"` // 未读消息的数量 Unseen uint32 `json:"unseen,omitempty"` }
type MailMessage ¶
type MailMessage struct { entity.StatusEntity `xorm:"extends"` BoxName string `xorm:"varchar(255) notnull" json:"boxName,omitempty"` Hash string `xorm:"varchar(255) notnull" json:"hash,omitempty"` Size uint64 `json:"size,omitempty"` SeenFlag string `xorm:"varchar(255) notnull" json:"seenFlag,omitempty"` AnsweredFlag string `xorm:"varchar(255) notnull" json:"answeredFlag,omitempty"` FlaggedFlag string `xorm:"varchar(255) notnull" json:"flaggedFlag,omitempty"` DeletedFlag string `xorm:"varchar(255) notnull" json:"deletedFlag,omitempty"` DraftFlag string `xorm:"varchar(255) notnull" json:"draftFlag,omitempty"` RecentFlag string `xorm:"varchar(255) notnull" json:"recentFlag,omitempty"` Body []byte `json:"body,omitempty"` }
func (MailMessage) IdName ¶
func (MailMessage) IdName() string
func (MailMessage) KeyName ¶
func (MailMessage) KeyName() string
func (MailMessage) TableName ¶
func (MailMessage) TableName() string
Click to show internal directories.
Click to hide internal directories.