From a8e7d0e2cb7302929c246fdf304507f18fdbee4e Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期三, 19 七月 2023 18:09:30 +0800
Subject: [PATCH] fix

---
 docs/docs.go |  352 +++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 310 insertions(+), 42 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 1f314e2..fbff343 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1414,6 +1414,125 @@
                 }
             }
         },
+        "/api/department/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Department"
+                ],
+                "summary": "娣诲姞閮ㄩ棬",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddDepartment"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/department/delete/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Department"
+                ],
+                "summary": "鍒犻櫎閮ㄩ棬",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "閮ㄩ棬ID",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/department/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Department"
+                ],
+                "summary": "閮ㄩ棬鍒楄〃",
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/response.DepartmentResponse"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api/department/update/{id}": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Department"
+                ],
+                "summary": "鏇存柊閮ㄩ棬",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateDepartmentList"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api/enterpriseNature/add": {
             "post": {
                 "produces": [
@@ -3876,7 +3995,19 @@
                     "200": {
                         "description": "OK",
                         "schema": {
-                            "$ref": "#/definitions/contextx.Response"
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/response.SalesReturnResponse"
+                                        }
+                                    }
+                                }
+                            ]
                         }
                     }
                 }
@@ -5366,6 +5497,17 @@
                 }
             }
         },
+        "model.Department": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "model.EnterpriseNature": {
             "type": "object",
             "properties": {
@@ -5722,6 +5864,9 @@
                 "currency": {
                     "$ref": "#/definitions/constvar.CurrencyType"
                 },
+                "detail_address": {
+                    "type": "string"
+                },
                 "disadvantages": {
                     "type": "string"
                 },
@@ -5775,6 +5920,9 @@
                 },
                 "regular_customers_id": {
                     "type": "integer"
+                },
+                "remark": {
+                    "type": "string"
                 },
                 "sale_stage_id": {
                     "type": "integer"
@@ -5980,6 +6128,41 @@
                 }
             }
         },
+        "model.SalesReturn": {
+            "type": "object",
+            "properties": {
+                "clientId": {
+                    "type": "integer"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "memberId": {
+                    "type": "integer"
+                },
+                "number": {
+                    "type": "string"
+                },
+                "products": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Product"
+                    }
+                },
+                "reason": {
+                    "type": "string"
+                },
+                "repository": {
+                    "type": "string"
+                },
+                "returnDate": {
+                    "type": "string"
+                },
+                "status": {
+                    "type": "integer"
+                }
+            }
+        },
         "model.SalesSources": {
             "type": "object",
             "properties": {
@@ -6162,27 +6345,17 @@
                     "description": "鐢ㄦ埛瑙掕壊ID",
                     "type": "integer"
                 },
-                "companyName": {
-                    "type": "string"
-                },
-                "createAt": {
-                    "description": "鍒涘缓鏃堕棿",
-                    "type": "string"
+                "departmentId": {
+                    "type": "integer"
                 },
                 "email": {
                     "type": "string"
-                },
-                "enable": {
-                    "type": "boolean"
                 },
                 "headerImg": {
                     "type": "string"
                 },
                 "id": {
-                    "type": "string"
-                },
-                "ip": {
-                    "type": "string"
+                    "type": "integer"
                 },
                 "menuIds": {
                     "description": "鑿滃崟ID鍒楄〃",
@@ -6194,32 +6367,22 @@
                 "nickName": {
                     "type": "string"
                 },
-                "parentId": {
-                    "type": "string"
-                },
-                "parentName": {
-                    "type": "string"
-                },
                 "phone": {
-                    "type": "string"
-                },
-                "port": {
                     "type": "string"
                 },
                 "pos": {
                     "type": "string"
                 },
-                "status": {
-                    "type": "integer"
-                },
-                "updateAt": {
-                    "description": "鏇存柊鏃堕棿",
+                "realName": {
                     "type": "string"
                 },
                 "userType": {
                     "$ref": "#/definitions/constvar.UserType"
                 },
                 "username": {
+                    "type": "string"
+                },
+                "uuid": {
                     "type": "string"
                 }
             }
@@ -6497,6 +6660,17 @@
                 }
             }
         },
