From dd97f2626579ca8be69b9b6d68ce9d592b62eb6a Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 22 十二月 2023 15:03:26 +0800
Subject: [PATCH] 使用系统设置修改

---
 docs/docs.go |  261 +++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 199 insertions(+), 62 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index d489003..8070cac 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -4947,10 +4947,7 @@
                                     "type": "object",
                                     "properties": {
                                         "data": {
-                                            "type": "array",
-                                            "items": {
-                                                "$ref": "#/definitions/product.WorkOrderInfo"
-                                            }
+                                            "$ref": "#/definitions/response.Info"
                                         }
                                     }
                                 }
@@ -5032,6 +5029,12 @@
                         "type": "string",
                         "description": "浜у搧缂栫爜",
                         "name": "productNumber",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "description": "鎶ヤ环鍗曠紪鐮�",
+                        "name": "quotationNumber",
                         "in": "query"
                     }
                 ],
@@ -6971,36 +6974,6 @@
                 }
             }
         },
-        "/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": [
@@ -7148,7 +7121,7 @@
                 }
             }
         },
-        "/api/salesDetails/sendSalesDetailsToApsProject": {
+        "/api/salesDetails/sendSalesDetailsToOtherSystem": {
             "post": {
                 "produces": [
                     "application/json"
@@ -7156,7 +7129,7 @@
                 "tags": [
                     "SalesDetails"
                 ],
-                "summary": "鎺ㄩ�侀攢鍞槑缁嗕俊鎭埌aps椤圭洰妯″潡",
+                "summary": "鎺ㄩ�侀攢鍞槑缁嗕俊鎭埌鍏朵粬绯荤粺",
                 "parameters": [
                     {
                         "description": "鏌ヨ鍙傛暟",
@@ -9816,6 +9789,96 @@
                 }
             }
         },
+        "/api/system/getSystemSet": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "绯荤粺璁剧疆"
+                ],
+                "summary": "鑾峰彇绯荤粺璁剧疆",
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "object",
+                                            "additionalProperties": true
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api/system/saveSystemSet": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "绯荤粺璁剧疆"
+                ],
+                "summary": "淇濆瓨绯荤粺璁剧疆",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.SaveSystemSet"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/system/useSystemSet/{modeType}": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "绯荤粺璁剧疆"
+                ],
+                "summary": "浣跨敤绯荤粺璁剧疆",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "modeType",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/response.ListResponse"
+                        }
+                    }
+                }
+            }
+        },
         "/api/timeSpent/add": {
             "post": {
                 "produces": [
@@ -11873,11 +11936,17 @@
                 "amount": {
                     "type": "number"
                 },
+                "cost": {
+                    "type": "string"
+                },
                 "desc": {
                     "type": "string"
                 },
                 "id": {
                     "type": "integer"
+                },
+                "margin": {
+                    "type": "string"
                 },
                 "name": {
                     "type": "string"
@@ -11887,6 +11956,9 @@
                 },
                 "price": {
                     "type": "number"
+                },
+                "profit": {
+                    "type": "string"
                 },
                 "total": {
                     "type": "number"
@@ -13365,6 +13437,23 @@
                 }
             }
         },
+        "model.SystemSet": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "modeType": {
+                    "type": "string"
+                },
+                "name": {
+                    "type": "string"
+                },
+                "value": {
+                    "type": "string"
+                }
+            }
+        },
         "model.TimeSpent": {
             "type": "object",
             "properties": {
@@ -13504,32 +13593,6 @@
                     "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"
                 }
             }
@@ -16340,6 +16403,17 @@
                             "$ref": "#/definitions/constvar.SalesReturnSourceType"
                         }
                     ]
+                }
+            }
+        },
+        "request.SaveSystemSet": {
+            "type": "object",
+            "properties": {
+                "sets": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.SystemSet"
+                    }
                 }
             }
         },
@@ -19203,6 +19277,23 @@
                 }
             }
         },
+        "response.Info": {
+            "type": "object",
+            "properties": {
+                "makeInfo": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/response.WorkOrderInfo"
+                    }
+                },
+                "purchaseInfo": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/response.Purchase"
+                    }
+                }
+            }
+        },
         "response.IsInvoiceResponse": {
             "type": "object",
             "properties": {
@@ -19337,6 +19428,26 @@
                     "items": {
                         "$ref": "#/definitions/model.Province"
                     }
+                }
+            }
+        },
+        "response.Purchase": {
+            "type": "object",
+            "properties": {
+                "amount": {
+                    "type": "integer"
+                },
+                "purchaseName": {
+                    "type": "string"
+                },
+                "purchaseNumber": {
+                    "type": "string"
+                },
+                "status": {
+                    "type": "integer"
+                },
+                "supplierName": {
+                    "type": "string"
                 }
             }
         },
@@ -19645,6 +19756,32 @@
                     }
                 }
             }
+        },
+        "response.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"
+                }
+            }
         }
     }
 }`

--
Gitblit v1.8.0