管理端全部功能跑通
This commit is contained in:
26
EdgeAPI/internal/db/models/httpdns_app_secret_model.go
Normal file
26
EdgeAPI/internal/db/models/httpdns_app_secret_model.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package models
|
||||
|
||||
// HTTPDNSAppSecret 应用验签密钥配置
|
||||
type HTTPDNSAppSecret struct {
|
||||
Id uint32 `field:"id"` // ID
|
||||
AppId uint32 `field:"appId"` // 应用DB ID
|
||||
SignEnabled bool `field:"signEnabled"` // 是否启用验签
|
||||
SignSecret string `field:"signSecret"` // 验签密钥(当前先明文存储)
|
||||
SignUpdatedAt uint64 `field:"signUpdatedAt"` // 验签密钥更新时间
|
||||
UpdatedAt uint64 `field:"updatedAt"` // 修改时间
|
||||
State uint8 `field:"state"` // 记录状态
|
||||
}
|
||||
|
||||
type HTTPDNSAppSecretOperator struct {
|
||||
Id any // ID
|
||||
AppId any // 应用DB ID
|
||||
SignEnabled any // 是否启用验签
|
||||
SignSecret any // 验签密钥
|
||||
SignUpdatedAt any // 验签密钥更新时间
|
||||
UpdatedAt any // 修改时间
|
||||
State any // 记录状态
|
||||
}
|
||||
|
||||
func NewHTTPDNSAppSecretOperator() *HTTPDNSAppSecretOperator {
|
||||
return &HTTPDNSAppSecretOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user