emis-service/gentools/code/tnemis-mgnt/doc/emis/emisSiteSettleRecord-Apifox.json

283 lines
12 KiB
JSON
Raw Normal View History

2024-03-07 10:49:59 +00:00
{
"apifoxProject": "1.0.0",
"$schema": {
"app": "apifox",
"type": "project",
"version": "1.2.0"
},
"info": {
"name": "TN-APP",
"description": "",
"mockRule": {
"rules": [],
"enableSystemRule": true
}
},
"apiCollection": [
{
"name": "根目录",
"id": 26014207,
"auth": {},
"parentId": 0,
"serverId": "",
"description": "",
"identityPattern": {
"httpApi": {
"type": "methodAndPath",
"bodyType": "",
"fields": []
}
},
"preProcessors": [
{
"id": "inheritProcessors",
"type": "inheritProcessors",
"data": {}
}
],
"postProcessors": [
{
"id": "inheritProcessors",
"type": "inheritProcessors",
"data": {}
}
],
"inheritPostProcessors": {},
"inheritPreProcessors": {},
"items": [
{
"name": "1.登录授权",
"id": 29242315,
"auth": {},
"parentId": 0,
"serverId": "",
"description": "",
"identityPattern": {
"httpApi": {
"type": "inherit",
"bodyType": "",
"fields": []
}
},
"preProcessors": [
{
"id": "inheritProcessors",
"type": "inheritProcessors",
"data": {}
}
],
"postProcessors": [
{
"id": "inheritProcessors",
"type": "inheritProcessors",
"data": {}
}
],
"inheritPostProcessors": {},
"inheritPreProcessors": {},
"items": [
{
"name": "1.1 APP登录-获取token",
"api": {
"id": "132045971",
"method": "post",
"path": "/loginByApp",
"parameters": {
"query": [],
"header": [
{
"required": false,
"description": "",
"type": "string",
"id": "7g7hLfS1TX",
"example": "application/json; charset=UTF-8",
"enable": true,
"name": "Content-Type"
}
]
},
"auth": {},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"responses": [
{
"id": "367025625",
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {
"msg": {
"type": "string",
"description": "错误返回信息"
},
"code": {
"type": "integer",
"description": "返回代码 返回200表示成功"
},
"token": {
"type": "string",
"description": "成功返回的token值"
}
},
"required": [
"msg",
"code",
"token"
],
"x-apifox-orders": [
"msg",
"code",
"token"
]
}
}
],
"responseExamples": [
{
"name": "成功示例",
"data": "{\n \"msg\":\"操作成功\",\n \"code\":200,\n \"token\":\"eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImE3MmU0ZmIwLThhNTgtNDNmNi05MDViLTUyMjlkYjgxN2I0OSJ9.-LRoUTqFBV0B3OWwxPl39He3d1_H0-98f6HN_xmFMUiwhc9l0kak5XXsmwgq-GEMVsWNA0gsjthBdeqEdL3jZw\"\n}",
"responseId": 367025625,
"ordering": 2
},
{
"name": "异常示例",
"data": "{\n \"msg\":\"登录用户:12312 不存在\",\n \"code\":500\n}",
"responseId": 367025625,
"ordering": 3
}
],
"requestBody": {
"type": "application/json",
"parameters": [],
"jsonSchema": {
"type": "object",
"properties": {
"username": {
"type": "string",
"description": "加密登录名称"
},
"password": {
"type": "string",
"description": "加密密码"
},
"macCode": {
"type": "string",
"description": "机器码"
},
"uuid": {
"type": "string",
"description": "uuid"
},
"isEncrypt": {
"type": "boolean",
"description": "用户名和密码是否加密"
}
},
"x-apifox-orders": [
"username",
"password",
"macCode",
"uuid",
"isEncrypt"
],
"required": [
"username",
"password",
"macCode",
"uuid"
]
},
"example": "{\n \"username\":\"毛秀兰\",\n \"password\":\"culpa adipisicing mollit non cupidatat\",\n \"macCode\":\"57\",\n \"uuid\":\"44\",\n \"isEncrypt\":false\n}"
},
"description": "APP登录获取Token接口\n\n需要对用户名和密码进行RSA加密传输\nimport { encrypt } from '@/utils/jsencrypt_utlis'\n\n let username = encrypt(mwname)\n let password = encrypt(mwpwd)\n const data = {\n username,\n password,\n macCode,\n uuid,\n isEncrypt\n }\n return request({\n url: '/login',\n headers: {\n isToken: false\n },\n method: 'post',\n data: data\n })\n",
"tags": [],
"status": "developing",
"serverId": "",
"operationId": "",
"sourceUrl": "",
"ordering": 10,
"cases": [],
"mocks": [],
"customApiFields": "{}",
"advancedSettings": {
"disabledSystemHeaders": {}
},
"mockScript": {},
"codeSamples": [],
"commonResponseStatus": {},
"responseChildren": [
"BLANK.367025625"
],
"preProcessors": [],
"postProcessors": [],
"inheritPostProcessors": {},
"inheritPreProcessors": {}
}
}
]
}
]
}
],
"socketCollection": [],
"docCollection": [],
"schemaCollection": [],
"responseCollection": [
{
"id": 3730452,
"createdAt": "2023-12-09T12:37:00.000Z",
"updatedAt": "2023-12-09T12:37:00.000Z",
"deletedAt": null,
"name": "根目录",
"type": "root",
"description": "",
"children": [],
"auth": {},
"projectId": 3731257,
"projectBranchId": 0,
"parentId": 0,
"createdById": 772580,
"updatedById": 772580,
"items": []
}
],
"environments": [],
"commonScripts": [],
"globalVariables": [],
"commonParameters": null,
"projectSetting": {
"id": "3158328",
"auth": {},
"servers": [
{
"id": "default",
"name": "默认服务"
}
],
"gateway": [],
"language": "zh-CN",
"apiStatuses": [
"developing",
"testing",
"released",
"deprecated"
],
"mockSettings": {},
"preProcessors": [],
"postProcessors": [],
"advancedSettings": {},
"initialDisabledMockIds": [],
"cloudMock": {
"security": "free",
"enable": false,
"tokenKey": "apifoxToken"
}
},
"projectAssociations": []
}