mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-31 15:36:35 +08:00
域名记录可以停用/启用
This commit is contained in:
@@ -88,6 +88,7 @@ func (this *IndexAction) RunGet(params struct {
|
||||
"ttl": record.Ttl,
|
||||
"weight": record.Weight,
|
||||
"description": record.Description,
|
||||
"isOn": record.IsOn,
|
||||
"routes": routeMaps,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@ func (this *UpdatePopupAction) RunGet(params struct {
|
||||
"ttl": record.Ttl,
|
||||
"weight": record.Weight,
|
||||
"description": record.Description,
|
||||
"isOn": record.IsOn,
|
||||
"routeIds": routeIds,
|
||||
}
|
||||
|
||||
@@ -81,6 +82,7 @@ func (this *UpdatePopupAction) RunPost(params struct {
|
||||
Value string
|
||||
Ttl int32
|
||||
Description string
|
||||
IsOn bool
|
||||
RouteIds []int64
|
||||
|
||||
Must *actions.Must
|
||||
@@ -106,6 +108,7 @@ func (this *UpdatePopupAction) RunPost(params struct {
|
||||
Type: params.Type,
|
||||
Value: params.Value,
|
||||
Ttl: params.Ttl,
|
||||
IsOn: params.IsOn,
|
||||
NsRouteIds: params.RouteIds,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user