管理端全部功能跑通
This commit is contained in:
36
EdgeAPI/internal/db/models/httpdns_app_model.go
Normal file
36
EdgeAPI/internal/db/models/httpdns_app_model.go
Normal file
@@ -0,0 +1,36 @@
|
||||
package models
|
||||
|
||||
// HTTPDNSApp maps to edgeHTTPDNSApps.
|
||||
type HTTPDNSApp struct {
|
||||
Id uint32 `field:"id"` // id
|
||||
Name string `field:"name"` // app name
|
||||
AppId string `field:"appId"` // external app id
|
||||
IsOn bool `field:"isOn"` // enabled
|
||||
PrimaryClusterId uint32 `field:"primaryClusterId"` // primary cluster id
|
||||
BackupClusterId uint32 `field:"backupClusterId"` // backup cluster id
|
||||
SNIMode string `field:"sniMode"` // sni mode
|
||||
UserId int64 `field:"userId"` // owner user id
|
||||
CreatedAt uint64 `field:"createdAt"` // created unix ts
|
||||
UpdatedAt uint64 `field:"updatedAt"` // updated unix ts
|
||||
State uint8 `field:"state"` // state
|
||||
}
|
||||
|
||||
// HTTPDNSAppOperator is used by DAO save/update.
|
||||
type HTTPDNSAppOperator struct {
|
||||
Id any // id
|
||||
Name any // app name
|
||||
AppId any // external app id
|
||||
IsOn any // enabled
|
||||
PrimaryClusterId any // primary cluster id
|
||||
BackupClusterId any // backup cluster id
|
||||
SNIMode any // sni mode
|
||||
UserId any // owner user id
|
||||
CreatedAt any // created unix ts
|
||||
UpdatedAt any // updated unix ts
|
||||
State any // state
|
||||
}
|
||||
|
||||
func NewHTTPDNSAppOperator() *HTTPDNSAppOperator {
|
||||
return &HTTPDNSAppOperator{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user