[优化]优化命名

This commit is contained in:
PandaX
2024-03-13 14:09:19 +08:00
parent e4dbd843f2
commit 7a25d49846
27 changed files with 27 additions and 27 deletions

View File

@@ -18,7 +18,7 @@ func InitRuleChainRouter(container *restful.Container) {
ws := new(restful.WebService)
ws.Path("/rule/chain").Produces(restful.MIME_JSON)
tags := []string{"rulechain"}
tags := []string{"规则链"}
ws.Route(ws.GET("/nodeLabels").To(func(request *restful.Request, response *restful.Response) {
restfulx.NewReqCtx(request, response).WithNeedCasbin(false).WithLog("获取所有节点标签").Handle(s.GetNodeLabels)

View File

@@ -17,7 +17,7 @@ func InitRuleChainMsgLogRouter(container *restful.Container) {
ws := new(restful.WebService)
ws.Path("/rule/chain/log").Produces(restful.MIME_JSON)
tags := []string{"RuleChainMsgLog"}
tags := []string{"规则链日志"}
ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) {
restfulx.NewReqCtx(request, response).WithLog("获取规则引擎日志分页列表").Handle(s.GetRuleChainMsgLogList)