|
@@ -28,7 +28,7 @@ type RuleApi struct {
|
|
// @Security ApiKeyAuth
|
|
// @Security ApiKeyAuth
|
|
// @Param bidsectionId path string true "标段ID"
|
|
// @Param bidsectionId path string true "标段ID"
|
|
// @Param projectId path string true "项目ID"
|
|
// @Param projectId path string true "项目ID"
|
|
-// @Success 200 {object} viewmodels.ViewRule "{code:0成功,data:viewmodels.Safe,msg:}"
|
|
|
|
|
|
+// @Success 200 {object} viewmodels.ViewRule "{code:0成功,data:viewmodels.Safe,msg:请求成功}"
|
|
// @Failure 400 {string} string "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}"
|
|
// @Failure 400 {string} string "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}"
|
|
// @Router /api/rule [get]
|
|
// @Router /api/rule [get]
|
|
func (c *RuleApi) Get() {
|
|
func (c *RuleApi) Get() {
|
|
@@ -67,7 +67,7 @@ func (c *RuleApi) Get() {
|
|
// @Param bidsectionId body string true "标段ID"
|
|
// @Param bidsectionId body string true "标段ID"
|
|
// @Param type body string true "规则类型" eg:"safeRule、qualityRule、contractRule"
|
|
// @Param type body string true "规则类型" eg:"safeRule、qualityRule、contractRule"
|
|
// @Param value body string true "编号规则" eg:"'['202011', 'cc3']'"
|
|
// @Param value body string true "编号规则" eg:"'['202011', 'cc3']'"
|
|
-// @Success 200 {object} "{code:0成功,msg:}"
|
|
|
|
|
|
+// @Success 200 {string} string "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}"
|
|
// @Failure 400 {string} string "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}"
|
|
// @Failure 400 {string} string "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}"
|
|
// @Router /api/rule [post]
|
|
// @Router /api/rule [post]
|
|
func (c *RuleApi) Post() {
|
|
func (c *RuleApi) Post() {
|
|
@@ -110,7 +110,7 @@ func (c *RuleApi) Post() {
|
|
// @Security ApiKeyAuth
|
|
// @Security ApiKeyAuth
|
|
// @Param bidsectionId body string true "标段ID"
|
|
// @Param bidsectionId body string true "标段ID"
|
|
// @Param type body string true "规则类型" eg:"safeRule、qualityRule、contractRule"
|
|
// @Param type body string true "规则类型" eg:"safeRule、qualityRule、contractRule"
|
|
-// @Success 200 {object} "{code:0成功,data:"",msg:""}"
|
|
|
|
|
|
+// @Success 200 {string} string "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}"
|
|
// @Failure 400 {string} string "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}"
|
|
// @Failure 400 {string} string "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}"
|
|
// @Router /api/rule/auto [post]
|
|
// @Router /api/rule/auto [post]
|
|
func (c *RuleApi) PostAuto() {
|
|
func (c *RuleApi) PostAuto() {
|