Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openapi 转化出来的response类型都是object #280

Open
sunyf1 opened this issue Feb 16, 2022 · 1 comment
Open

openapi 转化出来的response类型都是object #280

sunyf1 opened this issue Feb 16, 2022 · 1 comment

Comments

@sunyf1
Copy link

sunyf1 commented Feb 16, 2022

What happens(发生了什么)?

接口返回的json文件
{
"openapi": "3.0.1",
"info": { "description": "manageSwagger端接口文档", "version": "1.0.0", "title": "manageSwagger端接口文档" },
"servers": [
{ "url": "http://localhost:3000", "description": "本地测试地址" },
{ "url": "http://test0.platform.ifengidc.com/platform/server", "description": "测试地址" },
{ "url": "http://platform.ifengidc.com/platform/server", "description": "正式地址" }
],
"tags": [{ "name": "全部", "description": "api" }],
"paths": {
"/api/swaggerDiffCreate": {
"post": {
"tags": ["全部"],
"description": "创建",
"parameters": [],
"responses": {
"200": {
"description": "Normal Response",
"content": {
"application/json": {
"schema": {
"required": ["projectId", "historyIdNow", "historyIdOld", "differContent"],
"type": "object",
"properties": {
"projectId": { "type": "number" },
"historyIdNow": { "type": "string" },
"historyIdOld": { "type": "string" },
"differContent": { "type": "string" }
},
"additionalProperties": false
}
}
}
},
"500": {
"description": "When Server takes a nap.",
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } }
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"required": ["projectId", "historyIdNow", "historyIdOld", "differContent"],
"type": "object",
"properties": {
"projectId": { "type": "number" },
"historyIdNow": { "type": "string" },
"historyIdOld": { "type": "string" },
"differContent": { "type": "string" }
},
"additionalProperties": false
}
}
}
}
}
}
},
"components": {
"schemas": {
"Error": {
"type": "object",
"required": ["code", "err"],
"properties": { "code": { "type": "string" }, "err": { "type": "string" } }
}
}
}
}
用此json生成的代码
image

Context(上下文)

  • pont Version:
  • lastest
  • Node Version:
  • v14.12.0
  • Platform(操作系统平台):
  • mac
@Kerbores
Copy link

