caipin 4 years ago
parent
commit
d127a16df1
3 changed files with 1233 additions and 0 deletions
  1. 465 0
      web/docs/docs.go
  2. 465 0
      web/docs/swagger.json
  3. 303 0
      web/docs/swagger.yaml

+ 465 - 0
web/docs/docs.go

@@ -75,6 +75,108 @@ var doc = `{
                 }
             }
         },
+        "/api/contract": {
+            "delete": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "description": "删除合同",
+                "consumes": [
+                    "application/json"
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "合同管理"
+                ],
+                "summary": "删除合同",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "合同ID",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "项目节ID",
+                        "name": "treeId",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "标段ID",
+                        "name": "bidsectionId",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "{code:0成功,-1参数类错误,msg:错误信息}",
+                        "schema": {
+                            "$ref": "#/definitions/viewmodels.TreeSectionContract"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/contract/close": {
+            "post": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "description": "关闭合同",
+                "consumes": [
+                    "application/json"
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "合同管理"
+                ],
+                "summary": "关闭合同",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "合同ID",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "项目节ID",
+                        "name": "treeId",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "标段ID",
+                        "name": "bidsectionId",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "{code:0成功,-1参数类错误,msg:错误信息}",
+                        "schema": {
+                            "$ref": "#/definitions/viewmodels.TreeSectionContract"
+                        }
+                    }
+                }
+            }
+        },
         "/api/contract/folder": {
             "get": {
                 "security": [
@@ -147,6 +249,113 @@ 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": "content",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "合同名称",
+                        "name": "name",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "合同金额",
+                        "name": "price",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "甲方",
+                        "name": "partyA",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "甲方签约人",
+                        "name": "partyASigner",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "已方",
+                        "name": "partyB",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "已方签约人",
+                        "name": "partyBSigner",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "签约时间",
+                        "name": "signerTime",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "备注",
+                        "name": "remarks",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "{code:0成功,-1参数类错误,msg:错误信息}",
+                        "schema": {
+                            "$ref": "#/definitions/viewmodels.TreeSectionContract"
+                        }
+                    }
+                }
+            }
+        },
         "/api/contract/income/section/all": {
             "get": {
                 "security": [
@@ -1387,6 +1596,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": {
             "get": {
                 "security": [
@@ -1676,6 +2093,16 @@ var doc = `{
                 },
                 "projectId": {
                     "type": "string"
+                },
+                "safeRectification": {
+                    "type": "integer"
+                },
+                "safeRectificationIn": {
+                    "type": "integer"
+                },
+                "safeTotal": {
+                    "description": "安全巡检字段-后期做接口后移动-TODO",
+                    "type": "integer"
                 }
             }
         },
@@ -1740,6 +2167,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": {
             "type": "object",
             "properties": {

+ 465 - 0
web/docs/swagger.json

@@ -58,6 +58,108 @@
                 }
             }
         },
+        "/api/contract": {
+            "delete": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "description": "删除合同",
+                "consumes": [
+                    "application/json"
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "合同管理"
+                ],
+                "summary": "删除合同",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "合同ID",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "项目节ID",
+                        "name": "treeId",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "标段ID",
+                        "name": "bidsectionId",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "{code:0成功,-1参数类错误,msg:错误信息}",
+                        "schema": {
+                            "$ref": "#/definitions/viewmodels.TreeSectionContract"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/contract/close": {
+            "post": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "description": "关闭合同",
+                "consumes": [
+                    "application/json"
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "合同管理"
+                ],
+                "summary": "关闭合同",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "合同ID",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "项目节ID",
+                        "name": "treeId",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "标段ID",
+                        "name": "bidsectionId",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "{code:0成功,-1参数类错误,msg:错误信息}",
+                        "schema": {
+                            "$ref": "#/definitions/viewmodels.TreeSectionContract"
+                        }
+                    }
+                }
+            }
+        },
         "/api/contract/folder": {
             "get": {
                 "security": [
@@ -130,6 +232,113 @@
                 }
             }
         },
+        "/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": "content",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "合同名称",
+                        "name": "name",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "合同金额",
+                        "name": "price",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "甲方",
+                        "name": "partyA",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "甲方签约人",
+                        "name": "partyASigner",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "已方",
+                        "name": "partyB",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "已方签约人",
+                        "name": "partyBSigner",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "签约时间",
+                        "name": "signerTime",
+                        "in": "path",
+                        "required": true
+                    },
+                    {
+                        "type": "string",
+                        "description": "备注",
+                        "name": "remarks",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "{code:0成功,-1参数类错误,msg:错误信息}",
+                        "schema": {
+                            "$ref": "#/definitions/viewmodels.TreeSectionContract"
+                        }
+                    }
+                }
+            }
+        },
         "/api/contract/income/section/all": {
             "get": {
                 "security": [
@@ -1370,6 +1579,214 @@
                 }
             }
         },
+        "/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": {
             "get": {
                 "security": [
@@ -1659,6 +2076,16 @@
                 },
                 "projectId": {
                     "type": "string"
+                },
+                "safeRectification": {
+                    "type": "integer"
+                },
+                "safeRectificationIn": {
+                    "type": "integer"
+                },
+                "safeTotal": {
+                    "description": "安全巡检字段-后期做接口后移动-TODO",
+                    "type": "integer"
                 }
             }
         },
@@ -1723,6 +2150,44 @@
                 }
             }
         },
