| | |
| | | OrigName: true, |
| | | } |
| | | |
| | | type RuleTemplateVo struct { |
| | | Id string `json:"id"` //场景模板id |
| | | Name string `json:"name"` //模板名称 |
| | | Desc string `json:"desc"` //场景描述 |
| | | Txt string `json:"txt"` //场景策略规则组合文字 |
| | | Rules string `json:"rules"` //具体的小规则集合 |
| | | } |
| | | |
| | | // @Summary 保存场景模板 |
| | | // @Description 保存场景模板 |
| | | // @Accept json |
| | | // @Produce json |
| | | // @Tags 场景模板 |
| | | // @Param reqBody body models.RuleTemplate true "模板保存参数" |
| | | // @Param reqBody body controllers.RuleTemplateVo true "模板保存参数" |
| | | // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}" |
| | | // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}" |
| | | // @Router /data/api-v/template/rule/save [post] |