From 115bd9b51f5d8eade4658f844de37516486c60e7 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期六, 18 十一月 2023 17:25:25 +0800
Subject: [PATCH] crm获取aps项目模块信息

---
 docs/docs.go |  420 +++++++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 332 insertions(+), 88 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index c49c09a..caf496f 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1199,6 +1199,36 @@
                 }
             }
         },
+        "/api/code/getAutoCode": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "缂栫爜"
+                ],
+                "summary": "鑾峰彇鑷姩缂栫爜",
+                "parameters": [
+                    {
+                        "description": "鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/code.CodeStandard"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/response.ListResponse"
+                        }
+                    }
+                }
+            }
+        },
         "/api/code/getCodeList": {
             "get": {
                 "produces": [
@@ -4887,6 +4917,49 @@
                 }
             }
         },
+        "/api/product/getProductOrderInfo/{number}": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浜у搧"
+                ],
+                "summary": "鑾峰彇浜у搧璁㈠崟淇℃伅",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "鏄庣粏缂栫爜",
+                        "name": "number",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/product.WorkOrderInfo"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
         "/api/product/info": {
             "get": {
                 "produces": [
@@ -5480,6 +5553,15 @@
                         "type": "integer",
                         "description": "姣忛〉澶у皬",
                         "name": "pageSize",
+                        "in": "query"
+                    },
+                    {
+                        "type": "array",
+                        "items": {
+                            "type": "integer"
+                        },
+                        "collectionFormat": "csv",
+                        "name": "principleIds",
                         "in": "query"
                     },
                     {
@@ -6889,6 +6971,36 @@
                 }
             }
         },
+        "/api/salesDetails/createOperation": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SalesDetails"
+                ],
+                "summary": "鍒涘缓浜у搧鍑哄簱淇℃伅",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.SalesDetails"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/response.ListResponse"
+                        }
+                    }
+                }
+            }
+        },
         "/api/salesDetails/delete": {
             "delete": {
                 "produces": [
@@ -6942,6 +7054,34 @@
                         "description": "OK",
                         "schema": {
                             "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/salesDetails/getProductInventoryInfo/{number}": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SalesDetails"
+                ],
+                "summary": "鑾峰彇浜у搧搴撳瓨淇℃伅",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "鏄庣粏缂栫爜",
+                        "name": "number",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/response.ListResponse"
                         }
                     }
                 }
@@ -7006,6 +7146,36 @@
                         "required": true,
                         "schema": {
                             "$ref": "#/definitions/request.UpdateSalesDetails"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/salesDetails/updateStatus": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SalesDetails"
+                ],
+                "summary": "鏇存柊閿�鍞槑缁嗙姸鎬�",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateSalesDetailsStatus"
                         }
                     }
                 ],
@@ -10331,6 +10501,27 @@
                 "SalesDetailsKeywordTypeProductName"
             ]
         },
+        "constvar.SalesDetailsStatus": {
+            "type": "integer",
+            "enum": [
+                1,
+                2,
+                3,
+                4
+            ],
+            "x-enum-comments": {
+                "OverCLose": "宸插叧闂�",
+                "OverOutbound": "鍑哄簱瀹屾垚",
+                "WaitConfirmed": "寰呯‘璁�",
+                "WaitOutbound": "寰呭嚭搴�"
+            },
+            "x-enum-varnames": [
+                "WaitConfirmed",
+                "WaitOutbound",
+                "OverOutbound",
+                "OverCLose"
+            ]
+        },
         "constvar.SalesRefundKeywordType": {
             "type": "string",
             "enum": [
@@ -11120,6 +11311,9 @@
                 "quotationId": {
                     "type": "integer"
                 },
+                "sendTime": {
+                    "type": "string"
+                },
                 "serviceContractStatus": {
                     "$ref": "#/definitions/model.ServiceContractStatus"
                 },
@@ -11321,6 +11515,9 @@
                     "description": "瀹㈡埛id",
                     "type": "integer"
                 },
+                "codeStandID": {
+                    "type": "string"
+                },
                 "courierCompany": {
                     "$ref": "#/definitions/model.CourierCompany"
                 },
@@ -11356,6 +11553,9 @@
                 "invoiceTypeId": {
                     "description": "鍙戠エ绫诲瀷id",
                     "type": "integer"
+                },
+                "number": {
+                    "type": "string"
                 },
                 "principalId": {
                     "description": "閿�鍞礋璐d汉id",
@@ -11641,6 +11841,9 @@
                 },
                 "total": {
                     "type": "number"
+                },
+                "unit": {
+                    "type": "string"
                 }
             }
         },
@@ -12048,8 +12251,16 @@
                 "solutions": {
                     "type": "string"
                 },
+                "status": {
+                    "description": "鐘舵��",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.Status"
+                        }
+                    ]
+                },
                 "status_id": {
-                    "$ref": "#/definitions/model.Status"
+                    "type": "integer"
                 },
                 "threats": {
                     "type": "string"
@@ -12134,6 +12345,9 @@
                 "creatorName": {
                     "type": "string"
                 },
+                "deliverType": {
+                    "type": "integer"
+                },
                 "deliveryDate": {
                     "type": "string"
                 },
@@ -12164,6 +12378,12 @@
                         "$ref": "#/definitions/model.Product"
                     }
                 },
