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