From 530fed8ec225453572d57b15c200ab062c335457 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 01 十一月 2023 19:20:21 +0800
Subject: [PATCH] 公海member_id使用0

---
 docs/docs.go |  409 +++++++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 303 insertions(+), 106 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index ab2884d..8452e69 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": [
@@ -5676,6 +5706,142 @@
                         "required": true,
                         "schema": {
                             "$ref": "#/definitions/request.UpdateRefundMethods"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/refundType/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "閫�娆炬柟寮忕鐞�"
+                ],
+                "summary": "娣诲姞閫�娆炬柟寮�",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddRefundType"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/refundType/delete/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "閫�娆炬柟寮忕鐞�"
+                ],
+                "summary": "鍒犻櫎閫�娆炬柟寮�",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/refundType/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "閫�娆炬柟寮忕鐞�"
+                ],
+                "summary": "鑾峰彇閫�娆炬柟寮忓垪琛�",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "椤电爜",
+                        "name": "page",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "姣忛〉澶у皬",
+                        "name": "pageSize",
+                        "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/response.ListResponse"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/model.RefundType"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api/refundType/update": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "閫�娆炬柟寮忕鐞�"
+                ],
+                "summary": "鏇存柊閫�娆炬柟寮�",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateRefundType"
                         }
                     }
                 ],
@@ -10984,6 +11150,9 @@
                 "quotationId": {
                     "type": "integer"
                 },
+                "sendTime": {
+                    "type": "string"
+                },
                 "serviceContractStatus": {
                     "$ref": "#/definitions/model.ServiceContractStatus"
                 },
@@ -11185,6 +11354,9 @@
                     "description": "瀹㈡埛id",
                     "type": "integer"
                 },
+                "codeStandID": {
+                    "type": "string"
+                },
                 "courierCompany": {
                     "$ref": "#/definitions/model.CourierCompany"
                 },
@@ -11220,6 +11392,9 @@
                 "invoiceTypeId": {
                     "description": "鍙戠エ绫诲瀷id",
                     "type": "integer"
+                },
+                "number": {
+                    "type": "string"
                 },
                 "principalId": {
                     "description": "閿�鍞礋璐d汉id",
@@ -11699,6 +11874,17 @@
                 }
             }
         },
+        "model.RefundType": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "model.Region": {
             "type": "object",
             "properties": {
@@ -11850,6 +12036,12 @@
                 "process": {
                     "type": "string"
                 },
+                "products": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Product"
+                    }
+                },
                 "projected_amount": {
                     "type": "number"
                 },
