zhangqian
2024-02-29 0873199876ca5289125d8356d6a5bbc05f37dc5e
docs/docs.go
@@ -171,140 +171,6 @@
                    }
                }
            }
        },
        "/api-s/v1/organize/department": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "部门信息"
                ],
                "summary": "查询部门信息列表",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.Department"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            },
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "部门信息"
                ],
                "summary": "添加部门信息",
                "parameters": [
                    {
                        "description": "部门信息信息",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddDepartment"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/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"
                        }
                    }
                }
            },
            "delete": {
                "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"
                        }
                    }
                }
            }
        }
    },
    "definitions": {
@@ -338,44 +204,6 @@
                "valid": {
                    "description": "Valid is true if Time is not NULL",
                    "type": "boolean"
                }
            }
        },
        "models.Department": {
            "type": "object",
            "properties": {
                "children": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.Department"
                    }
                },
                "head": {
                    "description": "部门负责人",
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "description": "部门名称",
                    "type": "string"
                },
                "number": {
                    "description": "部门编号",
                    "type": "string"
                },
                "parentId": {
                    "description": "上级部门ID",
                    "type": "integer"
                },
                "remark": {
                    "description": "备注",
                    "type": "string"
                },
                "sort": {
                    "description": "排序",
                    "type": "integer"
                }
            }
        },
@@ -416,27 +244,6 @@
                }
            }
        },
        "request.AddDepartment": {
            "type": "object",
            "properties": {
                "name": {
                    "description": "部门名称",
                    "type": "string"
                },
                "number": {
                    "description": "部门编号",
                    "type": "string"
                },
                "parentId": {
                    "description": "上级部门ID 一级部门传0",
                    "type": "integer"
                },
                "remark": {
                    "description": "备注",
                    "type": "string"
                }
            }
        },
        "request.AddDict": {
            "type": "object",
            "properties": {
@@ -455,30 +262,6 @@
                "number": {
                    "description": "编码",
                    "type": "string"
                },
                "remark": {
                    "description": "备注",
                    "type": "string"
                }
            }
        },
        "request.UpdateDepartment": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "description": "部门名称",
                    "type": "string"
                },
                "number": {
                    "description": "部门编号",
                    "type": "string"
                },
                "parentId": {
                    "description": "上级部门ID 一级部门传0",
                    "type": "integer"
                },
                "remark": {
                    "description": "备注",