* 移除自动DNS记录验证方式 * v2.5.2 (#13) 1、重写SSL证书申请逻辑,支持DNS记录验证方式 2、修复无法查看详情的bug 3、优化手动设置证书的逻辑 4、发送失败邮件添加错误提醒 5、补充详情接口的单元测试 Co-authored-by: jinnrry <jinnrry@users.noreply.github.com> Reviewed-on: http://192.168.123.5/jinnrry/PMail_Github/pulls/13 --------- Co-authored-by: jinnrry <jinnrry@users.noreply.github.com> Co-authored-by: jinnrry <i@jinnrry.com>
15 lines
696 B
Go
15 lines
696 B
Go
package models
|
||
|
||
type UserEmail struct {
|
||
ID int `xorm:"id int unsigned not null pk autoincr"`
|
||
UserID int `xorm:"user_id int not null index('idx_eid') index comment('用户id')"`
|
||
EmailID int `xorm:"email_id not null index('idx_eid') index comment('信件id')"`
|
||
IsRead int8 `xorm:"is_read tinyint(1) comment('是否已读')" json:"is_read"`
|
||
GroupId int `xorm:"group_id int notnull default(0) comment('分组id')'" json:"group_id"`
|
||
Status int8 `xorm:"status tinyint(4) notnull default(0) comment('0未发送,1已发送,2发送失败,3删除')" json:"status"` // 0未发送,1已发送,2发送失败 3删除
|
||
}
|
||
|
||
func (p UserEmail) TableName() string {
|
||
return "user_email"
|
||
}
|