[反向代理]源站可以设置名称、描述、是否启用

This commit is contained in:
刘祥超
2020-11-30 20:00:32 +08:00
parent d308219a82
commit f6f08af2a0
7 changed files with 90 additions and 15 deletions

View File

@@ -57,6 +57,8 @@ func (this *IndexAction) RunGet(params struct {
"id": originConfig.Id,
"weight": originConfig.Weight,
"addr": originConfig.Addr.Protocol.String() + "://" + originConfig.Addr.Host + ":" + originConfig.Addr.PortRange,
"name": originConfig.Name,
"isOn": originConfig.IsOn,
}
primaryOriginMaps = append(primaryOriginMaps, m)
}
@@ -65,6 +67,8 @@ func (this *IndexAction) RunGet(params struct {
"id": originConfig.Id,
"weight": originConfig.Weight,
"addr": originConfig.Addr.Protocol.String() + "://" + originConfig.Addr.Host + ":" + originConfig.Addr.PortRange,
"name": originConfig.Name,
"isOn": originConfig.IsOn,
}
backupOriginMaps = append(backupOriginMaps, m)
}