|
@@ -147,6 +147,78 @@ var doc = `{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ "/api/contract/income/create": {
|
|
|
|
+ "post": {
|
|
|
|
+ "security": [
|
|
|
|
+ {
|
|
|
|
+ "ApiKeyAuth": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "description": "新增合同",
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "tags": [
|
|
|
|
+ "合同管理"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "新增合同",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "type": "string",
|
|
|
|
+ "description": "项目节ID",
|
|
|
|
+ "name": "treeId",
|
|
|
|
+ "in": "path",
|
|
|
|
+ "required": true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "type": "string",
|
|
|
|
+ "description": "标段ID",
|
|
|
|
+ "name": "bidsectionId",
|
|
|
|
+ "in": "path",
|
|
|
|
+ "required": true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "type": "string",
|
|
|
|
+ "description": "合同编号",
|
|
|
|
+ "name": "code",
|
|
|
|
+ "in": "path",
|
|
|
|
+ "required": true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "type": "string",
|
|
|
|
+ "description": "合同名称",
|
|
|
|
+ "name": "name",
|
|
|
|
+ "in": "path",
|
|
|
|
+ "required": true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "type": "integer",
|
|
|
|
+ "description": "合同类型(1)",
|
|
|
|
+ "name": "contractsType",
|
|
|
|
+ "in": "path",
|
|
|
|
+ "required": true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "type": "string",
|
|
|
|
+ "description": "合同金额",
|
|
|
|
+ "name": "price",
|
|
|
|
+ "in": "path",
|
|
|
|
+ "required": true
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{code:0成功,-1参数类错误,msg:错误信息}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "$ref": "#/definitions/viewmodels.TreeSectionContract"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"/api/contract/income/section/all": {
|
|
"/api/contract/income/section/all": {
|
|
"get": {
|
|
"get": {
|
|
"security": [
|
|
"security": [
|
|
@@ -1387,6 +1459,214 @@ var doc = `{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ "/api/safe": {
|
|
|
|
+ "get": {
|
|
|
|
+ "security": [
|
|
|
|
+ {
|
|
|
|
+ "ApiKeyAuth": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "description": "获得列表数据",
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "tags": [
|
|
|
|
+ "安全巡检"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "安全巡检列表",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "type": "string",
|
|
|
|
+ "description": "标段ID",
|
|
|
|
+ "name": "bidsectionId",
|
|
|
|
+ "in": "path",
|
|
|
|
+ "required": true
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{code:0成功,data:viewmodels.Safe,msg:}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "$ref": "#/definitions/viewmodels.Safe"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "400": {
|
|
|
|
+ "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "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": "code",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "description": "日期",
|
|
|
|
+ "name": "createTime",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "description": "检查部位",
|
|
|
|
+ "name": "inspection",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "description": "部位",
|
|
|
|
+ "name": "position",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{code:0成功,msg:}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "$ref": "#/definitions/viewmodels.Safe"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "400": {
|
|
|
|
+ "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "delete": {
|
|
|
|
+ "security": [
|
|
|
|
+ {
|
|
|
|
+ "ApiKeyAuth": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "description": "删除安全巡检记录",
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "tags": [
|
|
|
|
+ "安全巡检"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "安全巡检列表",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "description": "安全巡检ID",
|
|
|
|
+ "name": "id",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{code:0成功,msg:}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "$ref": "#/definitions/viewmodels.Safe"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "400": {
|
|
|
|
+ "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "/api/safe/detail": {
|
|
|
|
+ "get": {
|
|
|
|
+ "security": [
|
|
|
|
+ {
|
|
|
|
+ "ApiKeyAuth": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "description": "获得安全巡检详情页面数据",
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "tags": [
|
|
|
|
+ "安全巡检"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "安全巡检列表",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "type": "string",
|
|
|
|
+ "description": "巡检ID",
|
|
|
|
+ "name": "id",
|
|
|
|
+ "in": "path",
|
|
|
|
+ "required": true
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{code:0成功,data:viewmodels.Safe,msg:}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "$ref": "#/definitions/viewmodels.Safe"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "400": {
|
|
|
|
+ "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"/api/tree": {
|
|
"/api/tree": {
|
|
"get": {
|
|
"get": {
|
|
"security": [
|
|
"security": [
|
|
@@ -1676,6 +1956,16 @@ var doc = `{
|
|
},
|
|
},
|
|
"projectId": {
|
|
"projectId": {
|
|
"type": "string"
|
|
"type": "string"
|
|
|
|
+ },
|
|
|
|
+ "safeRectification": {
|
|
|
|
+ "type": "integer"
|
|
|
|
+ },
|
|
|
|
+ "safeRectificationIn": {
|
|
|
|
+ "type": "integer"
|
|
|
|
+ },
|
|
|
|
+ "safeTotal": {
|
|
|
|
+ "description": "安全巡检字段-后期做接口后移动-TODO",
|
|
|
|
+ "type": "integer"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1740,6 +2030,44 @@ var doc = `{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ "viewmodels.Safe": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "bidsectionId": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "code": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "createTime": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "demand": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "endTime": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "id": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "inspection": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "inspectionDetail": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "position": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "status": {
|
|
|
|
+ "type": "integer"
|
|
|
|
+ },
|
|
|
|
+ "uid": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"viewmodels.Tree": {
|
|
"viewmodels.Tree": {
|
|
"type": "object",
|
|
"type": "object",
|
|
"properties": {
|
|
"properties": {
|