+        "request.AddDepartment": {
+            "type": "object",
+            "required": [
+                "name"
+            ],
+            "properties": {
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "request.AddEnterpriseNature": {
             "type": "object",
             "required": [
@@ -6717,6 +6891,9 @@
                 "currency": {
                     "type": "integer"
                 },
+                "detail_address": {
+                    "type": "string"
+                },
                 "disadvantages": {
                     "type": "string"
                 },
@@ -6761,6 +6938,9 @@
                 },
                 "regular_customers_id": {
                     "type": "integer"
+                },
+                "remark": {
+                    "type": "string"
                 },
                 "sale_stage_id": {
                     "type": "integer"
@@ -7385,29 +7565,46 @@
         "request.Register": {
             "type": "object",
             "properties": {
+                "authorityId": {
+                    "description": "鐢ㄦ埛瑙掕壊ID",
+                    "type": "integer"
+                },
+                "departmentId": {
+                    "type": "integer"
+                },
                 "email": {
-                    "type": "string",
-                    "example": "鐢靛瓙閭"
+                    "type": "string"
                 },
                 "headerImg": {
-                    "type": "string",
-                    "example": "澶村儚閾炬帴"
+                    "type": "string"
+                },
+                "id": {
+                    "type": "string"
                 },
                 "nickName": {
-                    "type": "string",
-                    "example": "鏄电О"
+                    "type": "string"
                 },
-                "passWord": {
-                    "type": "string",
-                    "example": "瀵嗙爜"
+                "password": {
+                    "type": "string"
                 },
                 "phone": {
-                    "type": "string",
-                    "example": "鐢佃瘽鍙风爜"
+                    "type": "string"
                 },
-                "userName": {
-                    "type": "string",
-                    "example": "鐢ㄦ埛鍚�"
+                "pos": {
+                    "type": "string"
+                },
+                "rePassword": {
+                    "description": "纭瀵嗙爜",
+                    "type": "string"
+                },
+                "realName": {
+                    "type": "string"
+                },
+                "userType": {
+                    "$ref": "#/definitions/constvar.UserType"
+                },
+                "username": {
+                    "type": "string"
                 }
             }
         },
@@ -7981,6 +8178,35 @@
                 }
             }
         },
+        "request.UpdateDepartment": {
+            "type": "object",
+            "required": [
+                "id",
+                "name"
+            ],
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.UpdateDepartmentList": {
+            "type": "object",
+            "required": [
+                "departments"
+            ],
+            "properties": {
+                "departments": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/request.UpdateDepartment"
+                    }
+                }
+            }
+        },
         "request.UpdateEnterpriseNature": {
             "type": "object",
             "required": [
@@ -8350,6 +8576,9 @@
                 "currency": {
                     "type": "integer"
                 },
+                "detail_address": {
+                    "type": "string"
+                },
                 "disadvantages": {
                     "type": "string"
                 },
@@ -8397,6 +8626,9 @@
                 },
                 "regular_customers_id": {
                     "type": "integer"
+                },
+                "remark": {
+                    "type": "string"
                 },
                 "sale_stage_id": {
                     "type": "integer"
@@ -8945,6 +9177,13 @@
                         "$ref": "#/definitions/model.Country"
                     }
                 },
+                "department": {
+                    "description": "閮ㄩ棬",
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Department"
+                    }
+                },
                 "enterprise_nature": {
                     "description": "浼佷笟鎬ц川",
                     "type": "array",
@@ -8964,6 +9203,13 @@
                     "type": "array",
                     "items": {
                         "$ref": "#/definitions/model.Industry"
+                    }
+                },
+                "member": {
+                    "description": "Member",
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.User"
                     }
                 },
                 "province": {
@@ -9013,6 +9259,17 @@
                     "type": "array",
                     "items": {
                         "$ref": "#/definitions/model.SalesSources"
+                    }
+                }
+            }
+        },
+        "response.DepartmentResponse": {
+            "type": "object",
+            "properties": {
+                "list": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Department"
                     }
                 }
             }
@@ -9244,6 +9501,17 @@
                 }
             }
         },
+        "response.SalesReturnResponse": {
+            "type": "object",
+            "properties": {
+                "list": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.SalesReturn"
+                    }
+                }
+            }
+        },
         "response.SalesSourceResponse": {
             "type": "object",
             "properties": {

--
Gitblit v1.8.0