liuxiaolong
2020-06-28 a75018a48fee3d925a7f6fe6c8337fcf4af59667
fix swag
1个文件已修改
10 ■■■■■ 已修改文件
controllers/ruleTemplate.go 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/ruleTemplate.go
@@ -21,12 +21,20 @@
    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]