@@ -11894,6 +12086,14 @@
                 },
                 "solutions": {
                     "type": "string"
+                },
+                "status": {
+                    "description": "鐘舵��",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.Status"
+                        }
+                    ]
                 },
                 "status_id": {
                     "type": "integer"
@@ -11981,6 +12181,9 @@
                 "creatorName": {
                     "type": "string"
                 },
+                "deliverType": {
+                    "type": "integer"
+                },
                 "deliveryDate": {
                     "type": "string"
                 },
@@ -12010,6 +12213,12 @@
                     "items": {
                         "$ref": "#/definitions/model.Product"
                     }
+                },
+                "quotation": {
+                    "$ref": "#/definitions/model.Quotation"
+                },
+                "quotationId": {
+                    "type": "integer"
                 },
                 "remark": {
                     "type": "string"
@@ -12120,8 +12329,13 @@
         "model.SalesRefund": {
             "type": "object",
             "properties": {
-                "Source": {
-                    "$ref": "#/definitions/model.SalesReturn"
+                "RefundType": {
+                    "description": "閫�娆炬柟寮�",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.RefundType"
+                        }
+                    ]
                 },
                 "amountTotal": {
                     "description": "浠风◣鍚堣",
@@ -12182,6 +12396,13 @@
                 },
                 "refundDate": {
                     "type": "string"
+                },
+                "refundTypeId": {
+                    "description": "閫�娆炬柟寮廔D",
+                    "type": "integer"
+                },
+                "salesReturn": {
+                    "$ref": "#/definitions/model.SalesReturn"
                 },
                 "sourceId": {
                     "description": "婧愬崟id",
@@ -12801,6 +13022,10 @@
                 "severity": {
                     "$ref": "#/definitions/model.Severity"
                 },
+                "severityId": {
+                    "description": "涓ラ噸绋嬪害id",
+                    "type": "integer"
+                },
                 "solution": {
                     "description": "瑙e喅鏂规硶",
                     "type": "string"
@@ -13131,9 +13356,6 @@
                     "description": "瀹㈡埛绫诲瀷ID",
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -13282,13 +13504,6 @@
                     "description": "鎵�灞炲叕鍙窱D",
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
-                "codeStandID": {
-                    "description": "缂栫爜id",
-                    "type": "string"
-                },
                 "country_id": {
                     "description": "鍥藉ID",
                     "type": "integer"
@@ -13345,9 +13560,6 @@
                 "client_id": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -13367,6 +13579,10 @@
                 },
                 "quotation_id": {
                     "type": "integer"
+                },
+                "sendTime": {
+                    "description": "鍙戣揣鏃堕棿",
+                    "type": "string"
                 },
                 "status_id": {
                     "type": "integer"
@@ -13508,6 +13724,9 @@
                     "description": "瀹㈡埛id",
                     "type": "integer"
                 },
+                "codeStandID": {
+                    "type": "string"
+                },
                 "courierCompanyId": {
                     "description": "鐗╂祦鍏徃",
                     "type": "integer"
@@ -13531,6 +13750,10 @@
                 "invoiceTypeId": {
                     "description": "鍙戠エ绫诲瀷id",
                     "type": "integer"
+                },
+                "number": {
+                    "description": "鍙戠エ缂栧彿",
+                    "type": "string"
                 },
                 "principalId": {
                     "description": "閿�鍞礋璐d汉id",
@@ -13614,9 +13837,6 @@
             "properties": {
                 "client_id": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -13737,9 +13957,6 @@
             "properties": {
                 "client_id": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -13893,6 +14110,17 @@
                 }
             }
         },
+        "request.AddRefundType": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "request.AddRegion": {
             "type": "object",
             "properties": {
@@ -13964,9 +14192,6 @@
                 "client_id": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -14018,6 +14243,12 @@
                 },
                 "process": {
                     "type": "string"
+                },
+                "products": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Product"
+                    }
                 },
                 "projected_amount": {
                     "type": "number"
@@ -14091,15 +14322,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"
@@ -14128,6 +14360,9 @@
                         "$ref": "#/definitions/model.Product"
                     }
                 },
+                "quotationId": {
+                    "type": "integer"
+                },
                 "remark": {
                     "type": "string"
                 },
@@ -14150,9 +14385,6 @@
             "properties": {
                 "city_id": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -14277,9 +14509,6 @@
                 "clientId": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -14388,9 +14617,6 @@
                     "description": "瀹㈡埛绫诲瀷ID",
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -14485,9 +14711,6 @@
                 "clientId": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -14552,9 +14775,6 @@
                 "clientId": {
                     "description": "瀹㈡埛id",
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -14628,7 +14848,7 @@
                     "description": "鏈嶅姟鏂瑰紡id",
                     "type": "integer"
                 },
-                "severity": {
+                "severityId": {
                     "description": "涓ラ噸绋嬪害id",
                     "type": "integer"
                 },
@@ -14710,9 +14930,6 @@
             "properties": {
                 "clientId": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -14863,13 +15080,6 @@
                 "client_id": {
                     "description": "鎵�灞炲叕鍙窱D",
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
-                "codeStandID": {
-                    "description": "缂栫爜id",
-                    "type": "string"
                 },
                 "country_id": {
                     "description": "鍥藉ID",
@@ -15097,9 +15307,6 @@
                 },
                 "client_status_id": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "type": "string"
@@ -15362,6 +15569,10 @@
                 },
                 "keywordType": {
                     "$ref": "#/definitions/constvar.SalesDetailsKeywordType"
+                },
+                "number": {
+                    "description": "閿�鍞瓙鍗曞彿",
+                    "type": "string"
                 },
                 "page": {
                     "description": "椤电爜",
@@ -15674,15 +15885,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"
@@ -15710,6 +15922,9 @@
                     "items": {
                         "$ref": "#/definitions/model.Product"
                     }
+                },
+                "quotationId": {
+                    "type": "integer"
                 },
                 "remark": {
                     "type": "string"
@@ -15741,9 +15956,6 @@
                 },
                 "clientId": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -15793,9 +16005,6 @@
             "properties": {
                 "clientId": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -15995,9 +16204,6 @@
                 "client_type_id": {
                     "description": "瀹㈡埛绫诲瀷ID",
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -16229,13 +16435,6 @@
                     "description": "鎵�灞炲叕鍙窱D",
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
-                "codeStandID": {
-                    "description": "缂栫爜id",
-                    "type": "string"
-                },
                 "country_id": {
                     "description": "鍥藉ID",
                     "type": "integer"
@@ -16295,9 +16494,6 @@
                 "client_id": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -16320,6 +16516,10 @@
                 },
                 "quotation_id": {
                     "type": "integer"
+                },
+                "sendTime": {
+                    "description": "鍙戣揣鏃堕棿",
+                    "type": "string"
                 },
                 "status_id": {
                     "type": "integer"
@@ -16558,6 +16758,9 @@
                     "description": "瀹㈡埛id",
                     "type": "integer"
                 },
+                "codeStandID": {
+                    "type": "string"
+                },
                 "courierCompanyId": {
                     "description": "鐗╂祦鍏徃",
                     "type": "integer"
@@ -16584,6 +16787,10 @@
                 "invoiceTypeId": {
                     "description": "鍙戠エ绫诲瀷id",
                     "type": "integer"
+                },
+                "number": {
+                    "description": "鍙戠エ缂栧彿",
+                    "type": "string"
                 },
                 "principalId": {
                     "description": "閿�鍞礋璐d汉id",
@@ -16699,9 +16906,6 @@
             "properties": {
                 "client_id": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -16883,9 +17087,6 @@
             "properties": {
                 "client_id": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -17078,6 +17279,17 @@
                 }
             }
         },
+        "request.UpdateRefundType": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "request.UpdateRegion": {
             "type": "object",
             "properties": {
@@ -17237,9 +17449,6 @@
                 "client_id": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -17294,6 +17503,12 @@
                 },
                 "process": {
                     "type": "string"
+                },
+                "products": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Product"
+                    }
                 },
                 "projected_amount": {
                     "type": "number"
@@ -17407,9 +17622,6 @@
             "properties": {
                 "city_id": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -17664,9 +17876,6 @@
                 "clientId": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -17796,9 +18005,6 @@
                     "description": "瀹㈡埛绫诲瀷ID",
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -17894,9 +18100,6 @@
                 "clientId": {
                     "type": "integer"
                 },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
-                },
                 "codeStandID": {
                     "description": "缂栫爜id",
                     "type": "string"
@@ -17964,9 +18167,6 @@
                 "clientId": {
                     "description": "瀹㈡埛id",
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",
@@ -18043,7 +18243,7 @@
                     "description": "鏈嶅姟鏂瑰紡id",
                     "type": "integer"
                 },
-                "severity": {
+                "severityId": {
                     "description": "涓ラ噸绋嬪害id",
                     "type": "integer"
                 },
@@ -18161,9 +18361,6 @@
             "properties": {
                 "clientId": {
                     "type": "integer"
-                },
-                "codeRule": {
-                    "$ref": "#/definitions/code.CodeStandard"
                 },
                 "codeStandID": {
                     "description": "缂栫爜id",

--
Gitblit v1.8.0