+                "quotation": {
+                    "$ref": "#/definitions/model.Quotation"
+                },
+                "quotationId": {
+                    "type": "integer"
+                },
                 "remark": {
                     "type": "string"
                 },
@@ -12178,6 +12398,12 @@
                 },
                 "signTime": {
                     "type": "string"
+                },
+                "source": {
+                    "type": "string"
+                },
+                "status": {
+                    "$ref": "#/definitions/constvar.SalesDetailsStatus"
                 },
                 "updateTime": {
                     "type": "string"
@@ -12281,9 +12507,6 @@
                         }
                     ]
                 },
-                "Source": {
-                    "$ref": "#/definitions/model.SalesReturn"
-                },
                 "amountTotal": {
                     "description": "浠风◣鍚堣",
                     "type": "number"
@@ -12347,6 +12570,9 @@
                 "refundTypeId": {
                     "description": "閫�娆炬柟寮廔D",
                     "type": "integer"
+                },
+                "salesReturn": {
+                    "$ref": "#/definitions/model.SalesReturn"
                 },
                 "sourceId": {
                     "description": "婧愬崟id",
@@ -12966,6 +13192,10 @@
                 "severity": {
                     "$ref": "#/definitions/model.Severity"
                 },
+                "severityId": {
+                    "description": "涓ラ噸绋嬪害id",
+                    "type": "integer"
+                },
                 "solution": {
                     "description": "瑙e喅鏂规硶",
                     "type": "string"
@@ -13146,6 +13376,10 @@
                 "realName": {
                     "type": "string"
                 },
+                "subUserIds": {
+                    "description": "涓嬪睘鍛樺伐鐢ㄦ埛id,鐢ㄩ�楀彿鍒嗗紑",
+                    "type": "string"
+                },
                 "userType": {
                     "$ref": "#/definitions/constvar.UserType"
                 },
@@ -13218,6 +13452,32 @@
                     "type": "string"
                 },
                 "Unit": {
+                    "type": "string"
+                }
+            }
+        },
+        "product.WorkOrderInfo": {
+            "type": "object",
+            "properties": {
+                "EndTime": {
+                    "type": "string"
+                },
+                "OrderId": {
+                    "type": "string"
+                },
+                "OrderStatus": {
+                    "type": "string"
+                },
+                "ProductName": {
+                    "type": "string"
+                },
+                "StartTime": {
+                    "type": "string"
+                },
+                "WorkOrderId": {
+                    "type": "string"
+                },
+                "WorkOrderStatus": {
                     "type": "string"
                 }
             }
@@ -13295,9 +13555,6 @@
                 "client_type_id": {
                     "description": "瀹㈡埛绫诲瀷ID",
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -13503,9 +13760,6 @@
                 "client_id": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -13525,6 +13779,10 @@
                 },
                 "quotation_id": {
                     "type": "integer"
+                },
+                "sendTime": {
+                    "description": "鍙戣揣鏃堕棿",
+                    "type": "string"
                 },
                 "status_id": {
                     "type": "integer"
@@ -13666,6 +13924,9 @@
                     "description": "瀹㈡埛id",
                     "type": "integer"
                 },
+                "codeStandID": {
+                    "type": "string"
+                },
                 "courierCompanyId": {
                     "description": "鐗╂祦鍏徃",
                     "type": "integer"
@@ -13689,6 +13950,10 @@
                 "invoiceTypeId": {
                     "description": "鍙戠エ绫诲瀷id",
                     "type": "integer"
+                },
+                "number": {
+                    "description": "鍙戠エ缂栧彿",
+                    "type": "string"
                 },
                 "principalId": {
                     "description": "閿�鍞礋璐d汉id",
@@ -13772,9 +14037,6 @@
             "properties": {
                 "client_id": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -13895,9 +14157,6 @@
             "properties": {
                 "client_id": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -14133,9 +14392,6 @@
                 "client_id": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -14266,15 +14522,16 @@
                 "clientId": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
                 },
                 "conditions": {
                     "type": "string"
+                },
+                "deliverType": {
+                    "description": "浜や粯绫诲瀷:1.涓�娆″彂璐�,2.澶氭鍙戣揣",
+                    "type": "integer"
                 },
                 "deliveryDate": {
                     "type": "string"
@@ -14303,6 +14560,9 @@
                         "$ref": "#/definitions/model.Product"
                     }
                 },
+                "quotationId": {
+                    "type": "integer"
+                },
                 "remark": {
                     "type": "string"
                 },
@@ -14315,6 +14575,12 @@
                 "signTime": {
                     "type": "string"
                 },
+                "source": {
+                    "type": "string"
+                },
+                "status": {
+                    "$ref": "#/definitions/constvar.SalesDetailsStatus"
+                },
                 "wechatOrderStatusId": {
                     "type": "integer"
                 }
@@ -14325,9 +14591,6 @@
             "properties": {
                 "city_id": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -14452,9 +14715,6 @@
                 "clientId": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -14563,9 +14823,6 @@
                     "description": "瀹㈡埛绫诲瀷ID",
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -14660,9 +14917,6 @@
                 "clientId": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -14727,9 +14981,6 @@
                 "clientId": {
                     "description": "瀹㈡埛id",
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -14803,7 +15054,7 @@
                     "description": "鏈嶅姟鏂瑰紡id",
                     "type": "integer"
                 },
-                "severity": {
+                "severityId": {
                     "description": "涓ラ噸绋嬪害id",
                     "type": "integer"
                 },
@@ -14885,9 +15136,6 @@
             "properties": {
                 "clientId": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -15266,9 +15514,6 @@
                 "client_status_id": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "type": "string"
                 },
@@ -15419,6 +15664,12 @@
                     "description": "姣忛〉澶у皬",
                     "type": "integer"
                 },
+                "principalIds": {
+                    "type": "array",
+                    "items": {
+                        "type": "integer"
+                    }
+                },
                 "sourceId": {
                     "type": "integer"
                 },
@@ -15532,7 +15783,7 @@
                     "$ref": "#/definitions/constvar.SalesDetailsKeywordType"
                 },
                 "number": {
-                    "description": "閿�鍞瓙鍗曞彿",
+                    "description": "閿�鍞槑缁嗗崟鍙�",
                     "type": "string"
                 },
                 "page": {
@@ -15846,15 +16097,16 @@
                 "clientId": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
                 },
                 "conditions": {
                     "type": "string"
+                },
+                "deliverType": {
+                    "description": "浜や粯绫诲瀷:1.涓�娆″彂璐�,2.澶氭鍙戣揣",
+                    "type": "integer"
                 },
                 "deliveryDate": {
                     "type": "string"
@@ -15883,6 +16135,9 @@
                         "$ref": "#/definitions/model.Product"
                     }
                 },
+                "quotationId": {
+                    "type": "integer"
+                },
                 "remark": {
                     "type": "string"
                 },
@@ -15894,6 +16149,12 @@
                 },
                 "signTime": {
                     "type": "string"
+                },
+                "source": {
+                    "type": "string"
+                },
+                "status": {
+                    "$ref": "#/definitions/constvar.SalesDetailsStatus"
                 },
                 "wechatOrderStatusId": {
                     "type": "integer"
@@ -15913,9 +16174,6 @@
                 },
                 "clientId": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -15965,9 +16223,6 @@
             "properties": {
                 "clientId": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -16167,9 +16422,6 @@
                 "client_type_id": {
                     "description": "瀹㈡埛绫诲瀷ID",
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -16460,9 +16712,6 @@
                 "client_id": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -16485,6 +16734,10 @@
                 },
                 "quotation_id": {
                     "type": "integer"
+                },
+                "sendTime": {
+                    "description": "鍙戣揣鏃堕棿",
+                    "type": "string"
                 },
                 "status_id": {
                     "type": "integer"
@@ -16723,6 +16976,9 @@
                     "description": "瀹㈡埛id",
                     "type": "integer"
                 },
+                "codeStandID": {
+                    "type": "string"
+                },
                 "courierCompanyId": {
                     "description": "鐗╂祦鍏徃",
                     "type": "integer"
@@ -16749,6 +17005,10 @@
                 "invoiceTypeId": {
                     "description": "鍙戠エ绫诲瀷id",
                     "type": "integer"
+                },
+                "number": {
+                    "description": "鍙戠エ缂栧彿",
+                    "type": "string"
                 },
                 "principalId": {
                     "description": "閿�鍞礋璐d汉id",
@@ -16864,9 +17124,6 @@
             "properties": {
                 "client_id": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -17048,9 +17305,6 @@
             "properties": {
                 "client_id": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -17413,9 +17667,6 @@
                 "client_id": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -17584,14 +17835,22 @@
                 }
             }
         },
+        "request.UpdateSalesDetailsStatus": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "status": {
+                    "$ref": "#/definitions/constvar.SalesDetailsStatus"
+                }
+            }
+        },
         "request.UpdateSalesLeads": {
             "type": "object",
             "properties": {
                 "city_id": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -17846,9 +18105,6 @@
                 "clientId": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -17978,9 +18234,6 @@
                     "description": "瀹㈡埛绫诲瀷ID",
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -18076,9 +18329,6 @@
                 "clientId": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -18146,9 +18396,6 @@
                 "clientId": {
                     "description": "瀹㈡埛id",
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -18225,7 +18472,7 @@
                     "description": "鏈嶅姟鏂瑰紡id",
                     "type": "integer"
                 },
-                "severity": {
+                "severityId": {
                     "description": "涓ラ噸绋嬪害id",
                     "type": "integer"
                 },
@@ -18343,9 +18590,6 @@
             "properties": {
                 "clientId": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",

--
Gitblit v1.8.0