实现重写规则管理

This commit is contained in:
GoEdgeLab
2020-09-28 16:25:26 +08:00
parent 1353ad9e6d
commit f459632dd6
37 changed files with 935 additions and 66 deletions

View File

@@ -63,6 +63,7 @@ func (this *IndexAction) RunGet(params struct {
"type": server.Type,
"name": server.Name,
"description": server.Description,
"isOn": server.IsOn,
}
serverType := serverconfigs.FindServerType(server.Type)
@@ -83,6 +84,7 @@ func (this *IndexAction) RunPost(params struct {
Name string
Description string
ClusterId int64
IsOn bool
Must *actions.Must
}) {
@@ -99,6 +101,7 @@ func (this *IndexAction) RunPost(params struct {
Name: params.Name,
Description: params.Description,
ClusterId: params.ClusterId,
IsOn: params.IsOn,
})
if err != nil {
this.ErrorPage(err)