mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 06:40:26 +08:00
47 lines
1.9 KiB
Go
47 lines
1.9 KiB
Go
package acme
|
|
|
|
import "github.com/iwind/TeaGo/dbs"
|
|
|
|
// ACMETask ACME任务
|
|
type ACMETask struct {
|
|
Id uint64 `field:"id"` // ID
|
|
AdminId uint32 `field:"adminId"` // 管理员ID
|
|
UserId uint32 `field:"userId"` // 用户ID
|
|
IsOn bool `field:"isOn"` // 是否启用
|
|
AcmeUserId uint32 `field:"acmeUserId"` // ACME用户ID
|
|
DnsDomain string `field:"dnsDomain"` // DNS主域名
|
|
DnsProviderId uint64 `field:"dnsProviderId"` // DNS服务商
|
|
Domains dbs.JSON `field:"domains"` // 证书域名
|
|
CreatedAt uint64 `field:"createdAt"` // 创建时间
|
|
State uint8 `field:"state"` // 状态
|
|
CertId uint64 `field:"certId"` // 生成的证书ID
|
|
AutoRenew uint8 `field:"autoRenew"` // 是否自动更新
|
|
AuthType string `field:"authType"` // 认证类型
|
|
AuthURL string `field:"authURL"` // 认证URL
|
|
Async bool `field:"async"` // 是否异步
|
|
Status uint32 `field:"status"` // 任务状态
|
|
}
|
|
|
|
type ACMETaskOperator struct {
|
|
Id interface{} // ID
|
|
AdminId interface{} // 管理员ID
|
|
UserId interface{} // 用户ID
|
|
IsOn interface{} // 是否启用
|
|
AcmeUserId interface{} // ACME用户ID
|
|
DnsDomain interface{} // DNS主域名
|
|
DnsProviderId interface{} // DNS服务商
|
|
Domains interface{} // 证书域名
|
|
CreatedAt interface{} // 创建时间
|
|
State interface{} // 状态
|
|
CertId interface{} // 生成的证书ID
|
|
AutoRenew interface{} // 是否自动更新
|
|
AuthType interface{} // 认证类型
|
|
AuthURL interface{} // 认证URL
|
|
Async interface{} //是否异步
|
|
Status interface{} // 任务状态
|
|
}
|
|
|
|
func NewACMETaskOperator() *ACMETaskOperator {
|
|
return &ACMETaskOperator{}
|
|
}
|