From 1e7ef4a6705d59f7f3308638d44cc3b0cf340211 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期四, 29 二月 2024 17:48:10 +0800
Subject: [PATCH] 登录与生丝定价

---
 docs/docs.go |  218 +++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 140 insertions(+), 78 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 491292f..540b80a 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -16,16 +16,40 @@
     "host": "{{.Host}}",
     "basePath": "{{.BasePath}}",
     "paths": {
-        "/api-s/v1/organize/department": {
+        "/api-jl/v1/system/dict": {
             "get": {
                 "produces": [
                     "application/json"
                 ],
                 "tags": [
-                    "閮ㄩ棬淇℃伅"
+                    "绯荤粺璁剧疆/瀛楀吀"
                 ],
-                "summary": "鏌ヨ閮ㄩ棬淇℃伅鍒楄〃",
+                "summary": "鏌ヨ瀛楀吀鍒楄〃",
                 "parameters": [
+                    {
+                        "enum": [
+                            0,
+                            1,
+                            2,
+                            3
+                        ],
+                        "type": "integer",
+                        "x-enum-comments": {
+                            "DictTypeColor": "棰滆壊",
+                            "DictTypeMarket": "搴勫彛",
+                            "DictTypeSpec": "瑙勬牸",
+                            "DictTypeWorkshop": "杞﹂棿"
+                        },
+                        "x-enum-varnames": [
+                            "DictTypeMarket",
+                            "DictTypeWorkshop",
+                            "DictTypeColor",
+                            "DictTypeSpec"
+                        ],
+                        "description": "瀛楀吀绫诲瀷",
+                        "name": "dictType",
+                        "in": "query"
+                    },
                     {
                         "type": "integer",
                         "description": "椤电爜",
@@ -53,7 +77,7 @@
                                         "data": {
                                             "type": "array",
                                             "items": {
-                                                "$ref": "#/definitions/models.Department"
+                                                "$ref": "#/definitions/models.Dict"
                                             }
                                         }
                                     }
@@ -63,22 +87,50 @@
                     }
                 }
             },
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "绯荤粺璁剧疆/瀛楀吀"
+                ],
+                "summary": "缂栬緫瀛楀吀",
+                "parameters": [
+                    {
+                        "description": "瀛楀吀淇℃伅",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateDict"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            },
             "post": {
                 "produces": [
                     "application/json"
                 ],
                 "tags": [
-                    "閮ㄩ棬淇℃伅"
+                    "绯荤粺璁剧疆/瀛楀吀"
                 ],
-                "summary": "娣诲姞閮ㄩ棬淇℃伅",
+                "summary": "娣诲姞瀛楀吀",
                 "parameters": [
                     {
-                        "description": "閮ㄩ棬淇℃伅淇℃伅",
+                        "description": "瀛楀吀淇℃伅",
                         "name": "object",
                         "in": "body",
                         "required": true,
                         "schema": {
-                            "$ref": "#/definitions/request.AddDepartment"
+                            "$ref": "#/definitions/request.AddDict"
                         }
                     }
                 ],
@@ -92,52 +144,22 @@
                 }
             }
         },
-        "/api-s/v1/organize/department/{id}": {
-            "put": {
-                "produces": [
-                    "application/json"
-                ],
-                "tags": [
-                    "閮ㄩ棬淇℃伅"
-                ],
-                "summary": "缂栬緫閮ㄩ棬淇℃伅",
-                "parameters": [
-                    {
-                        "description": "閮ㄩ棬淇℃伅淇℃伅",
-                        "name": "object",
-                        "in": "body",
-                        "required": true,
-                        "schema": {
-                            "$ref": "#/definitions/request.UpdateDepartment"
-                        }
-                    }
-                ],
-                "responses": {
-                    "200": {
-                        "description": "鎴愬姛",
-                        "schema": {
-                            "$ref": "#/definitions/util.Response"
-                        }
-                    }
-                }
-            },
+        "/api-jl/v1/system/dict/{id}": {
             "delete": {
                 "produces": [
                     "application/json"
                 ],
                 "tags": [
-                    "閮ㄩ棬淇℃伅"
+                    "绯荤粺璁剧疆/瀛楀吀"
                 ],
-                "summary": "缂栬緫閮ㄩ棬淇℃伅",
+                "summary": "鍒犻櫎瀛楀吀",
                 "parameters": [
                     {
-                        "description": "閮ㄩ棬淇℃伅淇℃伅",
-                        "name": "object",
-                        "in": "body",
-                        "required": true,
-                        "schema": {
-                            "$ref": "#/definitions/request.UpdateDepartment"
-                        }
+                        "type": "string",
+                        "description": "瀛楀吀淇℃伅",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
                     }
                 ],
                 "responses": {
@@ -152,58 +174,94 @@
         }
     },
     "definitions": {
-        "models.Department": {
+        "constvar.DictType": {
+            "type": "integer",
+            "enum": [
+                0,
+                1,
+                2,
+                3
+            ],
+            "x-enum-comments": {
+                "DictTypeColor": "棰滆壊",
+                "DictTypeMarket": "搴勫彛",
+                "DictTypeSpec": "瑙勬牸",
+                "DictTypeWorkshop": "杞﹂棿"
+            },
+            "x-enum-varnames": [
+                "DictTypeMarket",
+                "DictTypeWorkshop",
+                "DictTypeColor",
+                "DictTypeSpec"
+            ]
+        },
+        "gorm.DeletedAt": {
             "type": "object",
             "properties": {
-                "children": {
-                    "type": "array",
-                    "items": {
-                        "$ref": "#/definitions/models.Department"
-                    }
-                },
-                "head": {
-                    "description": "閮ㄩ棬璐熻矗浜�",
+                "time": {
                     "type": "string"
+                },
+                "valid": {
+                    "description": "Valid is true if Time is not NULL",
+                    "type": "boolean"
+                }
+            }
+        },
+        "models.Dict": {
+            "type": "object",
+            "properties": {
+                "createdAt": {
+                    "type": "string"
+                },
+                "deletedAt": {
+                    "$ref": "#/definitions/gorm.DeletedAt"
+                },
+                "dictType": {
+                    "description": "瀛楀吀绫诲瀷",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.DictType"
+                        }
+                    ]
                 },
                 "id": {
                     "type": "integer"
                 },
                 "name": {
-                    "description": "閮ㄩ棬鍚嶇О",
+                    "description": "鍚嶇О",
                     "type": "string"
                 },
                 "number": {
-                    "description": "閮ㄩ棬缂栧彿",
+                    "description": "缂栧彿",
                     "type": "string"
-                },
-                "parentId": {
-                    "description": "涓婄骇閮ㄩ棬ID",
-                    "type": "integer"
                 },
                 "remark": {
                     "description": "澶囨敞",
                     "type": "string"
                 },
-                "sort": {
-                    "description": "鎺掑簭",
-                    "type": "integer"
+                "updatedAt": {
+                    "type": "string"
                 }
             }
         },
-        "request.AddDepartment": {
+        "request.AddDict": {
             "type": "object",
             "properties": {
+                "dictType": {
+                    "description": "瀛楀吀绫诲瀷",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.DictType"
+                        }
+                    ]
+                },
                 "name": {
-                    "description": "閮ㄩ棬鍚嶇О",
+                    "description": "鍚嶇О",
                     "type": "string"
                 },
                 "number": {
-                    "description": "閮ㄩ棬缂栧彿",
+                    "description": "缂栫爜",
                     "type": "string"
-                },
-                "parentId": {
-                    "description": "涓婄骇閮ㄩ棬ID 涓�绾ч儴闂ㄤ紶0",
-                    "type": "integer"
                 },
                 "remark": {
                     "description": "澶囨敞",
@@ -211,23 +269,27 @@
                 }
             }
         },
-        "request.UpdateDepartment": {
+        "request.UpdateDict": {
             "type": "object",
             "properties": {
+                "dictType": {
+                    "description": "瀛楀吀绫诲瀷",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.DictType"
+                        }
+                    ]
+                },
                 "id": {
                     "type": "integer"
                 },
                 "name": {
-                    "description": "閮ㄩ棬鍚嶇О",
+                    "description": "鍚嶇О",
                     "type": "string"
                 },
                 "number": {
-                    "description": "閮ㄩ棬缂栧彿",
+                    "description": "缂栫爜",
                     "type": "string"
-                },
-                "parentId": {
-                    "description": "涓婄骇閮ㄩ棬ID 涓�绾ч儴闂ㄤ紶0",
-                    "type": "integer"
                 },
                 "remark": {
                     "description": "澶囨敞",

--
Gitblit v1.8.0