{
    "openapi": "3.0.1",
    "info": {
        "title": "后台管理接口文档",
        "description": "XXX模块REST-API接口文档",
        "termsOfService": "https://gitea.kerbores.com/Equipage",
        "contact": {
            "name": "中科软后台脚手架",
            "url": "https://www.sinosoft.com.cn",
            "email": "wangguiyuanp@sinosoft.com.cn"
        },
        "license": {
            "name": "Apache 2.0",
            "url": "http://www.apache.org/licenses/LICENSE-2.0"
        },
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "http://localhost:8888",
            "description": "后台管理接口文档"
        }
    ],
    "tags": [
        {
            "name": "Operate",
            "description": "操作模块"
        },
        {
            "name": "Resource",
            "description": "资源模块"
        },
        {
            "name": "User",
            "description": "用户模块"
        },
        {
            "name": "Role",
            "description": "角色模块"
        }
    ],
    "paths": {
        "/user": {
            "put": {
                "tags": [
                    "User"
                ],
                "summary": "增加/编辑用户",
                "operationId": "saveOrUpdate",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/User"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultUser"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/role": {
            "put": {
                "tags": [
                    "Role"
                ],
                "summary": "增加/编辑角色",
                "operationId": "saveOrUpdate_1",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/Role"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultRole"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/resource": {
            "put": {
                "tags": [
                    "Resource"
                ],
                "summary": "增加/编辑资源",
                "operationId": "saveOrUpdate_2",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/Resource"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultResource"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/operate": {
            "put": {
                "tags": [
                    "Operate"
                ],
                "summary": "增加/编辑操作",
                "operationId": "saveOrUpdate_3",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/Operate"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultOperate"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/user/{id}/grant": {
            "post": {
                "tags": [
                    "User"
                ],
                "summary": "为指定用户授权",
                "operationId": "grant",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "用户id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "array",
                                "description": "待授权信息(resourceKey.operateKey)",
                                "items": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultVoid"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/user/{id}/grant/role": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "获取指定用户的角色授权",
                "operationId": "roles",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "用户id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultListRoleInfo"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "tags": [
                    "User"
                ],
                "summary": "为指定用户设置角色",
                "operationId": "grantRoles",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "用户id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "array",
                                "description": "角色id列表",
                                "items": {
                                    "type": "integer",
                                    "format": "int64"
                                }
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultVoid"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/users": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "分页查询用户",
                "operationId": "users",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "description": "页码",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int64",
                            "default": 1
                        }
                    },
                    {
                        "name": "size",
                        "in": "query",
                        "description": "页面大小",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int64",
                            "default": 10
                        }
                    },
                    {
                        "name": "key",
                        "in": "query",
                        "description": "搜索关键词",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "default": ""
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultIPageUser"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/user/{id}": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "用户详情",
                "operationId": "detail",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "用户id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultUser"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "tags": [
                    "User"
                ],
                "summary": "删除用户",
                "operationId": "delete",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "用户id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultVoid"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/user/{id}/permissions": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "获取指定用户的授权情况",
                "operationId": "permissions",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "用户id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultPermissionInfo"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/user/{id}/grant/info": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "根据id获取用户已授权情况",
                "operationId": "grantInfo",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "用户id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultListPermission"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/roles": {
            "get": {
                "tags": [
                    "Role"
                ],
                "summary": "分页查询角色",
                "operationId": "roles_1",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "description": "页码",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int64",
                            "default": 1
                        }
                    },
                    {
                        "name": "size",
                        "in": "query",
                        "description": "页面大小",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int64",
                            "default": 10
                        }
                    },
                    {
                        "name": "key",
                        "in": "query",
                        "description": "搜索关键词",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "default": ""
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultIPageRole"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/role/{id}": {
            "get": {
                "tags": [
                    "Role"
                ],
                "summary": "角色详情",
                "operationId": "detail_1",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "角色id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultRole"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "tags": [
                    "Role"
                ],
                "summary": "删除角色",
                "operationId": "delete_1",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "角色id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultVoid"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/resources": {
            "get": {
                "tags": [
                    "Resource"
                ],
                "summary": "分页查询资源",
                "operationId": "resources",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "description": "页码",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int64",
                            "default": 1
                        }
                    },
                    {
                        "name": "size",
                        "in": "query",
                        "description": "页面大小",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int64",
                            "default": 10
                        }
                    },
                    {
                        "name": "key",
                        "in": "query",
                        "description": "搜索关键词",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "default": ""
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultIPageResource"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/resource/{id}": {
            "get": {
                "tags": [
                    "Resource"
                ],
                "summary": "资源详情",
                "operationId": "detail_2",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "资源id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultResource"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "tags": [
                    "Resource"
                ],
                "summary": "删除资源",
                "operationId": "delete_2",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "资源id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultVoid"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/operates": {
            "get": {
                "tags": [
                    "Operate"
                ],
                "summary": "分页查询操作",
                "operationId": "operates",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "description": "页码",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int64",
                            "default": 1
                        }
                    },
                    {
                        "name": "size",
                        "in": "query",
                        "description": "页面大小",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int64",
                            "default": 10
                        }
                    },
                    {
                        "name": "key",
                        "in": "query",
                        "description": "搜索关键词",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "default": ""
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultIPageOperate"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/operate/{id}": {
            "get": {
                "tags": [
                    "Operate"
                ],
                "summary": "操作详情",
                "operationId": "detail_3",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "操作id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultOperate"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "tags": [
                    "Operate"
                ],
                "summary": "删除操作",
                "operationId": "delete_3",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "操作id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultVoid"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/ResultObject"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "NutMap": {
                "type": "object",
                "properties": {
                    "all": {
                        "type": "object",
                        "properties": {
                            "empty": {
                                "type": "boolean"
                            }
                        },
                        "additionalProperties": {
                            "type": "object"
                        },
                        "writeOnly": true
                    },
                    "empty": {
                        "type": "boolean"
                    }
                },
                "additionalProperties": {
                    "type": "object"
                }
            },
            "ResultObject": {
                "required": [
                    "data",
                    "state"
                ],
                "type": "object",
                "properties": {
                    "ext": {
                        "$ref": "#/components/schemas/NutMap"
                    },
                    "state": {
                        "type": "string",
                        "description": "响应状态",
                        "enum": [
                            "SUCCESS",
                            "FAIL",
                            "EXCEPTION"
                        ]
                    },
                    "errors": {
                        "type": "array",
                        "description": "错误信息列表",
                        "items": {
                            "type": "string",
                            "description": "错误信息列表"
                        }
                    },
                    "data": {
                        "type": "object",
                        "description": "响应数据"
                    },
                    "success": {
                        "type": "boolean"
                    }
                }
            },
            "User": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "createdTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updatedTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "createdBy": {
                        "type": "string",
                        "description": "创建人"
                    },
                    "updatedBy": {
                        "type": "string",
                        "description": "更新人"
                    },
                    "name": {
                        "type": "string",
                        "description": "用户名"
                    },
                    "mobile": {
                        "type": "string",
                        "description": "手机号"
                    }
                },
                "description": "增加/编辑用户选项"
            },
            "ResultUser": {
                "required": [
                    "data",
                    "state"
                ],
                "type": "object",
                "properties": {
                    "ext": {
                        "$ref": "#/components/schemas/NutMap"
                    },
                    "state": {
                        "type": "string",
                        "description": "响应状态",
                        "enum": [
                            "SUCCESS",
                            "FAIL",
                            "EXCEPTION"
                        ]
                    },
                    "errors": {
                        "type": "array",
                        "description": "错误信息列表",
                        "items": {
                            "type": "string",
                            "description": "错误信息列表"
                        }
                    },
                    "data": {
                        "$ref": "#/components/schemas/User"
                    },
                    "success": {
                        "type": "boolean"
                    }
                }
            },
            "Role": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "createdTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updatedTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "createdBy": {
                        "type": "string",
                        "description": "创建人"
                    },
                    "updatedBy": {
                        "type": "string",
                        "description": "更新人"
                    },
                    "key": {
                        "type": "string",
                        "description": "角色key,英文,用来做业务"
                    },
                    "name": {
                        "type": "string",
                        "description": "角色名称,中文用来做标识"
                    },
                    "description": {
                        "type": "string",
                        "description": "角色描述"
                    }
                },
                "description": "增加/编辑角色选项"
            },
            "ResultRole": {
                "required": [
                    "data",
                    "state"
                ],
                "type": "object",
                "properties": {
                    "ext": {
                        "$ref": "#/components/schemas/NutMap"
                    },
                    "state": {
                        "type": "string",
                        "description": "响应状态",
                        "enum": [
                            "SUCCESS",
                            "FAIL",
                            "EXCEPTION"
                        ]
                    },
                    "errors": {
                        "type": "array",
                        "description": "错误信息列表",
                        "items": {
                            "type": "string",
                            "description": "错误信息列表"
                        }
                    },
                    "data": {
                        "$ref": "#/components/schemas/Role"
                    },
                    "success": {
                        "type": "boolean"
                    }
                }
            },
            "Resource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "createdTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updatedTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "createdBy": {
                        "type": "string",
                        "description": "创建人"
                    },
                    "updatedBy": {
                        "type": "string",
                        "description": "更新人"
                    },
                    "key": {
                        "type": "string",
                        "description": "资源key,英文,用来做业务"
                    },
                    "name": {
                        "type": "string",
                        "description": "资源名称,中文用来做标识"
                    },
                    "description": {
                        "type": "string",
                        "description": "资源描述"
                    }
                },
                "description": "增加/编辑资源选项"
            },
            "ResultResource": {
                "required": [
                    "data",
                    "state"
                ],
                "type": "object",
                "properties": {
                    "ext": {
                        "$ref": "#/components/schemas/NutMap"
                    },
                    "state": {
                        "type": "string",
                        "description": "响应状态",
                        "enum": [
                            "SUCCESS",
                            "FAIL",
                            "EXCEPTION"
                        ]
                    },
                    "errors": {
                        "type": "array",
                        "description": "错误信息列表",
                        "items": {
                            "type": "string",
                            "description": "错误信息列表"
                        }
                    },
                    "data": {
                        "$ref": "#/components/schemas/Resource"
                    },
                    "success": {
                        "type": "boolean"
                    }
                }
            },
            "Operate": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "createdTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updatedTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "createdBy": {
                        "type": "string",
                        "description": "创建人"
                    },
                    "updatedBy": {
                        "type": "string",
                        "description": "更新人"
                    },
                    "key": {
                        "type": "string",
                        "description": "操作key,英文,用来做业务"
                    },
                    "name": {
                        "type": "string",
                        "description": "操作名称,中文用来做标识"
                    },
                    "description": {
                        "type": "string",
                        "description": "资源描述"
                    },
                    "resourceId": {
                        "type": "integer",
                        "description": "归属资源id,如果内置置0",
                        "format": "int64"
                    },
                    "installed": {
                        "type": "boolean",
                        "description": "是否内置,内置的没有资源归属"
                    }
                },
                "description": "增加/编辑操作选项"
            },
            "ResultOperate": {
                "required": [
                    "data",
                    "state"
                ],
                "type": "object",
                "properties": {
                    "ext": {
                        "$ref": "#/components/schemas/NutMap"
                    },
                    "state": {
                        "type": "string",
                        "description": "响应状态",
                        "enum": [
                            "SUCCESS",
                            "FAIL",
                            "EXCEPTION"
                        ]
                    },
                    "errors": {
                        "type": "array",
                        "description": "错误信息列表",
                        "items": {
                            "type": "string",
                            "description": "错误信息列表"
                        }
                    },
                    "data": {
                        "$ref": "#/components/schemas/Operate"
                    },
                    "success": {
                        "type": "boolean"
                    }
                }
            },
            "ResultVoid": {
                "required": [
                    "data",
                    "state"
                ],
                "type": "object",
                "properties": {
                    "ext": {
                        "$ref": "#/components/schemas/NutMap"
                    },
                    "state": {
                        "type": "string",
                        "description": "响应状态",
                        "enum": [
                            "SUCCESS",
                            "FAIL",
                            "EXCEPTION"
                        ]
                    },
                    "errors": {
                        "type": "array",
                        "description": "错误信息列表",
                        "items": {
                            "type": "string",
                            "description": "错误信息列表"
                        }
                    },
                    "data": {
                        "type": "object",
                        "description": "响应数据"
                    },
                    "success": {
                        "type": "boolean"
                    }
                }
            },
            "IPageUser": {
                "type": "object",
                "properties": {
                    "size": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "pages": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "records": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/User"
                        }
                    },
                    "total": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "current": {
                        "type": "integer",
                        "format": "int64"
                    }
                },
                "description": "响应数据"
            },
            "ResultIPageUser": {
                "required": [
                    "data",
                    "state"
                ],
                "type": "object",
                "properties": {
                    "ext": {
                        "$ref": "#/components/schemas/NutMap"
                    },
                    "state": {
                        "type": "string",
                        "description": "响应状态",
                        "enum": [
                            "SUCCESS",
                            "FAIL",
                            "EXCEPTION"
                        ]
                    },
                    "errors": {
                        "type": "array",
                        "description": "错误信息列表",
                        "items": {
                            "type": "string",
                            "description": "错误信息列表"
                        }
                    },
                    "data": {
                        "$ref": "#/components/schemas/IPageUser"
                    },
                    "success": {
                        "type": "boolean"
                    }
                }
            },
            "OperateInfo": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "createdTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updatedTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "createdBy": {
                        "type": "string",
                        "description": "创建人"
                    },
                    "updatedBy": {
                        "type": "string",
                        "description": "更新人"
                    },
                    "key": {
                        "type": "string",
                        "description": "操作key,英文,用来做业务"
                    },
                    "name": {
                        "type": "string",
                        "description": "操作名称,中文用来做标识"
                    },
                    "description": {
                        "type": "string",
                        "description": "资源描述"
                    },
                    "resourceId": {
                        "type": "integer",
                        "description": "归属资源id,如果内置置0",
                        "format": "int64"
                    },
                    "installed": {
                        "type": "boolean",
                        "description": "是否内置,内置的没有资源归属"
                    },
                    "selected": {
                        "type": "boolean",
                        "description": "是否选中标识"
                    }
                },
                "description": "资源操作列表"
            },
            "PermissionInfo": {
                "required": [
                    "resources"
                ],
                "type": "object",
                "properties": {
                    "resources": {
                        "type": "array",
                        "description": "模块信息列表",
                        "items": {
                            "$ref": "#/components/schemas/ResourceInfo"
                        }
                    }
                },
                "description": "响应数据"
            },
            "ResourceInfo": {
                "required": [
                    "operates"
                ],
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "createdTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updatedTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "createdBy": {
                        "type": "string",
                        "description": "创建人"
                    },
                    "updatedBy": {
                        "type": "string",
                        "description": "更新人"
                    },
                    "key": {
                        "type": "string",
                        "description": "资源key,英文,用来做业务"
                    },
                    "name": {
                        "type": "string",
                        "description": "资源名称,中文用来做标识"
                    },
                    "description": {
                        "type": "string",
                        "description": "资源描述"
                    },
                    "operates": {
                        "type": "array",
                        "description": "资源操作列表",
                        "items": {
                            "$ref": "#/components/schemas/OperateInfo"
                        }
                    },
                    "selected": {
                        "type": "boolean",
                        "description": "是否选中标识"
                    }
                },
                "description": "模块信息列表"
            },
            "ResultPermissionInfo": {
                "required": [
                    "data",
                    "state"
                ],
                "type": "object",
                "properties": {
                    "ext": {
                        "$ref": "#/components/schemas/NutMap"
                    },
                    "state": {
                        "type": "string",
                        "description": "响应状态",
                        "enum": [
                            "SUCCESS",
                            "FAIL",
                            "EXCEPTION"
                        ]
                    },
                    "errors": {
                        "type": "array",
                        "description": "错误信息列表",
                        "items": {
                            "type": "string",
                            "description": "错误信息列表"
                        }
                    },
                    "data": {
                        "$ref": "#/components/schemas/PermissionInfo"
                    },
                    "success": {
                        "type": "boolean"
                    }
                }
            },
            "ResultListRoleInfo": {
                "required": [
                    "data",
                    "state"
                ],
                "type": "object",
                "properties": {
                    "ext": {
                        "$ref": "#/components/schemas/NutMap"
                    },
                    "state": {
                        "type": "string",
                        "description": "响应状态",
                        "enum": [
                            "SUCCESS",
                            "FAIL",
                            "EXCEPTION"
                        ]
                    },
                    "errors": {
                        "type": "array",
                        "description": "错误信息列表",
                        "items": {
                            "type": "string",
                            "description": "错误信息列表"
                        }
                    },
                    "data": {
                        "type": "array",
                        "description": "响应数据",
                        "items": {
                            "$ref": "#/components/schemas/RoleInfo"
                        }
                    },
                    "success": {
                        "type": "boolean"
                    }
                }
            },
            "RoleInfo": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "createdTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updatedTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "createdBy": {
                        "type": "string",
                        "description": "创建人"
                    },
                    "updatedBy": {
                        "type": "string",
                        "description": "更新人"
                    },
                    "key": {
                        "type": "string",
                        "description": "角色key,英文,用来做业务"
                    },
                    "name": {
                        "type": "string",
                        "description": "角色名称,中文用来做标识"
                    },
                    "description": {
                        "type": "string",
                        "description": "角色描述"
                    },
                    "selected": {
                        "type": "boolean",
                        "description": "是否选中标识"
                    }
                },
                "description": "角色信息"
            },
            "Permission": {
                "required": [
                    "operateId",
                    "operateKey",
                    "operateName",
                    "resourceKey",
                    "resourceName",
                    "userId"
                ],
                "type": "object",
                "properties": {
                    "userId": {
                        "type": "integer",
                        "description": "用户Id",
                        "format": "int64"
                    },
                    "operateKey": {
                        "type": "string",
                        "description": "操作key"
                    },
                    "operateName": {
                        "type": "string",
                        "description": "操作名称"
                    },
                    "operateId": {
                        "type": "integer",
                        "description": "操作Id",
                        "format": "int64"
                    },
                    "resourceKey": {
                        "type": "string",
                        "description": "资源key"
                    },
                    "resourceName": {
                        "type": "string",
                        "description": "资源名称"
                    },
                    "resourceDescription": {
                        "type": "string",
                        "description": "资源描述"
                    },
                    "operateDescription": {
                        "type": "string",
                        "description": "资源描述"
                    },
                    "resourceId": {
                        "type": "integer",
                        "description": "资源Id",
                        "format": "int64"
                    },
                    "operateSelected": {
                        "type": "boolean",
                        "description": "操作选中标志"
                    },
                    "resourceSelected": {
                        "type": "boolean",
                        "description": "资源选中标志"
                    },
                    "selected": {
                        "type": "boolean",
                        "description": "用户是否授权标识"
                    },
                    "installed": {
                        "type": "boolean",
                        "description": "是否内置操作"
                    }
                },
                "description": "响应数据"
            },
            "ResultListPermission": {
                "required": [
                    "data",
                    "state"
                ],
                "type": "object",
                "properties": {
                    "ext": {
                        "$ref": "#/components/schemas/NutMap"
                    },
                    "state": {
                        "type": "string",
                        "description": "响应状态",
                        "enum": [
                            "SUCCESS",
                            "FAIL",
                            "EXCEPTION"
                        ]
                    },
                    "errors": {
                        "type": "array",
                        "description": "错误信息列表",
                        "items": {
                            "type": "string",
                            "description": "错误信息列表"
                        }
                    },
                    "data": {
                        "type": "array",
                        "description": "响应数据",
                        "items": {
                            "$ref": "#/components/schemas/Permission"
                        }
                    },
                    "success": {
                        "type": "boolean"
                    }
                }
            },
            "IPageRole": {
                "type": "object",
                "properties": {
                    "size": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "pages": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "records": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Role"
                        }
                    },
                    "total": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "current": {
                        "type": "integer",
                        "format": "int64"
                    }
                },
                "description": "响应数据"
            },
            "ResultIPageRole": {
                "required": [
                    "data",
                    "state"
                ],
                "type": "object",
                "properties": {
                    "ext": {
                        "$ref": "#/components/schemas/NutMap"
                    },
                    "state": {
                        "type": "string",
                        "description": "响应状态",
                        "enum": [
                            "SUCCESS",
                            "FAIL",
                            "EXCEPTION"
                        ]
                    },
                    "errors": {
                        "type": "array",
                        "description": "错误信息列表",
                        "items": {
                            "type": "string",
                            "description": "错误信息列表"
                        }
                    },
                    "data": {
                        "$ref": "#/components/schemas/IPageRole"
                    },
                    "success": {
                        "type": "boolean"
                    }
                }
            },
            "IPageResource": {
                "type": "object",
                "properties": {
                    "size": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "pages": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "records": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Resource"
                        }
                    },
                    "total": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "current": {
                        "type": "integer",
                        "format": "int64"
                    }
                },
                "description": "响应数据"
            },
            "ResultIPageResource": {
                "required": [
                    "data",
                    "state"
                ],
                "type": "object",
                "properties": {
                    "ext": {
                        "$ref": "#/components/schemas/NutMap"
                    },
                    "state": {
                        "type": "string",
                        "description": "响应状态",
                        "enum": [
                            "SUCCESS",
                            "FAIL",
                            "EXCEPTION"
                        ]
                    },
                    "errors": {
                        "type": "array",
                        "description": "错误信息列表",
                        "items": {
                            "type": "string",
                            "description": "错误信息列表"
                        }
                    },
                    "data": {
                        "$ref": "#/components/schemas/IPageResource"
                    },
                    "success": {
                        "type": "boolean"
                    }
                }
            },
            "IPageOperate": {
                "type": "object",
                "properties": {
                    "size": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "pages": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "records": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Operate"
                        }
                    },
                    "total": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "current": {
                        "type": "integer",
                        "format": "int64"
                    }
                },
                "description": "响应数据"
            },
            "ResultIPageOperate": {
                "required": [
                    "data",
                    "state"
                ],
                "type": "object",
                "properties": {
                    "ext": {
                        "$ref": "#/components/schemas/NutMap"
                    },
                    "state": {
                        "type": "string",
                        "description": "响应状态",
                        "enum": [
                            "SUCCESS",
                            "FAIL",
                            "EXCEPTION"
                        ]
                    },
                    "errors": {
                        "type": "array",
                        "description": "错误信息列表",
                        "items": {
                            "type": "string",
                            "description": "错误信息列表"
                        }
                    },
                    "data": {
                        "$ref": "#/components/schemas/IPageOperate"
                    },
                    "success": {
                        "type": "boolean"
                    }
                }
            }
        }
    }
}

以上swagger 信息无法生成基本类型,
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants