Files
PandaX/apps/resource/entity/mail.go
2022-01-14 17:37:01 +08:00

22 lines
1.0 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package entity
import "pandax/base/model"
/**
* @Description 添加qq群467890197 交流学习
* @Author 熊猫
* @Date 2022/1/13 14:47
**/
type ResEmail struct {
MailId int64 `json:"mailId" gorm:"primaryKey;AUTO_INCREMENT;comment:主键编码"`
Category string `json:"category" grom:"type:varchar(1);comment:分类qq或163"` // 0 163邮箱1 qq邮箱 2 企业邮箱
Host string `json:"host" grom:"type:varchar(64);comment:服务器地址"` // 服务器地址
Port int `json:"port" grom:"type:int;comment:服务器端口"` // 服务器端口
From string `json:"from" grom:"type:varchar(64);comment:邮箱账号"` // 邮箱账号
Nickname string `json:"nickname" grom:"type:varchar(64);comment:发件人"` // 发件人
Secret string `json:"secret" grom:"type:varchar(64);comment:邮箱密码"` // 邮箱密码
IsSSL bool `json:"isSsl" grom:"comment:是否开启ssl"` // 是否开启ssl
Status string `json:"status" grom:"type:varchar(1);comment:状态"`
model.BaseModel
}