|
@@ -1549,6 +1549,34 @@ var doc = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "/api/projectSetting/project": {
|
|
|
+ "get": {
|
|
|
+ "security": [
|
|
|
+ {
|
|
|
+ "ApiKeyAuth": []
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "description": "获取项目信息",
|
|
|
+ "consumes": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "项目设置-管理员"
|
|
|
+ ],
|
|
|
+ "summary": "获取项目信息",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
|
|
|
+ "schema": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"/api/projectSetting/project/save": {
|
|
|
"post": {
|
|
|
"security": [
|
|
@@ -1632,9 +1660,9 @@ var doc = `{
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
- "description": "{code:0成功,data:viewmodels.Safe,msg:}",
|
|
|
+ "description": "{code:0成功,data:viewmodels.Safe,msg:请求成功}",
|
|
|
"schema": {
|
|
|
- "$ref": "#/definitions/viewmodels.Safe"
|
|
|
+ "$ref": "#/definitions/viewmodels.ViewRule"
|
|
|
}
|
|
|
},
|
|
|
"400": {
|
|
@@ -1661,7 +1689,7 @@ var doc = `{
|
|
|
"tags": [
|
|
|
"编号规则"
|
|
|
],
|
|
|
- "summary": "提交规则",
|
|
|
+ "summary": "提交编号规则",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"description": "标段ID",
|
|
@@ -1693,9 +1721,63 @@ var doc = `{
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
- "description": "{code:0成功,data:viewmodels.Safe,msg:}",
|
|
|
+ "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
|
|
|
"schema": {
|
|
|
- "$ref": "#/definitions/viewmodels.Safe"
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "400": {
|
|
|
+ "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
|
|
|
+ "schema": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/api/rule/auto": {
|
|
|
+ "post": {
|
|
|
+ "security": [
|
|
|
+ {
|
|
|
+ "ApiKeyAuth": []
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "description": "提交规则",
|
|
|
+ "consumes": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "编号规则"
|
|
|
+ ],
|
|
|
+ "summary": "生成编号",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "description": "标段ID",
|
|
|
+ "name": "bidsectionId",
|
|
|
+ "in": "body",
|
|
|
+ "required": true,
|
|
|
+ "schema": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "description": "规则类型",
|
|
|
+ "name": "type",
|
|
|
+ "in": "body",
|
|
|
+ "required": true,
|
|
|
+ "schema": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
|
|
|
+ "schema": {
|
|
|
+ "type": "string"
|
|
|
}
|
|
|
},
|
|
|
"400": {
|
|
@@ -1765,7 +1847,7 @@ var doc = `{
|
|
|
"tags": [
|
|
|
"安全巡检"
|
|
|
],
|
|
|
- "summary": "安全巡检列表",
|
|
|
+ "summary": "创建新的安全巡检记录",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"description": "标段ID",
|
|
@@ -1844,7 +1926,7 @@ var doc = `{
|
|
|
"tags": [
|
|
|
"安全巡检"
|
|
|
],
|
|
|
- "summary": "安全巡检列表",
|
|
|
+ "summary": "删除记录",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"description": "安全巡检ID",
|
|
@@ -1889,7 +1971,7 @@ var doc = `{
|
|
|
"tags": [
|
|
|
"安全巡检"
|
|
|
],
|
|
|
- "summary": "安全巡检列表",
|
|
|
+ "summary": "获取安全巡检详情",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"type": "string",
|
|
@@ -2455,6 +2537,20 @@ var doc = `{
|
|
|
"type": "integer"
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ "viewmodels.ViewRule": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "contractRule": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "qualityRule": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "safeRule": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
"securityDefinitions": {
|