+        "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": {
             "type": "object",
             "properties": {

+ 303 - 0
web/docs/swagger.yaml

@@ -42,6 +42,13 @@ definitions:
         type: string
       projectId:
         type: string
+      safeRectification:
+        type: integer
+      safeRectificationIn:
+        type: integer
+      safeTotal:
+        description: 安全巡检字段-后期做接口后移动-TODO
+        type: integer
     type: object
   viewmodels.Project:
     properties:
@@ -83,6 +90,31 @@ definitions:
       telephone:
         type: string
     type: object
+  viewmodels.Safe:
+    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
+    type: object
   viewmodels.Tree:
     properties:
       ancounts:
@@ -214,6 +246,72 @@ paths:
       summary: 新增标段
       tags:
       - 目录相关-管理员
+  /api/contract:
+    delete:
+      consumes:
+      - application/json
+      description: 删除合同
+      parameters:
+      - description: 合同ID
+        in: path
+        name: id
+        required: true
+        type: string
+      - description: 项目节ID
+        in: path
+        name: treeId
+        required: true
+        type: string
+      - description: 标段ID
+        in: path
+        name: bidsectionId
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: '{code:0成功,-1参数类错误,msg:错误信息}'
+          schema:
+            $ref: '#/definitions/viewmodels.TreeSectionContract'
+      security:
+      - ApiKeyAuth: []
+      summary: 删除合同
+      tags:
+      - 合同管理
+  /api/contract/close:
+    post:
+      consumes:
+      - application/json
+      description: 关闭合同
+      parameters:
+      - description: 合同ID
+        in: path
+        name: id
+        required: true
+        type: string
+      - description: 项目节ID
+        in: path
+        name: treeId
+        required: true
+        type: string
+      - description: 标段ID
+        in: path
+        name: bidsectionId
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: '{code:0成功,-1参数类错误,msg:错误信息}'
+          schema:
+            $ref: '#/definitions/viewmodels.TreeSectionContract'
+      security:
+      - ApiKeyAuth: []
+      summary: 关闭合同
+      tags:
+      - 合同管理
   /api/contract/folder:
     get:
       consumes:
@@ -259,6 +357,79 @@ paths:
       summary: 单个合同详情和项目节详情
       tags:
       - 合同管理
+  /api/contract/income/create:
+    post:
+      consumes:
+      - application/json
+      description: 编辑合同
+      parameters:
+      - description: 项目节ID
+        in: path
+        name: treeId
+        required: true
+        type: string
+      - description: 标段ID
+        in: path
+        name: bidsectionId
+        required: true
+        type: string
+      - description: 合同内容
+        in: path
+        name: content
+        required: true
+        type: string
+      - description: 合同名称
+        in: path
+        name: name
+        required: true
+        type: string
+      - description: 合同金额
+        in: path
+        name: price
+        required: true
+        type: string
+      - description: 甲方
+        in: path
+        name: partyA
+        required: true
+        type: string
+      - description: 甲方签约人
+        in: path
+        name: partyASigner
+        required: true
+        type: string
+      - description: 已方
+        in: path
+        name: partyB
+        required: true
+        type: string
+      - description: 已方签约人
+        in: path
+        name: partyBSigner
+        required: true
+        type: string
+      - description: 签约时间
+        in: path
+        name: signerTime
+        required: true
+        type: string
+      - description: 备注
+        in: path
+        name: remarks
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: '{code:0成功,-1参数类错误,msg:错误信息}'
+          schema:
+            $ref: '#/definitions/viewmodels.TreeSectionContract'
+      security:
+      - ApiKeyAuth: []
+      summary: 编辑合同
+      tags:
+      - 合同管理
   /api/contract/income/section/all:
     get:
       consumes:
@@ -1046,6 +1217,138 @@ paths:
       summary: 保存项目信息
       tags:
       - 项目设置-管理员
+  /api/safe:
+    delete:
+      consumes:
+      - application/json
+      description: 删除安全巡检记录
+      parameters:
+      - description: 安全巡检ID
+        in: body
+        name: id
+        required: true
+        schema:
+          type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: '{code:0成功,msg:}'
+          schema:
+            $ref: '#/definitions/viewmodels.Safe'
+        "400":
+          description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 安全巡检列表
+      tags:
+      - 安全巡检
+    get:
+      consumes:
+      - application/json
+      description: 获得列表数据
+      parameters:
+      - description: 标段ID
+        in: path
+        name: bidsectionId
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: '{code:0成功,data:viewmodels.Safe,msg:}'
+          schema:
+            $ref: '#/definitions/viewmodels.Safe'
+        "400":
+          description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 安全巡检列表
+      tags:
+      - 安全巡检
+    post:
+      consumes:
+      - application/json
+      description: 创建新的安全巡检记录
+      parameters:
+      - description: 标段ID
+        in: body
+        name: bidsectionId
+        required: true
+        schema:
+          type: string
+      - description: 编号
+        in: body
+        name: code
+        required: true
+        schema:
+          type: string
+      - description: 日期
+        in: body
+        name: createTime
+        required: true
+        schema:
+          type: string
+      - description: 检查部位
+        in: body
+        name: inspection
+        required: true
+        schema:
+          type: string
+      - description: 部位
+        in: body
+        name: position
+        required: true
+        schema:
+          type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: '{code:0成功,msg:}'
+          schema:
+            $ref: '#/definitions/viewmodels.Safe'
+        "400":
+          description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 安全巡检列表
+      tags:
+      - 安全巡检
+  /api/safe/detail:
+    get:
+      consumes:
+      - application/json
+      description: 获得安全巡检详情页面数据
+      parameters:
+      - description: 巡检ID
+        in: path
+        name: id
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: '{code:0成功,data:viewmodels.Safe,msg:}'
+          schema:
+            $ref: '#/definitions/viewmodels.Safe'
+        "400":
+          description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 安全巡检列表
+      tags:
+      - 安全巡检
   /api/tree:
     delete:
       consumes: