mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
[优化]优化命名
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user