script.go 543 字节
Newer Older
E
eoLinker API Management 已提交
1 2 3
package script

import (
黄孟柱 已提交
4
	"github.com/eolinker/goku-api-gateway/server/dao"
Y
Your Name 已提交
5
	consolemysql "github.com/eolinker/goku-api-gateway/server/dao/console-mysql"
E
eoLinker API Management 已提交
6 7
)

Y
Your Name 已提交
8 9 10
//RefreshAPIInfo 刷新接口信息
func RefreshAPIInfo() bool {
	//return consolemysql.RefreshAPIInfo()
E
eoLinker API Management 已提交
11 12 13
	return true
}

Y
Your Name 已提交
14
//RefreshGatewayAlertConfig 刷新网关告警配置
E
eoLinker API Management 已提交
15
func RefreshGatewayAlertConfig() bool {
Y
Your Name 已提交
16
	return consolemysql.RefreshGatewayAlertConfig()
E
eoLinker API Management 已提交
17 18
}

Y
Your Name 已提交
19
//UpdateTables 更新表
E
eoLinker API Management 已提交
20 21 22 23 24
func UpdateTables(names []string) {
	for _, name := range names {
		dao.UpdateTable(name)
	}
}