- 新增 ACME客户端功能,支持域名注册和证书申请 - 添加数据库模型和操作,用于存储和管理域名信息 - 实现 API 接口,提供域名注册、获取和分页查询功能 -集成全局错误处理和 panic捕获 - 添加单元测试和集成测试
14 lines
518 B
Go
14 lines
518 B
Go
package model
|
|
|
|
type Domain struct {
|
|
Id uint `gorm:"primary_key;auto_increment"`
|
|
Name string `gorm:"type:varchar(255);not null"`
|
|
Hosts string `gorm:"type:varchar(255);not null"`
|
|
Provider string `gorm:"type:varchar(32);not null"`
|
|
ProviderConf string `gorm:"type:text;not null"`
|
|
AcmeEmail string `gorm:"type:varchar(255);not null"`
|
|
AcmePriKey string `gorm:"type:text;not null"`
|
|
Registration string `gorm:"type:text;not null"`
|
|
Resource string `gorm:"type:text;not null"`
|
|
}
|