{
"openapi": "3.0.1",
"info": {
"title": "Ant Design Pro",
"version": "1.0.0"
},
"servers": [
"url": "http://localhost:8020/"
"url": "https://localhost:8020/"
}
],
"paths": {
"/api/currentUser": {
"get": {
"tags": ["api"],
"description": "获取当前的用户",
"operationId": "currentUser",
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CurrentUser"
"401": {
"description": "Error",
"$ref": "#/components/schemas/ErrorResponse"
"x-swagger-router-controller": "api"
"/api/login/captcha": {
"post": {
"description": "发送验证码",
"operationId": "getFakeCaptcha",
"tags": ["login"],
"parameters": [
"name": "phone",
"in": "query",
"description": "手机号",
"type": "string"
"$ref": "#/components/schemas/FakeCaptcha"
"/api/login/outLogin": {
"description": "登录接口",
"operationId": "outLogin",
"type": "object"
"/api/login/account": {
"operationId": "login",
"requestBody": {
"description": "登录系统",
"$ref": "#/components/schemas/LoginParams"
"required": true
"$ref": "#/components/schemas/LoginResult"
"x-codegen-request-body-name": "body"
"/api/notices": {
"summary": "getNotices",
"description": "NoticeIconItem",
"operationId": "getNotices",
"$ref": "#/components/schemas/NoticeIconList"
"/api/rule": {
"tags": ["rule"],
"description": "获取规则列表",
"operationId": "rule",
"name": "current",
"description": "当前的页码",
"type": "number"
"name": "pageSize",
"description": "页面的容量",
"$ref": "#/components/schemas/RuleList"
"description": "新建规则",
"operationId": "addRule",
"$ref": "#/components/schemas/RuleListItem"
"put": {
"operationId": "updateRule",
"delete": {
"description": "删除规则",
"operationId": "removeRule",
"/swagger": {
"x-swagger-pipe": "swagger_raw"
"components": {
"schemas": {
"CurrentUser": {
"type": "object",
"properties": {
"name": {
"avatar": {
"userid": {
"email": {
"signature": {
"title": {
"group": {
"tags": {
"type": "array",
"items": {
"key": {
"label": {
"notifyCount": {
"type": "integer",
"format": "int32"
"unreadCount": {
"country": {
"access": {
"geographic": {
"province": {
"city": {
"address": {
"phone": {
"LoginResult": {
"status": {
"type": {
"currentAuthority": {
"PageParams": {
"current": {
"pageSize": {
"RuleListItem": {
"disabled": {
"type": "boolean"
"href": {
"owner": {
"desc": {
"callNo": {
"updatedAt": {
"type": "string",
"format": "datetime"
"createdAt": {
"progress": {
"RuleList": {
"data": {
"total": {
"description": "列表的内容总数",
"success": {
"FakeCaptcha": {
"code": {
"LoginParams": {
"username": {
"pwd": {
"autoLogin": {
"ErrorResponse": {
"required": ["errorCode"],
"errorCode": {
"description": "业务约定的错误码"
"errorMessage": {
"description": "业务上的错误信息"
"type": "boolean",
"description": "业务上的请求是否成功"
"NoticeIconList": {
"$ref": "#/components/schemas/NoticeIconItem"
"NoticeIconItemType": {
"title": "NoticeIconItemType",
"description": "已读未读列表的枚举",
"properties": {},
"enum": ["notification", "message", "event"]
"NoticeIconItem": {
"id": {
"extra": {
"format": "any"
"key": { "type": "string" },
"read": {
"datetime": {
"format": "date"
"description": {
"extensions": {
"x-is-enum": true
"$ref": "#/components/schemas/NoticeIconItemType"