nili
7 months ago
26 changed files with 34 additions and 1322 deletions
@ -1 +1 @@ |
|||||
!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["51.a2ea1b3b.async.js",51],["63.86ff1d28.async.js",63],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["p__MoneyManagement.504715f9.async.js",190],["247.3fe8fb10.async.js",247],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.ec53e5c4.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["427.f16a2970.async.js",427],["p__SuperAdmin.cd20fd1e.async.js",455],["531.3d4ec55a.async.js",531],["539.49b7b156.async.js",539],["p__AdvRecordListV2.52c0941e.async.js",542],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.20e45f05.async.js",635],["p__App__AppManagement.a12680df.async.js",731],["804.139cd916.async.js",804],["p__AdminManagement.4b0ea38b.async.js",816],["841.614ef4c0.async.js",841],["p__AdvRecordList.8e5ef22c.async.js",857],["p__UserManagement.2c68b70b.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930]],"r":{"/*":[21,29],"/":[2,7,8,20,22,29],"/welcome":[2,3,4,12,20,30,7,8,22,29],"/super":[0,1,2,3,6,14,15,30,7,8,20,22,29],"/adminList":[0,3,14,24,25,2,7,8,20,22,29],"/bind":[2,3,12,13,19,20,30,7,8,22,29],"/appList":[0,1,2,3,6,13,14,16,17,23,24,29,30,7,8,20,22],"/advList/:code":[0,1,2,3,14,16,17,20,24,26,27,29,30,7,8,22],"/advListV2/:code":[0,1,2,3,14,16,17,18,20,24,26,29,30,7,8,22],"/user/:code":[0,1,2,3,14,16,17,24,28,29,30,7,8,20,22],"/money/:code":[0,1,2,3,5,14,16,17,24,29,30,7,8,20,22],"/app/:code":[0,1,2,3,10,14,16,17,20,24,26,29,30,7,8,22],"/user/login":[1,2,3,9,14,16,24]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); |
!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["51.a2ea1b3b.async.js",51],["63.86ff1d28.async.js",63],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["p__MoneyManagement.7a821bf4.async.js",190],["247.3fe8fb10.async.js",247],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.ec53e5c4.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["427.f16a2970.async.js",427],["p__SuperAdmin.aaa0f8d9.async.js",455],["531.3d4ec55a.async.js",531],["539.49b7b156.async.js",539],["p__AdvRecordListV2.52c0941e.async.js",542],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.20e45f05.async.js",635],["p__App__AppManagement.a12680df.async.js",731],["804.139cd916.async.js",804],["p__AdminManagement.4b0ea38b.async.js",816],["841.614ef4c0.async.js",841],["p__AdvRecordList.8e5ef22c.async.js",857],["p__UserManagement.2c68b70b.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930]],"r":{"/*":[21,29],"/":[2,7,8,20,22,29],"/welcome":[2,3,4,12,20,30,7,8,22,29],"/super":[0,1,2,3,6,14,15,30,7,8,20,22,29],"/adminList":[0,3,14,24,25,2,7,8,20,22,29],"/bind":[2,3,12,13,19,20,30,7,8,22,29],"/appList":[0,1,2,3,6,13,14,16,17,23,24,29,30,7,8,20,22],"/advList/:code":[0,1,2,3,14,16,17,20,24,26,27,29,30,7,8,22],"/advListV2/:code":[0,1,2,3,14,16,17,18,20,24,26,29,30,7,8,22],"/user/:code":[0,1,2,3,14,16,17,24,28,29,30,7,8,20,22],"/money/:code":[0,1,2,3,5,14,16,17,24,29,30,7,8,20,22],"/app/:code":[0,1,2,3,10,14,16,17,20,24,26,29,30,7,8,22],"/user/login":[1,2,3,9,14,16,24]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,94 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** 获取当前的用户 GET /api/currentUser */ |
|
||||
export async function currentUser(options?: { [key: string]: any }) { |
|
||||
return request<{ |
|
||||
data: API.CurrentUser; |
|
||||
}>('/api/currentUser', { |
|
||||
method: 'GET', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 退出登录接口 POST /api/login/outLogin */ |
|
||||
export async function outLogin(options?: { [key: string]: any }) { |
|
||||
return request<Record<string, any>>('/api/login/outLogin', { |
|
||||
method: 'POST', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 登录接口 POST /api/login/account */ |
|
||||
export async function login(body: API.LoginParams, options?: { [key: string]: any }) { |
|
||||
return request<API.LoginResult>('/api/login/account', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/notices */ |
|
||||
export async function getNotices(options?: { [key: string]: any }) { |
|
||||
return request<API.NoticeIconList>('/api/notices', { |
|
||||
method: 'GET', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 获取规则列表 GET /api/rule */ |
|
||||
export async function rule( |
|
||||
params: { |
|
||||
// query
|
|
||||
/** 当前的页码 */ |
|
||||
current?: number; |
|
||||
/** 页面的容量 */ |
|
||||
pageSize?: number; |
|
||||
}, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RuleList>('/api/rule', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 更新规则 PUT /api/rule */ |
|
||||
export async function updateRule(options?: { [key: string]: any }) { |
|
||||
return request<API.RuleListItem>('/api/rule', { |
|
||||
method: 'POST', |
|
||||
data:{ |
|
||||
method: 'update', |
|
||||
...(options || {}), |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 新建规则 POST /api/rule */ |
|
||||
export async function addRule(options?: { [key: string]: any }) { |
|
||||
return request<API.RuleListItem>('/api/rule', { |
|
||||
method: 'POST', |
|
||||
data:{ |
|
||||
method: 'post', |
|
||||
...(options || {}), |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 删除规则 DELETE /api/rule */ |
|
||||
export async function removeRule(options?: { [key: string]: any }) { |
|
||||
return request<Record<string, any>>('/api/rule', { |
|
||||
method: 'POST', |
|
||||
data:{ |
|
||||
method: 'delete', |
|
||||
...(options || {}), |
|
||||
} |
|
||||
}); |
|
||||
} |
|
@ -1,10 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
// API 更新时间:
|
|
||||
// API 唯一标识:
|
|
||||
import * as api from './api'; |
|
||||
import * as login from './login'; |
|
||||
export default { |
|
||||
api, |
|
||||
login, |
|
||||
}; |
|
@ -1,21 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** 发送验证码 POST /api/login/captcha */ |
|
||||
export async function getFakeCaptcha( |
|
||||
params: { |
|
||||
// query
|
|
||||
/** 手机号 */ |
|
||||
phone?: string; |
|
||||
}, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.FakeCaptcha>('/api/login/captcha', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
@ -1,101 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
|
|
||||
declare namespace API { |
|
||||
type CurrentUser = { |
|
||||
name?: string; |
|
||||
avatar?: string; |
|
||||
userid?: string; |
|
||||
email?: string; |
|
||||
signature?: string; |
|
||||
title?: string; |
|
||||
group?: string; |
|
||||
tags?: { key?: string; label?: string }[]; |
|
||||
notifyCount?: number; |
|
||||
unreadCount?: number; |
|
||||
country?: string; |
|
||||
access?: string; |
|
||||
geographic?: { |
|
||||
province?: { label?: string; key?: string }; |
|
||||
city?: { label?: string; key?: string }; |
|
||||
}; |
|
||||
address?: string; |
|
||||
phone?: string; |
|
||||
}; |
|
||||
|
|
||||
type LoginResult = { |
|
||||
status?: string; |
|
||||
type?: string; |
|
||||
currentAuthority?: string; |
|
||||
}; |
|
||||
|
|
||||
type PageParams = { |
|
||||
current?: number; |
|
||||
pageSize?: number; |
|
||||
}; |
|
||||
|
|
||||
type RuleListItem = { |
|
||||
key?: number; |
|
||||
disabled?: boolean; |
|
||||
href?: string; |
|
||||
avatar?: string; |
|
||||
name?: string; |
|
||||
owner?: string; |
|
||||
desc?: string; |
|
||||
callNo?: number; |
|
||||
status?: number; |
|
||||
updatedAt?: string; |
|
||||
createdAt?: string; |
|
||||
progress?: number; |
|
||||
}; |
|
||||
|
|
||||
type RuleList = { |
|
||||
data?: RuleListItem[]; |
|
||||
/** 列表的内容总数 */ |
|
||||
total?: number; |
|
||||
success?: boolean; |
|
||||
}; |
|
||||
|
|
||||
type FakeCaptcha = { |
|
||||
code?: number; |
|
||||
status?: string; |
|
||||
}; |
|
||||
|
|
||||
type LoginParams = { |
|
||||
username?: string; |
|
||||
password?: string; |
|
||||
autoLogin?: boolean; |
|
||||
type?: string; |
|
||||
}; |
|
||||
|
|
||||
type ErrorResponse = { |
|
||||
/** 业务约定的错误码 */ |
|
||||
errorCode: string; |
|
||||
/** 业务上的错误信息 */ |
|
||||
errorMessage?: string; |
|
||||
/** 业务上的请求是否成功 */ |
|
||||
success?: boolean; |
|
||||
}; |
|
||||
|
|
||||
type NoticeIconList = { |
|
||||
data?: NoticeIconItem[]; |
|
||||
/** 列表的内容总数 */ |
|
||||
total?: number; |
|
||||
success?: boolean; |
|
||||
}; |
|
||||
|
|
||||
type NoticeIconItemType = 'notification' | 'message' | 'event'; |
|
||||
|
|
||||
type NoticeIconItem = { |
|
||||
id?: string; |
|
||||
extra?: string; |
|
||||
key?: string; |
|
||||
read?: boolean; |
|
||||
avatar?: string; |
|
||||
title?: string; |
|
||||
status?: string; |
|
||||
datetime?: string; |
|
||||
description?: string; |
|
||||
type?: NoticeIconItemType; |
|
||||
}; |
|
||||
} |
|
@ -1,18 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/app/info */ |
|
||||
export async function getAppInfo( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.getAppInfoParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RAppInfo>('/api/game/app/info', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
@ -1,18 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/citrus/app/getDetail */ |
|
||||
export async function getAppDetail( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.getAppDetailParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RAppCashConfig>('/api/citrus/app/getDetail', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
@ -1,114 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/auth/current */ |
|
||||
export async function currentUser(options?: { [key: string]: any }) { |
|
||||
return request<API.RCurrentUser>('/api/game/auth/current', { |
|
||||
method: 'GET', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/auth/login */ |
|
||||
export async function wxLogin( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.wxLoginParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RString>('/api/game/auth/login', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/auth/loginV2 */ |
|
||||
export async function wxLoginV2( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.wxLoginV2Params, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RLoginBo>('/api/game/auth/loginV2', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/auth/loginV3 */ |
|
||||
export async function loginV3(body: API.LoginReq, options?: { [key: string]: any }) { |
|
||||
return request<API.RLoginBo>('/api/game/auth/loginV3', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/auth/myInviteRecord */ |
|
||||
export async function myInviteRecord(options?: { [key: string]: any }) { |
|
||||
return request<API.RInviteInfo>('/api/game/auth/myInviteRecord', { |
|
||||
method: 'GET', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/auth/rankList */ |
|
||||
export async function rankList( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.rankListParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RRankList>('/api/game/auth/rankList', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/auth/test */ |
|
||||
export async function setInviteCode(options?: { [key: string]: any }) { |
|
||||
return request<API.RVoid>('/api/game/auth/test', { |
|
||||
method: 'GET', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/auth/updateScore */ |
|
||||
export async function updateScore( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.updateScoreParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RVoid>('/api/game/auth/updateScore', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/auth/updateUserInfo */ |
|
||||
export async function updateUserInfo( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.updateUserInfoParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RVoid>('/api/game/auth/updateUserInfo', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
@ -1,93 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/matrix/addWhiteList */ |
|
||||
export async function addWhiteList( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.addWhiteListParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RVoid>('/api/game/matrix/addWhiteList', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/matrix/bindDevice */ |
|
||||
export async function bindDevice( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.bindDeviceParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RString>('/api/game/matrix/bindDevice', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/matrix/getAdvList */ |
|
||||
export async function getAdvList( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.getAdvListParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RListMatrixAdvRecordSimple>('/api/game/matrix/getAdvList', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/matrix/saveAdvRecord */ |
|
||||
export async function saveAdvRecord( |
|
||||
body: API.MatrixAdvRecordEditBo, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RVoid>('/api/game/matrix/saveAdvRecord', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/matrix/saveAdvRecordV2 */ |
|
||||
export async function saveAdvRecordV2( |
|
||||
body: API.MatrixAdvRecordEditBo, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RVoid>('/api/game/matrix/saveAdvRecordV2', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/matrix/whiteList */ |
|
||||
export async function whiteList( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.whiteListParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RBoolean>('/api/game/matrix/whiteList', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
@ -1,81 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/citrus/loginByCode */ |
|
||||
export async function loginByCode(body: API.LoginReq, options?: { [key: string]: any }) { |
|
||||
return request<API.RString>('/api/citrus/loginByCode', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/citrus/loginByPwd */ |
|
||||
export async function loginByPwd(body: API.LoginReq, options?: { [key: string]: any }) { |
|
||||
return request<API.RString>('/api/citrus/loginByPwd', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/citrus/loginByToken */ |
|
||||
export async function loginByToken(body: API.LoginReq, options?: { [key: string]: any }) { |
|
||||
return request<API.RString>('/api/citrus/loginByToken', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/citrus/register/getApp */ |
|
||||
export async function getApp( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.getAppParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RMatrixAppBo>('/api/citrus/register/getApp', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/citrus/register/sendCode */ |
|
||||
export async function sendCode( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.sendCodeParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RVoid>('/api/citrus/register/sendCode', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/citrus/register/submitRegister */ |
|
||||
export async function submitRegister(body: API.RegisterBo, options?: { [key: string]: any }) { |
|
||||
return request<API.RVoid>('/api/citrus/register/submitRegister', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
@ -1,76 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/citrus/user/applyCash */ |
|
||||
export async function applyCash( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.applyCashParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RVoid>('/api/citrus/user/applyCash', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/citrus/user/bindAliPay */ |
|
||||
export async function bindAliPay(body: API.UserBo, options?: { [key: string]: any }) { |
|
||||
return request<API.RVoid>('/api/citrus/user/bindAliPay', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/citrus/user/bindWx */ |
|
||||
export async function bindWx( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.bindWxParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RVoid>('/api/citrus/user/bindWx', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/citrus/user/cashRecords */ |
|
||||
export async function getCashRecord(options?: { [key: string]: any }) { |
|
||||
return request<API.RListCashRecord>('/api/citrus/user/cashRecords', { |
|
||||
method: 'GET', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/citrus/user/current */ |
|
||||
export async function currentUser1(options?: { [key: string]: any }) { |
|
||||
return request<API.RUserBo>('/api/citrus/user/current', { |
|
||||
method: 'GET', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/citrus/user/saveAdvRecordV3 */ |
|
||||
export async function saveAdvRecordV3( |
|
||||
body: API.MatrixAdvRecordEditBo, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RLong>('/api/citrus/user/saveAdvRecordV3', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
@ -1,12 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
// API 更新时间:
|
|
||||
// API 唯一标识:
|
|
||||
import * as pet from './pet'; |
|
||||
import * as store from './store'; |
|
||||
import * as user from './user'; |
|
||||
export default { |
|
||||
pet, |
|
||||
store, |
|
||||
user, |
|
||||
}; |
|
@ -1,153 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** Update an existing pet PUT /pet */ |
|
||||
export async function updatePet(body: API.Pet, options?: { [key: string]: any }) { |
|
||||
return request<any>('/pet', { |
|
||||
method: 'PUT', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Add a new pet to the store POST /pet */ |
|
||||
export async function addPet(body: API.Pet, options?: { [key: string]: any }) { |
|
||||
return request<any>('/pet', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Find pet by ID Returns a single pet GET /pet/${param0} */ |
|
||||
export async function getPetById( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.getPetByIdParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
const { petId: param0, ...queryParams } = params; |
|
||||
return request<API.Pet>(`/pet/${param0}`, { |
|
||||
method: 'GET', |
|
||||
params: { ...queryParams }, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Updates a pet in the store with form data POST /pet/${param0} */ |
|
||||
export async function updatePetWithForm( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.updatePetWithFormParams, |
|
||||
body: { name?: string; status?: string }, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
const { petId: param0, ...queryParams } = params; |
|
||||
const formData = new FormData(); |
|
||||
|
|
||||
Object.keys(body).forEach((ele) => { |
|
||||
const item = (body as any)[ele]; |
|
||||
|
|
||||
if (item !== undefined && item !== null) { |
|
||||
formData.append( |
|
||||
ele, |
|
||||
typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item, |
|
||||
); |
|
||||
} |
|
||||
}); |
|
||||
|
|
||||
return request<any>(`/pet/${param0}`, { |
|
||||
method: 'POST', |
|
||||
params: { ...queryParams }, |
|
||||
data: formData, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Deletes a pet DELETE /pet/${param0} */ |
|
||||
export async function deletePet( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.deletePetParams & { |
|
||||
// header
|
|
||||
api_key?: string; |
|
||||
}, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
const { petId: param0, ...queryParams } = params; |
|
||||
return request<any>(`/pet/${param0}`, { |
|
||||
method: 'DELETE', |
|
||||
headers: {}, |
|
||||
params: { ...queryParams }, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** uploads an image POST /pet/${param0}/uploadImage */ |
|
||||
export async function uploadFile( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.uploadFileParams, |
|
||||
body: { additionalMetadata?: string; file?: string }, |
|
||||
file?: File, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
const { petId: param0, ...queryParams } = params; |
|
||||
const formData = new FormData(); |
|
||||
|
|
||||
if (file) { |
|
||||
formData.append('file', file); |
|
||||
} |
|
||||
|
|
||||
Object.keys(body).forEach((ele) => { |
|
||||
const item = (body as any)[ele]; |
|
||||
|
|
||||
if (item !== undefined && item !== null) { |
|
||||
formData.append( |
|
||||
ele, |
|
||||
typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item, |
|
||||
); |
|
||||
} |
|
||||
}); |
|
||||
|
|
||||
return request<API.ApiResponse>(`/pet/${param0}/uploadImage`, { |
|
||||
method: 'POST', |
|
||||
params: { ...queryParams }, |
|
||||
data: formData, |
|
||||
requestType: 'form', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Finds Pets by status Multiple status values can be provided with comma separated strings GET /pet/findByStatus */ |
|
||||
export async function findPetsByStatus( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.findPetsByStatusParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.Pet[]>('/pet/findByStatus', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Finds Pets by tags Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. GET /pet/findByTags */ |
|
||||
export async function findPetsByTags( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.findPetsByTagsParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.Pet[]>('/pet/findByTags', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
@ -1,48 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** Returns pet inventories by status Returns a map of status codes to quantities GET /store/inventory */ |
|
||||
export async function getInventory(options?: { [key: string]: any }) { |
|
||||
return request<Record<string, any>>('/store/inventory', { |
|
||||
method: 'GET', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Place an order for a pet POST /store/order */ |
|
||||
export async function placeOrder(body: API.Order, options?: { [key: string]: any }) { |
|
||||
return request<API.Order>('/store/order', { |
|
||||
method: 'POST', |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Find purchase order by ID For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions GET /store/order/${param0} */ |
|
||||
export async function getOrderById( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.getOrderByIdParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
const { orderId: param0, ...queryParams } = params; |
|
||||
return request<API.Order>(`/store/order/${param0}`, { |
|
||||
method: 'GET', |
|
||||
params: { ...queryParams }, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Delete purchase order by ID For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors DELETE /store/order/${param0} */ |
|
||||
export async function deleteOrder( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.deleteOrderParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
const { orderId: param0, ...queryParams } = params; |
|
||||
return request<any>(`/store/order/${param0}`, { |
|
||||
method: 'DELETE', |
|
||||
params: { ...queryParams }, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
@ -1,112 +0,0 @@ |
|||||
declare namespace API { |
|
||||
type ApiResponse = { |
|
||||
code?: number; |
|
||||
type?: string; |
|
||||
message?: string; |
|
||||
}; |
|
||||
|
|
||||
type Category = { |
|
||||
id?: number; |
|
||||
name?: string; |
|
||||
}; |
|
||||
|
|
||||
type deleteOrderParams = { |
|
||||
/** ID of the order that needs to be deleted */ |
|
||||
orderId: number; |
|
||||
}; |
|
||||
|
|
||||
type deletePetParams = { |
|
||||
api_key?: string; |
|
||||
/** Pet id to delete */ |
|
||||
petId: number; |
|
||||
}; |
|
||||
|
|
||||
type deleteUserParams = { |
|
||||
/** The name that needs to be deleted */ |
|
||||
username: string; |
|
||||
}; |
|
||||
|
|
||||
type findPetsByStatusParams = { |
|
||||
/** Status values that need to be considered for filter */ |
|
||||
status: ('available' | 'pending' | 'sold')[]; |
|
||||
}; |
|
||||
|
|
||||
type findPetsByTagsParams = { |
|
||||
/** Tags to filter by */ |
|
||||
tags: string[]; |
|
||||
}; |
|
||||
|
|
||||
type getOrderByIdParams = { |
|
||||
/** ID of pet that needs to be fetched */ |
|
||||
orderId: number; |
|
||||
}; |
|
||||
|
|
||||
type getPetByIdParams = { |
|
||||
/** ID of pet to return */ |
|
||||
petId: number; |
|
||||
}; |
|
||||
|
|
||||
type getUserByNameParams = { |
|
||||
/** The name that needs to be fetched. Use user1 for testing. */ |
|
||||
username: string; |
|
||||
}; |
|
||||
|
|
||||
type loginUserParams = { |
|
||||
/** The user name for login */ |
|
||||
username: string; |
|
||||
/** The password for login in clear text */ |
|
||||
password: string; |
|
||||
}; |
|
||||
|
|
||||
type Order = { |
|
||||
id?: number; |
|
||||
petId?: number; |
|
||||
quantity?: number; |
|
||||
shipDate?: string; |
|
||||
/** Order Status */ |
|
||||
status?: 'placed' | 'approved' | 'delivered'; |
|
||||
complete?: boolean; |
|
||||
}; |
|
||||
|
|
||||
type Pet = { |
|
||||
id?: number; |
|
||||
category?: Category; |
|
||||
name: string; |
|
||||
photoUrls: string[]; |
|
||||
tags?: Tag[]; |
|
||||
/** pet status in the store */ |
|
||||
status?: 'available' | 'pending' | 'sold'; |
|
||||
}; |
|
||||
|
|
||||
type Tag = { |
|
||||
id?: number; |
|
||||
name?: string; |
|
||||
}; |
|
||||
|
|
||||
type updatePetWithFormParams = { |
|
||||
/** ID of pet that needs to be updated */ |
|
||||
petId: number; |
|
||||
}; |
|
||||
|
|
||||
type updateUserParams = { |
|
||||
/** name that need to be updated */ |
|
||||
username: string; |
|
||||
}; |
|
||||
|
|
||||
type uploadFileParams = { |
|
||||
/** ID of pet to update */ |
|
||||
petId: number; |
|
||||
}; |
|
||||
|
|
||||
type User = { |
|
||||
id?: number; |
|
||||
username?: string; |
|
||||
firstName?: string; |
|
||||
lastName?: string; |
|
||||
email?: string; |
|
||||
password?: string; |
|
||||
phone?: string; |
|
||||
/** User Status */ |
|
||||
userStatus?: number; |
|
||||
}; |
|
||||
} |
|
@ -1,100 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** Create user This can only be done by the logged in user. POST /user */ |
|
||||
export async function createUser(body: API.User, options?: { [key: string]: any }) { |
|
||||
return request<any>('/user', { |
|
||||
method: 'POST', |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Get user by user name GET /user/${param0} */ |
|
||||
export async function getUserByName( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.getUserByNameParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
const { username: param0, ...queryParams } = params; |
|
||||
return request<API.User>(`/user/${param0}`, { |
|
||||
method: 'GET', |
|
||||
params: { ...queryParams }, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Updated user This can only be done by the logged in user. PUT /user/${param0} */ |
|
||||
export async function updateUser( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.updateUserParams, |
|
||||
body: API.User, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
const { username: param0, ...queryParams } = params; |
|
||||
return request<any>(`/user/${param0}`, { |
|
||||
method: 'PUT', |
|
||||
params: { ...queryParams }, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Delete user This can only be done by the logged in user. DELETE /user/${param0} */ |
|
||||
export async function deleteUser( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.deleteUserParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
const { username: param0, ...queryParams } = params; |
|
||||
return request<any>(`/user/${param0}`, { |
|
||||
method: 'DELETE', |
|
||||
params: { ...queryParams }, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Creates list of users with given input array POST /user/createWithArray */ |
|
||||
export async function createUsersWithArrayInput( |
|
||||
body: API.User[], |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<any>('/user/createWithArray', { |
|
||||
method: 'POST', |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Creates list of users with given input array POST /user/createWithList */ |
|
||||
export async function createUsersWithListInput(body: API.User[], options?: { [key: string]: any }) { |
|
||||
return request<any>('/user/createWithList', { |
|
||||
method: 'POST', |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Logs user into the system GET /user/login */ |
|
||||
export async function loginUser( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.loginUserParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<string>('/user/login', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** Logs out current logged in user session GET /user/logout */ |
|
||||
export async function logoutUser(options?: { [key: string]: any }) { |
|
||||
return request<any>('/user/logout', { |
|
||||
method: 'GET', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
Loading…
Reference in new issue