nili
5 months ago
84 changed files with 11863 additions and 10789 deletions
@ -0,0 +1,15 @@ |
|||
{ |
|||
"files": { |
|||
"main.css": "/static/css/main.7b0b8729.css", |
|||
"main.js": "/static/js/main.c287986b.js", |
|||
"static/js/453.1d641cba.chunk.js": "/static/js/453.1d641cba.chunk.js", |
|||
"index.html": "/index.html", |
|||
"main.7b0b8729.css.map": "/static/css/main.7b0b8729.css.map", |
|||
"main.c287986b.js.map": "/static/js/main.c287986b.js.map", |
|||
"453.1d641cba.chunk.js.map": "/static/js/453.1d641cba.chunk.js.map" |
|||
}, |
|||
"entrypoints": [ |
|||
"static/css/main.7b0b8729.css", |
|||
"static/js/main.c287986b.js" |
|||
] |
|||
} |
After Width: | Height: | Size: 3.8 KiB |
@ -0,0 +1 @@ |
|||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.c287986b.js"></script><link href="/static/css/main.7b0b8729.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 9.4 KiB |
@ -0,0 +1,25 @@ |
|||
{ |
|||
"short_name": "React App", |
|||
"name": "Create React App Sample", |
|||
"icons": [ |
|||
{ |
|||
"src": "favicon.ico", |
|||
"sizes": "64x64 32x32 24x24 16x16", |
|||
"type": "image/x-icon" |
|||
}, |
|||
{ |
|||
"src": "logo192.png", |
|||
"type": "image/png", |
|||
"sizes": "192x192" |
|||
}, |
|||
{ |
|||
"src": "logo512.png", |
|||
"type": "image/png", |
|||
"sizes": "512x512" |
|||
} |
|||
], |
|||
"start_url": ".", |
|||
"display": "standalone", |
|||
"theme_color": "#000000", |
|||
"background_color": "#ffffff" |
|||
} |
@ -0,0 +1,3 @@ |
|||
# https://www.robotstxt.org/robotstxt.html |
|||
User-agent: * |
|||
Disallow: |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,2 @@ |
|||
"use strict";(self.webpackChunkpomelo=self.webpackChunkpomelo||[]).push([[453],{453:(e,t,n)=>{n.r(t),n.d(t,{getCLS:()=>y,getFCP:()=>g,getFID:()=>C,getLCP:()=>P,getTTFB:()=>D});var i,r,a,o,u=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},f=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},s=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},m=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},v=-1,p=function(){return"hidden"===document.visibilityState?0:1/0},d=function(){f((function(e){var t=e.timeStamp;v=t}),!0)},l=function(){return v<0&&(v=p(),d(),s((function(){setTimeout((function(){v=p(),d()}),0)}))),{get firstHiddenTime(){return v}}},g=function(e,t){var n,i=l(),r=u("FCP"),a=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},o=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],f=o?null:c("paint",a);(o||f)&&(n=m(e,r,t),o&&a(o),s((function(i){r=u("FCP"),n=m(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))},h=!1,T=-1,y=function(e,t){h||(g((function(e){T=e.value})),h=!0);var n,i=function(t){T>-1&&e(t)},r=u("CLS",0),a=0,o=[],v=function(e){if(!e.hadRecentInput){var t=o[0],i=o[o.length-1];a&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e]),a>r.value&&(r.value=a,r.entries=o,n())}},p=c("layout-shift",v);p&&(n=m(i,r,t),f((function(){p.takeRecords().map(v),n(!0)})),s((function(){a=0,T=-1,r=u("CLS",0),n=m(i,r,t)})))},E={passive:!0,capture:!0},w=new Date,L=function(e,t){i||(i=t,r=e,a=new Date,F(removeEventListener),S())},S=function(){if(r>=0&&r<a-w){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+r};o.forEach((function(t){t(e)})),o=[]}},b=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){L(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,E),removeEventListener("pointercancel",i,E)};addEventListener("pointerup",n,E),addEventListener("pointercancel",i,E)}(t,e):L(t,e)}},F=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,b,E)}))},C=function(e,t){var n,a=l(),v=u("FID"),p=function(e){e.startTime<a.firstHiddenTime&&(v.value=e.processingStart-e.startTime,v.entries.push(e),n(!0))},d=c("first-input",p);n=m(e,v,t),d&&f((function(){d.takeRecords().map(p),d.disconnect()}),!0),d&&s((function(){var a;v=u("FID"),n=m(e,v,t),o=[],r=-1,i=null,F(addEventListener),a=p,o.push(a),S()}))},k={},P=function(e,t){var n,i=l(),r=u("LCP"),a=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e),n())},o=c("largest-contentful-paint",a);if(o){n=m(e,r,t);var v=function(){k[r.id]||(o.takeRecords().map(a),o.disconnect(),k[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,v,{once:!0,capture:!0})})),f(v,!0),s((function(i){r=u("LCP"),n=m(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,k[r.id]=!0,n(!0)}))}))}))}},D=function(e){var t,n=u("TTFB");t=function(){try{var t=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var n in e)"navigationStart"!==n&&"toJSON"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0||n.value>performance.now())return;n.entries=[t],e(n)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("load",(function(){return setTimeout(t,0)}))}}}]); |
|||
//# sourceMappingURL=453.1d641cba.chunk.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,89 @@ |
|||
/*! |
|||
Copyright (c) 2018 Jed Watson. |
|||
Licensed under the MIT License (MIT), see |
|||
http://jedwatson.github.io/classnames |
|||
*/ |
|||
|
|||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ |
|||
|
|||
/** |
|||
* @license React |
|||
* react-dom.production.min.js |
|||
* |
|||
* Copyright (c) Facebook, Inc. and its affiliates. |
|||
* |
|||
* This source code is licensed under the MIT license found in the |
|||
* LICENSE file in the root directory of this source tree. |
|||
*/ |
|||
|
|||
/** |
|||
* @license React |
|||
* react-is.production.min.js |
|||
* |
|||
* Copyright (c) Facebook, Inc. and its affiliates. |
|||
* |
|||
* This source code is licensed under the MIT license found in the |
|||
* LICENSE file in the root directory of this source tree. |
|||
*/ |
|||
|
|||
/** |
|||
* @license React |
|||
* react-jsx-runtime.production.min.js |
|||
* |
|||
* Copyright (c) Facebook, Inc. and its affiliates. |
|||
* |
|||
* This source code is licensed under the MIT license found in the |
|||
* LICENSE file in the root directory of this source tree. |
|||
*/ |
|||
|
|||
/** |
|||
* @license React |
|||
* react.production.min.js |
|||
* |
|||
* Copyright (c) Facebook, Inc. and its affiliates. |
|||
* |
|||
* This source code is licensed under the MIT license found in the |
|||
* LICENSE file in the root directory of this source tree. |
|||
*/ |
|||
|
|||
/** |
|||
* @license React |
|||
* scheduler.production.min.js |
|||
* |
|||
* Copyright (c) Facebook, Inc. and its affiliates. |
|||
* |
|||
* This source code is licensed under the MIT license found in the |
|||
* LICENSE file in the root directory of this source tree. |
|||
*/ |
|||
|
|||
/** |
|||
* @license React |
|||
* use-sync-external-store-shim.production.min.js |
|||
* |
|||
* Copyright (c) Facebook, Inc. and its affiliates. |
|||
* |
|||
* This source code is licensed under the MIT license found in the |
|||
* LICENSE file in the root directory of this source tree. |
|||
*/ |
|||
|
|||
/** |
|||
* @remix-run/router v1.16.0 |
|||
* |
|||
* Copyright (c) Remix Software Inc. |
|||
* |
|||
* This source code is licensed under the MIT license found in the |
|||
* LICENSE.md file in the root directory of this source tree. |
|||
* |
|||
* @license MIT |
|||
*/ |
|||
|
|||
/** |
|||
* React Router v6.23.0 |
|||
* |
|||
* Copyright (c) Remix Software Inc. |
|||
* |
|||
* This source code is licensed under the MIT license found in the |
|||
* LICENSE.md file in the root directory of this source tree. |
|||
* |
|||
* @license MIT |
|||
*/ |
File diff suppressed because one or more lines are too long
@ -0,0 +1,7 @@ |
|||
{ |
|||
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", |
|||
"spaces": 2, |
|||
"generator-cli": { |
|||
"version": "7.5.0" |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,168 @@ |
|||
// RegisterPage.js
|
|||
import { Button, Form, Input, Toast } from "antd-mobile"; |
|||
import React, { useEffect } from "react"; |
|||
import { useParams } from "react-router-dom"; |
|||
|
|||
import { api } from "./api"; |
|||
import { RegisterBo } from "./api/generated/model/register-bo"; |
|||
import { MatrixAppBo } from "./api/generated/model/matrix-app-bo"; |
|||
|
|||
const RegisterPage = () => { |
|||
const [count, setCount] = React.useState(60); |
|||
const [app, setApp] = React.useState<MatrixAppBo>(); |
|||
const [form] = Form.useForm(); |
|||
|
|||
const { inviteCode } = useParams(); |
|||
|
|||
const onFinish = async (values: RegisterBo) => { |
|||
const data = form.getFieldsValue(); |
|||
if (data.pwd !== data.confirmPassword) { |
|||
Toast.show({ |
|||
content: "密码不一致,请重新输入", |
|||
}); |
|||
return; |
|||
} |
|||
const res = await api.submitRegister(values); |
|||
if (res.data.code !== 0) { |
|||
Toast.show({ |
|||
content: res.data.message, |
|||
}); |
|||
return; |
|||
} |
|||
Toast.show({ |
|||
content: "注册成功", |
|||
}); |
|||
}; |
|||
|
|||
const send = async () => { |
|||
const values = form.getFieldsValue(); |
|||
const mobile: string = values.mobile; |
|||
if (!mobile) { |
|||
Toast.show({ |
|||
content: "请输入手机号", |
|||
}); |
|||
return; |
|||
} |
|||
const res = await api.sendCode(mobile); |
|||
if (res.data.code !== 0) { |
|||
Toast.show({ |
|||
content: res.data.message, |
|||
}); |
|||
return; |
|||
} |
|||
Toast.show({ |
|||
content: "验证码发送成功:" + mobile, |
|||
}); |
|||
startCountdown(); |
|||
}; |
|||
|
|||
const startCountdown = () => { |
|||
setCount(60); |
|||
const timer = setInterval(() => { |
|||
setCount((count) => count - 1); |
|||
}, 1000); |
|||
setTimeout(() => { |
|||
clearInterval(timer); |
|||
setCount(60); |
|||
}, 60000); |
|||
}; |
|||
|
|||
const getApp = async () => { |
|||
if (!inviteCode) { |
|||
return; |
|||
} |
|||
const res = await api.getApp(inviteCode); |
|||
if (res.data.code !== 0) { |
|||
return; |
|||
} |
|||
setApp(res.data.data); |
|||
}; |
|||
|
|||
useEffect(() => { |
|||
getApp(); |
|||
}, []); |
|||
|
|||
return ( |
|||
<div> |
|||
<p style={{ textAlign: "center", fontSize: 20, fontWeight: "bold" }}> |
|||
{app?.name} |
|||
</p> |
|||
<Form |
|||
style={{ maxWidth: 500, margin: "auto" }} |
|||
onFinish={onFinish} |
|||
layout="horizontal" |
|||
mode="card" |
|||
form={form} |
|||
initialValues={{ inviteCode: inviteCode }} |
|||
> |
|||
<Form.Item |
|||
name="mobile" |
|||
label="手机号" |
|||
rules={[ |
|||
{ required: true, message: "请输入手机号" }, |
|||
{ pattern: /^1\d{10}$/, message: "手机号格式错误" }, |
|||
]} |
|||
> |
|||
<Input placeholder="请输入手机号" maxLength={11} /> |
|||
</Form.Item> |
|||
<Form.Item |
|||
name="code" |
|||
label="短信验证码" |
|||
extra={ |
|||
<Button |
|||
size="small" |
|||
color="primary" |
|||
onClick={send} |
|||
disabled={count !== 60} |
|||
> |
|||
{count === 60 ? "发送验证码" : `${count}s`} |
|||
</Button> |
|||
} |
|||
rules={[{ required: true, message: "请输入短信验证码!" }]} |
|||
> |
|||
<Input /> |
|||
</Form.Item> |
|||
<Form.Item |
|||
name="pwd" |
|||
label="密码" |
|||
rules={[{ required: true, message: "请输入密码" }]} |
|||
> |
|||
<Input |
|||
minLength={8} |
|||
type="password" |
|||
placeholder="请输入密码,最少8位" |
|||
/> |
|||
</Form.Item> |
|||
<Form.Item |
|||
name="confirmPassword" |
|||
label="确认密码" |
|||
rules={[ |
|||
{ required: true, message: "请再次输入密码" }, |
|||
{ |
|||
validator: (rules, value, callback) => { |
|||
let pwd = form.getFieldValue("pwd"); |
|||
if (pwd && pwd !== value) { |
|||
callback("密码不一致"); |
|||
} else { |
|||
callback(); |
|||
} |
|||
}, |
|||
}, |
|||
]} |
|||
> |
|||
<Input minLength={8} type="password" placeholder="请再次输入密码" /> |
|||
</Form.Item> |
|||
<Form.Item name="inviteCode" label="邀请码" disabled> |
|||
<Input /> |
|||
</Form.Item> |
|||
<Form.Item> |
|||
<Button color="primary" block type="submit"> |
|||
注册 |
|||
</Button> |
|||
</Form.Item> |
|||
</Form> |
|||
</div> |
|||
); |
|||
}; |
|||
|
|||
export default RegisterPage; |
@ -0,0 +1,4 @@ |
|||
wwwroot/*.js |
|||
node_modules |
|||
typings |
|||
dist |
@ -0,0 +1 @@ |
|||
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm |
@ -0,0 +1,23 @@ |
|||
# OpenAPI Generator Ignore |
|||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator |
|||
|
|||
# Use this file to prevent files from being overwritten by the generator. |
|||
# The patterns follow closely to .gitignore or .dockerignore. |
|||
|
|||
# As an example, the C# client generator defines ApiClient.cs. |
|||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: |
|||
#ApiClient.cs |
|||
|
|||
# You can match any string of characters against a directory, file or extension with a single asterisk (*): |
|||
#foo/*/qux |
|||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux |
|||
|
|||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**): |
|||
#foo/**/qux |
|||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux |
|||
|
|||
# You can also negate patterns with an exclamation (!). |
|||
# For example, you can ignore all files in a docs folder with the file extension .md: |
|||
#docs/*.md |
|||
# Then explicitly reverse the ignore rule for a single file: |
|||
#!docs/README.md |
@ -0,0 +1,59 @@ |
|||
.gitignore |
|||
.npmignore |
|||
api.ts |
|||
api/admin-api.ts |
|||
api/app-controller-api.ts |
|||
api/device-api.ts |
|||
api/login-controller-api.ts |
|||
api/matrix-controller-api.ts |
|||
api/register-controller-api.ts |
|||
base.ts |
|||
common.ts |
|||
configuration.ts |
|||
git_push.sh |
|||
index.ts |
|||
model/add-mock-schedule-req.ts |
|||
model/adv-record-query.ts |
|||
model/app-info.ts |
|||
model/current-user.ts |
|||
model/date-income.ts |
|||
model/income-query.ts |
|||
model/index.ts |
|||
model/invite-info.ts |
|||
model/invite-user-info.ts |
|||
model/login-bo.ts |
|||
model/login-req.ts |
|||
model/matrix-admin-bo.ts |
|||
model/matrix-admin-device.ts |
|||
model/matrix-admin.ts |
|||
model/matrix-adv-record-bo.ts |
|||
model/matrix-adv-record-edit-bo.ts |
|||
model/matrix-adv-record-simple.ts |
|||
model/matrix-app-bo.ts |
|||
model/matrix-app.ts |
|||
model/matrix-mock-schedule.ts |
|||
model/matrix-white-device.ts |
|||
model/overview-bo.ts |
|||
model/page-result-matrix-adv-record-bo.ts |
|||
model/rank-list.ts |
|||
model/rapp-info.ts |
|||
model/rboolean.ts |
|||
model/rcurrent-user.ts |
|||
model/register-bo.ts |
|||
model/rinvite-info.ts |
|||
model/rlist-date-income.ts |
|||
model/rlist-matrix-admin-bo.ts |
|||
model/rlist-matrix-admin-device.ts |
|||
model/rlist-matrix-adv-record-simple.ts |
|||
model/rlist-matrix-app.ts |
|||
model/rlist-matrix-mock-schedule.ts |
|||
model/rlist-matrix-white-device.ts |
|||
model/rlogin-bo.ts |
|||
model/rmatrix-admin.ts |
|||
model/rmatrix-app-bo.ts |
|||
model/roverview-bo.ts |
|||
model/rpage-result-matrix-adv-record-bo.ts |
|||
model/rrank-list.ts |
|||
model/rstring.ts |
|||
model/rvoid.ts |
|||
model/user-info.ts |
@ -0,0 +1 @@ |
|||
7.5.0 |
@ -0,0 +1,23 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
export * from './api/admin-api'; |
|||
export * from './api/app-controller-api'; |
|||
export * from './api/device-api'; |
|||
export * from './api/login-controller-api'; |
|||
export * from './api/matrix-controller-api'; |
|||
export * from './api/register-controller-api'; |
|||
|
File diff suppressed because it is too large
@ -0,0 +1,128 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
import type { Configuration } from '../configuration'; |
|||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; |
|||
import globalAxios from 'axios'; |
|||
// Some imports not used depending on template conditions
|
|||
// @ts-ignore
|
|||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; |
|||
// @ts-ignore
|
|||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; |
|||
// @ts-ignore
|
|||
import { RAppInfo } from '../model'; |
|||
/** |
|||
* AppControllerApi - axios parameter creator |
|||
* @export |
|||
*/ |
|||
export const AppControllerApiAxiosParamCreator = function (configuration?: Configuration) { |
|||
return { |
|||
/** |
|||
* |
|||
* @param {string} [appId] |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
getAppInfo: async (appId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
const localVarPath = `/api/game/app/info`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (appId !== undefined) { |
|||
localVarQueryParameter['appId'] = appId; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
} |
|||
}; |
|||
|
|||
/** |
|||
* AppControllerApi - functional programming interface |
|||
* @export |
|||
*/ |
|||
export const AppControllerApiFp = function(configuration?: Configuration) { |
|||
const localVarAxiosParamCreator = AppControllerApiAxiosParamCreator(configuration) |
|||
return { |
|||
/** |
|||
* |
|||
* @param {string} [appId] |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async getAppInfo(appId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RAppInfo>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.getAppInfo(appId, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['AppControllerApi.getAppInfo']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
} |
|||
}; |
|||
|
|||
/** |
|||
* AppControllerApi - factory interface |
|||
* @export |
|||
*/ |
|||
export const AppControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { |
|||
const localVarFp = AppControllerApiFp(configuration) |
|||
return { |
|||
/** |
|||
* |
|||
* @param {string} [appId] |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
getAppInfo(appId?: string, options?: any): AxiosPromise<RAppInfo> { |
|||
return localVarFp.getAppInfo(appId, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
}; |
|||
}; |
|||
|
|||
/** |
|||
* AppControllerApi - object-oriented interface |
|||
* @export |
|||
* @class AppControllerApi |
|||
* @extends {BaseAPI} |
|||
*/ |
|||
export class AppControllerApi extends BaseAPI { |
|||
/** |
|||
* |
|||
* @param {string} [appId] |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof AppControllerApi |
|||
*/ |
|||
public getAppInfo(appId?: string, options?: RawAxiosRequestConfig) { |
|||
return AppControllerApiFp(this.configuration).getAppInfo(appId, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
} |
|||
|
@ -0,0 +1,477 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
import type { Configuration } from '../configuration'; |
|||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; |
|||
import globalAxios from 'axios'; |
|||
// Some imports not used depending on template conditions
|
|||
// @ts-ignore
|
|||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; |
|||
// @ts-ignore
|
|||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; |
|||
// @ts-ignore
|
|||
import { IncomeQuery } from '../model'; |
|||
// @ts-ignore
|
|||
import { RListDateIncome } from '../model'; |
|||
// @ts-ignore
|
|||
import { RListMatrixAdminDevice } from '../model'; |
|||
// @ts-ignore
|
|||
import { ROverviewBo } from '../model'; |
|||
// @ts-ignore
|
|||
import { RString } from '../model'; |
|||
// @ts-ignore
|
|||
import { RVoid } from '../model'; |
|||
/** |
|||
* DeviceApi - axios parameter creator |
|||
* @export |
|||
*/ |
|||
export const DeviceApiAxiosParamCreator = function (configuration?: Configuration) { |
|||
return { |
|||
/** |
|||
* |
|||
* @param {number} date |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
calc: async (date: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'date' is not null or undefined
|
|||
assertParamExists('calc', 'date', date) |
|||
const localVarPath = `/api/admin/device/calc`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (date !== undefined) { |
|||
localVarQueryParameter['date'] = date; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} appCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
deviceList: async (appCode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'appCode' is not null or undefined
|
|||
assertParamExists('deviceList', 'appCode', appCode) |
|||
const localVarPath = `/api/admin/device/list`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (appCode !== undefined) { |
|||
localVarQueryParameter['appCode'] = appCode; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {IncomeQuery} incomeQuery |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
incomeDaily1: async (incomeQuery: IncomeQuery, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'incomeQuery' is not null or undefined
|
|||
assertParamExists('incomeDaily1', 'incomeQuery', incomeQuery) |
|||
const localVarPath = `/api/admin/device/incomeDaily`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
|
|||
|
|||
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
localVarRequestOptions.data = serializeDataIfNeeded(incomeQuery, localVarRequestOptions, configuration) |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} [appCode] |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
incomeOverview1: async (appCode?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
const localVarPath = `/api/admin/device/incomeOverview`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (appCode !== undefined) { |
|||
localVarQueryParameter['appCode'] = appCode; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
offline: async (deviceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'deviceId' is not null or undefined
|
|||
assertParamExists('offline', 'deviceId', deviceId) |
|||
const localVarPath = `/api/admin/device/offline`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (deviceId !== undefined) { |
|||
localVarQueryParameter['deviceId'] = deviceId; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
online: async (deviceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'deviceId' is not null or undefined
|
|||
assertParamExists('online', 'deviceId', deviceId) |
|||
const localVarPath = `/api/admin/device/online`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (deviceId !== undefined) { |
|||
localVarQueryParameter['deviceId'] = deviceId; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
} |
|||
}; |
|||
|
|||
/** |
|||
* DeviceApi - functional programming interface |
|||
* @export |
|||
*/ |
|||
export const DeviceApiFp = function(configuration?: Configuration) { |
|||
const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration) |
|||
return { |
|||
/** |
|||
* |
|||
* @param {number} date |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async calc(date: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RVoid>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.calc(date, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['DeviceApi.calc']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} appCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async deviceList(appCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RListMatrixAdminDevice>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.deviceList(appCode, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['DeviceApi.deviceList']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {IncomeQuery} incomeQuery |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async incomeDaily1(incomeQuery: IncomeQuery, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RListDateIncome>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.incomeDaily1(incomeQuery, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['DeviceApi.incomeDaily1']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} [appCode] |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async incomeOverview1(appCode?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ROverviewBo>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.incomeOverview1(appCode, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['DeviceApi.incomeOverview1']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async offline(deviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RString>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.offline(deviceId, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['DeviceApi.offline']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async online(deviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RString>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.online(deviceId, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['DeviceApi.online']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
} |
|||
}; |
|||
|
|||
/** |
|||
* DeviceApi - factory interface |
|||
* @export |
|||
*/ |
|||
export const DeviceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { |
|||
const localVarFp = DeviceApiFp(configuration) |
|||
return { |
|||
/** |
|||
* |
|||
* @param {number} date |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
calc(date: number, options?: any): AxiosPromise<RVoid> { |
|||
return localVarFp.calc(date, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} appCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
deviceList(appCode: string, options?: any): AxiosPromise<RListMatrixAdminDevice> { |
|||
return localVarFp.deviceList(appCode, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {IncomeQuery} incomeQuery |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
incomeDaily1(incomeQuery: IncomeQuery, options?: any): AxiosPromise<RListDateIncome> { |
|||
return localVarFp.incomeDaily1(incomeQuery, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} [appCode] |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
incomeOverview1(appCode?: string, options?: any): AxiosPromise<ROverviewBo> { |
|||
return localVarFp.incomeOverview1(appCode, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
offline(deviceId: string, options?: any): AxiosPromise<RString> { |
|||
return localVarFp.offline(deviceId, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
online(deviceId: string, options?: any): AxiosPromise<RString> { |
|||
return localVarFp.online(deviceId, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
}; |
|||
}; |
|||
|
|||
/** |
|||
* DeviceApi - object-oriented interface |
|||
* @export |
|||
* @class DeviceApi |
|||
* @extends {BaseAPI} |
|||
*/ |
|||
export class DeviceApi extends BaseAPI { |
|||
/** |
|||
* |
|||
* @param {number} date |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof DeviceApi |
|||
*/ |
|||
public calc(date: number, options?: RawAxiosRequestConfig) { |
|||
return DeviceApiFp(this.configuration).calc(date, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {string} appCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof DeviceApi |
|||
*/ |
|||
public deviceList(appCode: string, options?: RawAxiosRequestConfig) { |
|||
return DeviceApiFp(this.configuration).deviceList(appCode, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {IncomeQuery} incomeQuery |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof DeviceApi |
|||
*/ |
|||
public incomeDaily1(incomeQuery: IncomeQuery, options?: RawAxiosRequestConfig) { |
|||
return DeviceApiFp(this.configuration).incomeDaily1(incomeQuery, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {string} [appCode] |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof DeviceApi |
|||
*/ |
|||
public incomeOverview1(appCode?: string, options?: RawAxiosRequestConfig) { |
|||
return DeviceApiFp(this.configuration).incomeOverview1(appCode, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof DeviceApi |
|||
*/ |
|||
public offline(deviceId: string, options?: RawAxiosRequestConfig) { |
|||
return DeviceApiFp(this.configuration).offline(deviceId, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof DeviceApi |
|||
*/ |
|||
public online(deviceId: string, options?: RawAxiosRequestConfig) { |
|||
return DeviceApiFp(this.configuration).online(deviceId, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
} |
|||
|
@ -0,0 +1,701 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
import type { Configuration } from '../configuration'; |
|||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; |
|||
import globalAxios from 'axios'; |
|||
// Some imports not used depending on template conditions
|
|||
// @ts-ignore
|
|||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; |
|||
// @ts-ignore
|
|||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; |
|||
// @ts-ignore
|
|||
import { LoginReq } from '../model'; |
|||
// @ts-ignore
|
|||
import { RCurrentUser } from '../model'; |
|||
// @ts-ignore
|
|||
import { RInviteInfo } from '../model'; |
|||
// @ts-ignore
|
|||
import { RLoginBo } from '../model'; |
|||
// @ts-ignore
|
|||
import { RRankList } from '../model'; |
|||
// @ts-ignore
|
|||
import { RString } from '../model'; |
|||
// @ts-ignore
|
|||
import { RVoid } from '../model'; |
|||
/** |
|||
* LoginControllerApi - axios parameter creator |
|||
* @export |
|||
*/ |
|||
export const LoginControllerApiAxiosParamCreator = function (configuration?: Configuration) { |
|||
return { |
|||
/** |
|||
* |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
currentUser: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
const localVarPath = `/api/game/auth/current`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {LoginReq} loginReq |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
loginV3: async (loginReq: LoginReq, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'loginReq' is not null or undefined
|
|||
assertParamExists('loginV3', 'loginReq', loginReq) |
|||
const localVarPath = `/api/game/auth/loginV3`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
|
|||
|
|||
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
localVarRequestOptions.data = serializeDataIfNeeded(loginReq, localVarRequestOptions, configuration) |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
myInviteRecord: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
const localVarPath = `/api/game/auth/myInviteRecord`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {number} size |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
rankList: async (size: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'size' is not null or undefined
|
|||
assertParamExists('rankList', 'size', size) |
|||
const localVarPath = `/api/game/auth/rankList`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (size !== undefined) { |
|||
localVarQueryParameter['size'] = size; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
setInviteCode: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
const localVarPath = `/api/game/auth/test`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {number} score |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
updateScore: async (score: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'score' is not null or undefined
|
|||
assertParamExists('updateScore', 'score', score) |
|||
const localVarPath = `/api/game/auth/updateScore`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (score !== undefined) { |
|||
localVarQueryParameter['score'] = score; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} rawData |
|||
* @param {string} signature |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
updateUserInfo: async (rawData: string, signature: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'rawData' is not null or undefined
|
|||
assertParamExists('updateUserInfo', 'rawData', rawData) |
|||
// verify required parameter 'signature' is not null or undefined
|
|||
assertParamExists('updateUserInfo', 'signature', signature) |
|||
const localVarPath = `/api/game/auth/updateUserInfo`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (rawData !== undefined) { |
|||
localVarQueryParameter['rawData'] = rawData; |
|||
} |
|||
|
|||
if (signature !== undefined) { |
|||
localVarQueryParameter['signature'] = signature; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} code |
|||
* @param {string} appId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
wxLogin: async (code: string, appId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'code' is not null or undefined
|
|||
assertParamExists('wxLogin', 'code', code) |
|||
// verify required parameter 'appId' is not null or undefined
|
|||
assertParamExists('wxLogin', 'appId', appId) |
|||
const localVarPath = `/api/game/auth/login`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (code !== undefined) { |
|||
localVarQueryParameter['code'] = code; |
|||
} |
|||
|
|||
if (appId !== undefined) { |
|||
localVarQueryParameter['appId'] = appId; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} code |
|||
* @param {string} appId |
|||
* @param {string} [inviteCode] |
|||
* @param {string} [rawData] |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
wxLoginV2: async (code: string, appId: string, inviteCode?: string, rawData?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'code' is not null or undefined
|
|||
assertParamExists('wxLoginV2', 'code', code) |
|||
// verify required parameter 'appId' is not null or undefined
|
|||
assertParamExists('wxLoginV2', 'appId', appId) |
|||
const localVarPath = `/api/game/auth/loginV2`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (code !== undefined) { |
|||
localVarQueryParameter['code'] = code; |
|||
} |
|||
|
|||
if (appId !== undefined) { |
|||
localVarQueryParameter['appId'] = appId; |
|||
} |
|||
|
|||
if (inviteCode !== undefined) { |
|||
localVarQueryParameter['inviteCode'] = inviteCode; |
|||
} |
|||
|
|||
if (rawData !== undefined) { |
|||
localVarQueryParameter['rawData'] = rawData; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
} |
|||
}; |
|||
|
|||
/** |
|||
* LoginControllerApi - functional programming interface |
|||
* @export |
|||
*/ |
|||
export const LoginControllerApiFp = function(configuration?: Configuration) { |
|||
const localVarAxiosParamCreator = LoginControllerApiAxiosParamCreator(configuration) |
|||
return { |
|||
/** |
|||
* |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async currentUser(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RCurrentUser>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.currentUser(options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['LoginControllerApi.currentUser']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {LoginReq} loginReq |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async loginV3(loginReq: LoginReq, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RLoginBo>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.loginV3(loginReq, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['LoginControllerApi.loginV3']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async myInviteRecord(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RInviteInfo>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.myInviteRecord(options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['LoginControllerApi.myInviteRecord']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {number} size |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async rankList(size: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RRankList>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.rankList(size, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['LoginControllerApi.rankList']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async setInviteCode(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RVoid>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.setInviteCode(options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['LoginControllerApi.setInviteCode']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {number} score |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async updateScore(score: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RVoid>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.updateScore(score, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['LoginControllerApi.updateScore']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} rawData |
|||
* @param {string} signature |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async updateUserInfo(rawData: string, signature: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RVoid>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserInfo(rawData, signature, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['LoginControllerApi.updateUserInfo']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} code |
|||
* @param {string} appId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async wxLogin(code: string, appId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RString>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.wxLogin(code, appId, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['LoginControllerApi.wxLogin']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} code |
|||
* @param {string} appId |
|||
* @param {string} [inviteCode] |
|||
* @param {string} [rawData] |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async wxLoginV2(code: string, appId: string, inviteCode?: string, rawData?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RLoginBo>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.wxLoginV2(code, appId, inviteCode, rawData, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['LoginControllerApi.wxLoginV2']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
} |
|||
}; |
|||
|
|||
/** |
|||
* LoginControllerApi - factory interface |
|||
* @export |
|||
*/ |
|||
export const LoginControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { |
|||
const localVarFp = LoginControllerApiFp(configuration) |
|||
return { |
|||
/** |
|||
* |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
currentUser(options?: any): AxiosPromise<RCurrentUser> { |
|||
return localVarFp.currentUser(options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {LoginReq} loginReq |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
loginV3(loginReq: LoginReq, options?: any): AxiosPromise<RLoginBo> { |
|||
return localVarFp.loginV3(loginReq, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
myInviteRecord(options?: any): AxiosPromise<RInviteInfo> { |
|||
return localVarFp.myInviteRecord(options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {number} size |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
rankList(size: number, options?: any): AxiosPromise<RRankList> { |
|||
return localVarFp.rankList(size, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
setInviteCode(options?: any): AxiosPromise<RVoid> { |
|||
return localVarFp.setInviteCode(options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {number} score |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
updateScore(score: number, options?: any): AxiosPromise<RVoid> { |
|||
return localVarFp.updateScore(score, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} rawData |
|||
* @param {string} signature |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
updateUserInfo(rawData: string, signature: string, options?: any): AxiosPromise<RVoid> { |
|||
return localVarFp.updateUserInfo(rawData, signature, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} code |
|||
* @param {string} appId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
wxLogin(code: string, appId: string, options?: any): AxiosPromise<RString> { |
|||
return localVarFp.wxLogin(code, appId, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} code |
|||
* @param {string} appId |
|||
* @param {string} [inviteCode] |
|||
* @param {string} [rawData] |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
wxLoginV2(code: string, appId: string, inviteCode?: string, rawData?: string, options?: any): AxiosPromise<RLoginBo> { |
|||
return localVarFp.wxLoginV2(code, appId, inviteCode, rawData, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
}; |
|||
}; |
|||
|
|||
/** |
|||
* LoginControllerApi - object-oriented interface |
|||
* @export |
|||
* @class LoginControllerApi |
|||
* @extends {BaseAPI} |
|||
*/ |
|||
export class LoginControllerApi extends BaseAPI { |
|||
/** |
|||
* |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof LoginControllerApi |
|||
*/ |
|||
public currentUser(options?: RawAxiosRequestConfig) { |
|||
return LoginControllerApiFp(this.configuration).currentUser(options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {LoginReq} loginReq |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof LoginControllerApi |
|||
*/ |
|||
public loginV3(loginReq: LoginReq, options?: RawAxiosRequestConfig) { |
|||
return LoginControllerApiFp(this.configuration).loginV3(loginReq, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof LoginControllerApi |
|||
*/ |
|||
public myInviteRecord(options?: RawAxiosRequestConfig) { |
|||
return LoginControllerApiFp(this.configuration).myInviteRecord(options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {number} size |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof LoginControllerApi |
|||
*/ |
|||
public rankList(size: number, options?: RawAxiosRequestConfig) { |
|||
return LoginControllerApiFp(this.configuration).rankList(size, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof LoginControllerApi |
|||
*/ |
|||
public setInviteCode(options?: RawAxiosRequestConfig) { |
|||
return LoginControllerApiFp(this.configuration).setInviteCode(options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {number} score |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof LoginControllerApi |
|||
*/ |
|||
public updateScore(score: number, options?: RawAxiosRequestConfig) { |
|||
return LoginControllerApiFp(this.configuration).updateScore(score, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {string} rawData |
|||
* @param {string} signature |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof LoginControllerApi |
|||
*/ |
|||
public updateUserInfo(rawData: string, signature: string, options?: RawAxiosRequestConfig) { |
|||
return LoginControllerApiFp(this.configuration).updateUserInfo(rawData, signature, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {string} code |
|||
* @param {string} appId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof LoginControllerApi |
|||
*/ |
|||
public wxLogin(code: string, appId: string, options?: RawAxiosRequestConfig) { |
|||
return LoginControllerApiFp(this.configuration).wxLogin(code, appId, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {string} code |
|||
* @param {string} appId |
|||
* @param {string} [inviteCode] |
|||
* @param {string} [rawData] |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof LoginControllerApi |
|||
*/ |
|||
public wxLoginV2(code: string, appId: string, inviteCode?: string, rawData?: string, options?: RawAxiosRequestConfig) { |
|||
return LoginControllerApiFp(this.configuration).wxLoginV2(code, appId, inviteCode, rawData, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
} |
|||
|
@ -0,0 +1,526 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
import type { Configuration } from '../configuration'; |
|||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; |
|||
import globalAxios from 'axios'; |
|||
// Some imports not used depending on template conditions
|
|||
// @ts-ignore
|
|||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; |
|||
// @ts-ignore
|
|||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; |
|||
// @ts-ignore
|
|||
import { MatrixAdvRecordEditBo } from '../model'; |
|||
// @ts-ignore
|
|||
import { RBoolean } from '../model'; |
|||
// @ts-ignore
|
|||
import { RListMatrixAdvRecordSimple } from '../model'; |
|||
// @ts-ignore
|
|||
import { RString } from '../model'; |
|||
// @ts-ignore
|
|||
import { RVoid } from '../model'; |
|||
/** |
|||
* MatrixControllerApi - axios parameter creator |
|||
* @export |
|||
*/ |
|||
export const MatrixControllerApiAxiosParamCreator = function (configuration?: Configuration) { |
|||
return { |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {string} appCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
addWhiteList: async (deviceId: string, appCode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'deviceId' is not null or undefined
|
|||
assertParamExists('addWhiteList', 'deviceId', deviceId) |
|||
// verify required parameter 'appCode' is not null or undefined
|
|||
assertParamExists('addWhiteList', 'appCode', appCode) |
|||
const localVarPath = `/api/game/matrix/addWhiteList`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (deviceId !== undefined) { |
|||
localVarQueryParameter['deviceId'] = deviceId; |
|||
} |
|||
|
|||
if (appCode !== undefined) { |
|||
localVarQueryParameter['appCode'] = appCode; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {string} appCode |
|||
* @param {string} adminName |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
bindDevice: async (deviceId: string, appCode: string, adminName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'deviceId' is not null or undefined
|
|||
assertParamExists('bindDevice', 'deviceId', deviceId) |
|||
// verify required parameter 'appCode' is not null or undefined
|
|||
assertParamExists('bindDevice', 'appCode', appCode) |
|||
// verify required parameter 'adminName' is not null or undefined
|
|||
assertParamExists('bindDevice', 'adminName', adminName) |
|||
const localVarPath = `/api/game/matrix/bindDevice`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (deviceId !== undefined) { |
|||
localVarQueryParameter['deviceId'] = deviceId; |
|||
} |
|||
|
|||
if (appCode !== undefined) { |
|||
localVarQueryParameter['appCode'] = appCode; |
|||
} |
|||
|
|||
if (adminName !== undefined) { |
|||
localVarQueryParameter['adminName'] = adminName; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} appCode |
|||
* @param {string} deviceId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
getAdvList: async (appCode: string, deviceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'appCode' is not null or undefined
|
|||
assertParamExists('getAdvList', 'appCode', appCode) |
|||
// verify required parameter 'deviceId' is not null or undefined
|
|||
assertParamExists('getAdvList', 'deviceId', deviceId) |
|||
const localVarPath = `/api/game/matrix/getAdvList`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (appCode !== undefined) { |
|||
localVarQueryParameter['appCode'] = appCode; |
|||
} |
|||
|
|||
if (deviceId !== undefined) { |
|||
localVarQueryParameter['deviceId'] = deviceId; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {MatrixAdvRecordEditBo} matrixAdvRecordEditBo |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
saveAdvRecord: async (matrixAdvRecordEditBo: MatrixAdvRecordEditBo, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'matrixAdvRecordEditBo' is not null or undefined
|
|||
assertParamExists('saveAdvRecord', 'matrixAdvRecordEditBo', matrixAdvRecordEditBo) |
|||
const localVarPath = `/api/game/matrix/saveAdvRecord`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
|
|||
|
|||
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
localVarRequestOptions.data = serializeDataIfNeeded(matrixAdvRecordEditBo, localVarRequestOptions, configuration) |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {MatrixAdvRecordEditBo} matrixAdvRecordEditBo |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
saveAdvRecordV2: async (matrixAdvRecordEditBo: MatrixAdvRecordEditBo, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'matrixAdvRecordEditBo' is not null or undefined
|
|||
assertParamExists('saveAdvRecordV2', 'matrixAdvRecordEditBo', matrixAdvRecordEditBo) |
|||
const localVarPath = `/api/game/matrix/saveAdvRecordV2`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
|
|||
|
|||
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
localVarRequestOptions.data = serializeDataIfNeeded(matrixAdvRecordEditBo, localVarRequestOptions, configuration) |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {string} appCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
whiteList: async (deviceId: string, appCode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'deviceId' is not null or undefined
|
|||
assertParamExists('whiteList', 'deviceId', deviceId) |
|||
// verify required parameter 'appCode' is not null or undefined
|
|||
assertParamExists('whiteList', 'appCode', appCode) |
|||
const localVarPath = `/api/game/matrix/whiteList`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (deviceId !== undefined) { |
|||
localVarQueryParameter['deviceId'] = deviceId; |
|||
} |
|||
|
|||
if (appCode !== undefined) { |
|||
localVarQueryParameter['appCode'] = appCode; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
} |
|||
}; |
|||
|
|||
/** |
|||
* MatrixControllerApi - functional programming interface |
|||
* @export |
|||
*/ |
|||
export const MatrixControllerApiFp = function(configuration?: Configuration) { |
|||
const localVarAxiosParamCreator = MatrixControllerApiAxiosParamCreator(configuration) |
|||
return { |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {string} appCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async addWhiteList(deviceId: string, appCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RVoid>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.addWhiteList(deviceId, appCode, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['MatrixControllerApi.addWhiteList']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {string} appCode |
|||
* @param {string} adminName |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async bindDevice(deviceId: string, appCode: string, adminName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RString>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.bindDevice(deviceId, appCode, adminName, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['MatrixControllerApi.bindDevice']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} appCode |
|||
* @param {string} deviceId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async getAdvList(appCode: string, deviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RListMatrixAdvRecordSimple>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.getAdvList(appCode, deviceId, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['MatrixControllerApi.getAdvList']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {MatrixAdvRecordEditBo} matrixAdvRecordEditBo |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async saveAdvRecord(matrixAdvRecordEditBo: MatrixAdvRecordEditBo, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RVoid>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.saveAdvRecord(matrixAdvRecordEditBo, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['MatrixControllerApi.saveAdvRecord']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {MatrixAdvRecordEditBo} matrixAdvRecordEditBo |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async saveAdvRecordV2(matrixAdvRecordEditBo: MatrixAdvRecordEditBo, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RVoid>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.saveAdvRecordV2(matrixAdvRecordEditBo, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['MatrixControllerApi.saveAdvRecordV2']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {string} appCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async whiteList(deviceId: string, appCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RBoolean>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.whiteList(deviceId, appCode, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['MatrixControllerApi.whiteList']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
} |
|||
}; |
|||
|
|||
/** |
|||
* MatrixControllerApi - factory interface |
|||
* @export |
|||
*/ |
|||
export const MatrixControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { |
|||
const localVarFp = MatrixControllerApiFp(configuration) |
|||
return { |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {string} appCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
addWhiteList(deviceId: string, appCode: string, options?: any): AxiosPromise<RVoid> { |
|||
return localVarFp.addWhiteList(deviceId, appCode, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {string} appCode |
|||
* @param {string} adminName |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
bindDevice(deviceId: string, appCode: string, adminName: string, options?: any): AxiosPromise<RString> { |
|||
return localVarFp.bindDevice(deviceId, appCode, adminName, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} appCode |
|||
* @param {string} deviceId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
getAdvList(appCode: string, deviceId: string, options?: any): AxiosPromise<RListMatrixAdvRecordSimple> { |
|||
return localVarFp.getAdvList(appCode, deviceId, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {MatrixAdvRecordEditBo} matrixAdvRecordEditBo |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
saveAdvRecord(matrixAdvRecordEditBo: MatrixAdvRecordEditBo, options?: any): AxiosPromise<RVoid> { |
|||
return localVarFp.saveAdvRecord(matrixAdvRecordEditBo, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {MatrixAdvRecordEditBo} matrixAdvRecordEditBo |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
saveAdvRecordV2(matrixAdvRecordEditBo: MatrixAdvRecordEditBo, options?: any): AxiosPromise<RVoid> { |
|||
return localVarFp.saveAdvRecordV2(matrixAdvRecordEditBo, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {string} appCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
whiteList(deviceId: string, appCode: string, options?: any): AxiosPromise<RBoolean> { |
|||
return localVarFp.whiteList(deviceId, appCode, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
}; |
|||
}; |
|||
|
|||
/** |
|||
* MatrixControllerApi - object-oriented interface |
|||
* @export |
|||
* @class MatrixControllerApi |
|||
* @extends {BaseAPI} |
|||
*/ |
|||
export class MatrixControllerApi extends BaseAPI { |
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {string} appCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof MatrixControllerApi |
|||
*/ |
|||
public addWhiteList(deviceId: string, appCode: string, options?: RawAxiosRequestConfig) { |
|||
return MatrixControllerApiFp(this.configuration).addWhiteList(deviceId, appCode, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {string} appCode |
|||
* @param {string} adminName |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof MatrixControllerApi |
|||
*/ |
|||
public bindDevice(deviceId: string, appCode: string, adminName: string, options?: RawAxiosRequestConfig) { |
|||
return MatrixControllerApiFp(this.configuration).bindDevice(deviceId, appCode, adminName, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {string} appCode |
|||
* @param {string} deviceId |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof MatrixControllerApi |
|||
*/ |
|||
public getAdvList(appCode: string, deviceId: string, options?: RawAxiosRequestConfig) { |
|||
return MatrixControllerApiFp(this.configuration).getAdvList(appCode, deviceId, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {MatrixAdvRecordEditBo} matrixAdvRecordEditBo |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof MatrixControllerApi |
|||
*/ |
|||
public saveAdvRecord(matrixAdvRecordEditBo: MatrixAdvRecordEditBo, options?: RawAxiosRequestConfig) { |
|||
return MatrixControllerApiFp(this.configuration).saveAdvRecord(matrixAdvRecordEditBo, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {MatrixAdvRecordEditBo} matrixAdvRecordEditBo |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof MatrixControllerApi |
|||
*/ |
|||
public saveAdvRecordV2(matrixAdvRecordEditBo: MatrixAdvRecordEditBo, options?: RawAxiosRequestConfig) { |
|||
return MatrixControllerApiFp(this.configuration).saveAdvRecordV2(matrixAdvRecordEditBo, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {string} deviceId |
|||
* @param {string} appCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof MatrixControllerApi |
|||
*/ |
|||
public whiteList(deviceId: string, appCode: string, options?: RawAxiosRequestConfig) { |
|||
return MatrixControllerApiFp(this.configuration).whiteList(deviceId, appCode, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
} |
|||
|
@ -0,0 +1,269 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
import type { Configuration } from '../configuration'; |
|||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; |
|||
import globalAxios from 'axios'; |
|||
// Some imports not used depending on template conditions
|
|||
// @ts-ignore
|
|||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; |
|||
// @ts-ignore
|
|||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; |
|||
// @ts-ignore
|
|||
import { RMatrixAppBo } from '../model'; |
|||
// @ts-ignore
|
|||
import { RVoid } from '../model'; |
|||
// @ts-ignore
|
|||
import { RegisterBo } from '../model'; |
|||
/** |
|||
* RegisterControllerApi - axios parameter creator |
|||
* @export |
|||
*/ |
|||
export const RegisterControllerApiAxiosParamCreator = function (configuration?: Configuration) { |
|||
return { |
|||
/** |
|||
* |
|||
* @param {string} inviteCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
getApp: async (inviteCode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'inviteCode' is not null or undefined
|
|||
assertParamExists('getApp', 'inviteCode', inviteCode) |
|||
const localVarPath = `/api/citrus/register/getApp`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (inviteCode !== undefined) { |
|||
localVarQueryParameter['inviteCode'] = inviteCode; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} mobile |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
sendCode: async (mobile: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'mobile' is not null or undefined
|
|||
assertParamExists('sendCode', 'mobile', mobile) |
|||
const localVarPath = `/api/citrus/register/sendCode`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
if (mobile !== undefined) { |
|||
localVarQueryParameter['mobile'] = mobile; |
|||
} |
|||
|
|||
|
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
/** |
|||
* |
|||
* @param {RegisterBo} registerBo |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
submitRegister: async (registerBo: RegisterBo, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { |
|||
// verify required parameter 'registerBo' is not null or undefined
|
|||
assertParamExists('submitRegister', 'registerBo', registerBo) |
|||
const localVarPath = `/api/citrus/register/submitRegister`; |
|||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|||
let baseOptions; |
|||
if (configuration) { |
|||
baseOptions = configuration.baseOptions; |
|||
} |
|||
|
|||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|||
const localVarHeaderParameter = {} as any; |
|||
const localVarQueryParameter = {} as any; |
|||
|
|||
|
|||
|
|||
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|||
|
|||
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|||
localVarRequestOptions.data = serializeDataIfNeeded(registerBo, localVarRequestOptions, configuration) |
|||
|
|||
return { |
|||
url: toPathString(localVarUrlObj), |
|||
options: localVarRequestOptions, |
|||
}; |
|||
}, |
|||
} |
|||
}; |
|||
|
|||
/** |
|||
* RegisterControllerApi - functional programming interface |
|||
* @export |
|||
*/ |
|||
export const RegisterControllerApiFp = function(configuration?: Configuration) { |
|||
const localVarAxiosParamCreator = RegisterControllerApiAxiosParamCreator(configuration) |
|||
return { |
|||
/** |
|||
* |
|||
* @param {string} inviteCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async getApp(inviteCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RMatrixAppBo>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.getApp(inviteCode, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['RegisterControllerApi.getApp']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} mobile |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async sendCode(mobile: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RVoid>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.sendCode(mobile, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['RegisterControllerApi.sendCode']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {RegisterBo} registerBo |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
async submitRegister(registerBo: RegisterBo, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RVoid>> { |
|||
const localVarAxiosArgs = await localVarAxiosParamCreator.submitRegister(registerBo, options); |
|||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; |
|||
const localVarOperationServerBasePath = operationServerMap['RegisterControllerApi.submitRegister']?.[localVarOperationServerIndex]?.url; |
|||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); |
|||
}, |
|||
} |
|||
}; |
|||
|
|||
/** |
|||
* RegisterControllerApi - factory interface |
|||
* @export |
|||
*/ |
|||
export const RegisterControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { |
|||
const localVarFp = RegisterControllerApiFp(configuration) |
|||
return { |
|||
/** |
|||
* |
|||
* @param {string} inviteCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
getApp(inviteCode: string, options?: any): AxiosPromise<RMatrixAppBo> { |
|||
return localVarFp.getApp(inviteCode, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {string} mobile |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
sendCode(mobile: string, options?: any): AxiosPromise<RVoid> { |
|||
return localVarFp.sendCode(mobile, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
/** |
|||
* |
|||
* @param {RegisterBo} registerBo |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
*/ |
|||
submitRegister(registerBo: RegisterBo, options?: any): AxiosPromise<RVoid> { |
|||
return localVarFp.submitRegister(registerBo, options).then((request) => request(axios, basePath)); |
|||
}, |
|||
}; |
|||
}; |
|||
|
|||
/** |
|||
* RegisterControllerApi - object-oriented interface |
|||
* @export |
|||
* @class RegisterControllerApi |
|||
* @extends {BaseAPI} |
|||
*/ |
|||
export class RegisterControllerApi extends BaseAPI { |
|||
/** |
|||
* |
|||
* @param {string} inviteCode |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof RegisterControllerApi |
|||
*/ |
|||
public getApp(inviteCode: string, options?: RawAxiosRequestConfig) { |
|||
return RegisterControllerApiFp(this.configuration).getApp(inviteCode, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {string} mobile |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof RegisterControllerApi |
|||
*/ |
|||
public sendCode(mobile: string, options?: RawAxiosRequestConfig) { |
|||
return RegisterControllerApiFp(this.configuration).sendCode(mobile, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @param {RegisterBo} registerBo |
|||
* @param {*} [options] Override http request option. |
|||
* @throws {RequiredError} |
|||
* @memberof RegisterControllerApi |
|||
*/ |
|||
public submitRegister(registerBo: RegisterBo, options?: RawAxiosRequestConfig) { |
|||
return RegisterControllerApiFp(this.configuration).submitRegister(registerBo, options).then((request) => request(this.axios, this.basePath)); |
|||
} |
|||
} |
|||
|
@ -0,0 +1,86 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
import type { Configuration } from './configuration'; |
|||
// Some imports not used depending on template conditions
|
|||
// @ts-ignore
|
|||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; |
|||
import globalAxios from 'axios'; |
|||
|
|||
export const BASE_PATH = "http://localhost:9001".replace(/\/+$/, ""); |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
*/ |
|||
export const COLLECTION_FORMATS = { |
|||
csv: ",", |
|||
ssv: " ", |
|||
tsv: "\t", |
|||
pipes: "|", |
|||
}; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RequestArgs |
|||
*/ |
|||
export interface RequestArgs { |
|||
url: string; |
|||
options: RawAxiosRequestConfig; |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @class BaseAPI |
|||
*/ |
|||
export class BaseAPI { |
|||
protected configuration: Configuration | undefined; |
|||
|
|||
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { |
|||
if (configuration) { |
|||
this.configuration = configuration; |
|||
this.basePath = configuration.basePath ?? basePath; |
|||
} |
|||
} |
|||
}; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @class RequiredError |
|||
* @extends {Error} |
|||
*/ |
|||
export class RequiredError extends Error { |
|||
constructor(public field: string, msg?: string) { |
|||
super(msg); |
|||
this.name = "RequiredError" |
|||
} |
|||
} |
|||
|
|||
interface ServerMap { |
|||
[key: string]: { |
|||
url: string, |
|||
description: string, |
|||
}[]; |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
*/ |
|||
export const operationServerMap: ServerMap = { |
|||
} |
@ -0,0 +1,190 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
import type { Configuration } from "./configuration"; |
|||
import type { RequestArgs } from "./base"; |
|||
import type { AxiosInstance, AxiosResponse } from 'axios'; |
|||
import { RequiredError } from "./base"; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
*/ |
|||
export const DUMMY_BASE_URL = 'https://example.com' |
|||
|
|||
/** |
|||
* |
|||
* @throws {RequiredError} |
|||
* @export |
|||
*/ |
|||
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { |
|||
if (paramValue === null || paramValue === undefined) { |
|||
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
*/ |
|||
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { |
|||
if (configuration && configuration.apiKey) { |
|||
const localVarApiKeyValue = typeof configuration.apiKey === 'function' |
|||
? await configuration.apiKey(keyParamName) |
|||
: await configuration.apiKey; |
|||
object[keyParamName] = localVarApiKeyValue; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
*/ |
|||
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { |
|||
if (configuration && (configuration.username || configuration.password)) { |
|||
object["auth"] = { username: configuration.username, password: configuration.password }; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
*/ |
|||
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { |
|||
if (configuration && configuration.accessToken) { |
|||
const accessToken = typeof configuration.accessToken === 'function' |
|||
? await configuration.accessToken() |
|||
: await configuration.accessToken; |
|||
object["Authorization"] = "Bearer " + accessToken; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
*/ |
|||
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { |
|||
if (configuration && configuration.accessToken) { |
|||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function' |
|||
? await configuration.accessToken(name, scopes) |
|||
: await configuration.accessToken; |
|||
object["Authorization"] = "Bearer " + localVarAccessTokenValue; |
|||
} |
|||
} |
|||
|
|||
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void { |
|||
if (parameter == null) return; |
|||
if (typeof parameter === "object") { |
|||
if (Array.isArray(parameter)) { |
|||
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); |
|||
} |
|||
else { |
|||
Object.keys(parameter).forEach(currentKey => |
|||
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`) |
|||
); |
|||
} |
|||
} |
|||
else { |
|||
if (urlSearchParams.has(key)) { |
|||
urlSearchParams.append(key, parameter); |
|||
} |
|||
else { |
|||
urlSearchParams.set(key, parameter); |
|||
} |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
*/ |
|||
export const setSearchParams = function (url: URL, ...objects: any[]) { |
|||
const searchParams = new URLSearchParams(url.search); |
|||
setFlattenedQueryParams(searchParams, objects); |
|||
url.search = searchParams.toString(); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
*/ |
|||
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { |
|||
const nonString = typeof value !== 'string'; |
|||
const needsSerialization = nonString && configuration && configuration.isJsonMime |
|||
? configuration.isJsonMime(requestOptions.headers['Content-Type']) |
|||
: nonString; |
|||
return needsSerialization |
|||
? JSON.stringify(value !== undefined ? convertMapsAndSetsToPlain(value) : {}) |
|||
: (value || ""); |
|||
} |
|||
|
|||
function convertMapsAndSetsToPlain(value: any): any { |
|||
if (typeof Set === "undefined") return value; |
|||
if (typeof Map === "undefined") return value; |
|||
if (typeof value !== "object" || !value) { |
|||
return value; |
|||
} |
|||
if (value instanceof Set) { |
|||
return Array.from(value).map(item => convertMapsAndSetsToPlain(item)); |
|||
} |
|||
if (value instanceof Map) { |
|||
const entries: Array<[string, any]> = []; |
|||
value.forEach((value: any, key: any) => { |
|||
entries.push([key, convertMapsAndSetsToPlain(value)]) |
|||
}); |
|||
return objectFromEntries(entries); |
|||
} |
|||
if (Array.isArray(value)) { |
|||
return value.map(it => convertMapsAndSetsToPlain(it)); |
|||
} |
|||
return objectFromEntries(objectEntries(value) |
|||
.map(([k, v]) => [k, convertMapsAndSetsToPlain(v)])); |
|||
} |
|||
|
|||
/** |
|||
* Ponyfill for Object.entries |
|||
*/ |
|||
function objectEntries(object: Record<string, any>): Array<[string, any]> { |
|||
return Object.keys(object).map(key => [key, object[key]]); |
|||
} |
|||
|
|||
/** |
|||
* Ponyfill for Object.fromEntries |
|||
*/ |
|||
function objectFromEntries(entries: any): Record<string, any> { |
|||
return [...entries].reduce((object, [key, val]) => { |
|||
object[key] = val; |
|||
return object; |
|||
}, {}); |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
*/ |
|||
export const toPathString = function (url: URL) { |
|||
return url.pathname + url.search + url.hash |
|||
} |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
*/ |
|||
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { |
|||
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { |
|||
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url}; |
|||
return axios.request<T, R>(axiosRequestArgs); |
|||
}; |
|||
} |
@ -0,0 +1,110 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
export interface ConfigurationParameters { |
|||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>); |
|||
username?: string; |
|||
password?: string; |
|||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>); |
|||
basePath?: string; |
|||
serverIndex?: number; |
|||
baseOptions?: any; |
|||
formDataCtor?: new () => any; |
|||
} |
|||
|
|||
export class Configuration { |
|||
/** |
|||
* parameter for apiKey security |
|||
* @param name security name |
|||
* @memberof Configuration |
|||
*/ |
|||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>); |
|||
/** |
|||
* parameter for basic security |
|||
* |
|||
* @type {string} |
|||
* @memberof Configuration |
|||
*/ |
|||
username?: string; |
|||
/** |
|||
* parameter for basic security |
|||
* |
|||
* @type {string} |
|||
* @memberof Configuration |
|||
*/ |
|||
password?: string; |
|||
/** |
|||
* parameter for oauth2 security |
|||
* @param name security name |
|||
* @param scopes oauth2 scope |
|||
* @memberof Configuration |
|||
*/ |
|||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>); |
|||
/** |
|||
* override base path |
|||
* |
|||
* @type {string} |
|||
* @memberof Configuration |
|||
*/ |
|||
basePath?: string; |
|||
/** |
|||
* override server index |
|||
* |
|||
* @type {number} |
|||
* @memberof Configuration |
|||
*/ |
|||
serverIndex?: number; |
|||
/** |
|||
* base options for axios calls |
|||
* |
|||
* @type {any} |
|||
* @memberof Configuration |
|||
*/ |
|||
baseOptions?: any; |
|||
/** |
|||
* The FormData constructor that will be used to create multipart form data |
|||
* requests. You can inject this here so that execution environments that |
|||
* do not support the FormData class can still run the generated client. |
|||
* |
|||
* @type {new () => FormData} |
|||
*/ |
|||
formDataCtor?: new () => any; |
|||
|
|||
constructor(param: ConfigurationParameters = {}) { |
|||
this.apiKey = param.apiKey; |
|||
this.username = param.username; |
|||
this.password = param.password; |
|||
this.accessToken = param.accessToken; |
|||
this.basePath = param.basePath; |
|||
this.serverIndex = param.serverIndex; |
|||
this.baseOptions = param.baseOptions; |
|||
this.formDataCtor = param.formDataCtor; |
|||
} |
|||
|
|||
/** |
|||
* Check if the given MIME is a JSON MIME. |
|||
* JSON MIME examples: |
|||
* application/json |
|||
* application/json; charset=UTF8 |
|||
* APPLICATION/JSON |
|||
* application/vnd.company+json |
|||
* @param mime - MIME (Multipurpose Internet Mail Extensions) |
|||
* @return True if the given MIME is JSON, false otherwise. |
|||
*/ |
|||
public isJsonMime(mime: string): boolean { |
|||
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); |
|||
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); |
|||
} |
|||
} |
@ -0,0 +1,57 @@ |
|||
#!/bin/sh |
|||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ |
|||
# |
|||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" |
|||
|
|||
git_user_id=$1 |
|||
git_repo_id=$2 |
|||
release_note=$3 |
|||
git_host=$4 |
|||
|
|||
if [ "$git_host" = "" ]; then |
|||
git_host="github.com" |
|||
echo "[INFO] No command line input provided. Set \$git_host to $git_host" |
|||
fi |
|||
|
|||
if [ "$git_user_id" = "" ]; then |
|||
git_user_id="GIT_USER_ID" |
|||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" |
|||
fi |
|||
|
|||
if [ "$git_repo_id" = "" ]; then |
|||
git_repo_id="GIT_REPO_ID" |
|||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" |
|||
fi |
|||
|
|||
if [ "$release_note" = "" ]; then |
|||
release_note="Minor update" |
|||
echo "[INFO] No command line input provided. Set \$release_note to $release_note" |
|||
fi |
|||
|
|||
# Initialize the local directory as a Git repository |
|||
git init |
|||
|
|||
# Adds the files in the local repository and stages them for commit. |
|||
git add . |
|||
|
|||
# Commits the tracked changes and prepares them to be pushed to a remote repository. |
|||
git commit -m "$release_note" |
|||
|
|||
# Sets the new remote |
|||
git_remote=$(git remote) |
|||
if [ "$git_remote" = "" ]; then # git remote not defined |
|||
|
|||
if [ "$GIT_TOKEN" = "" ]; then |
|||
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." |
|||
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git |
|||
else |
|||
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git |
|||
fi |
|||
|
|||
fi |
|||
|
|||
git pull origin master |
|||
|
|||
# Pushes (Forces) the changes in the local repository up to the remote repository |
|||
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" |
|||
git push origin master 2>&1 | grep -v 'To https' |
@ -0,0 +1,18 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
export * from "./api"; |
|||
export * from "./configuration"; |
|||
export * from "./model"; |
@ -0,0 +1,42 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface AddMockScheduleReq |
|||
*/ |
|||
export interface AddMockScheduleReq { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof AddMockScheduleReq |
|||
*/ |
|||
'appId'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof AddMockScheduleReq |
|||
*/ |
|||
'incomeYuan'?: number; |
|||
/** |
|||
* |
|||
* @type {Array<number>} |
|||
* @memberof AddMockScheduleReq |
|||
*/ |
|||
'scheduleTime'?: Array<number>; |
|||
} |
|||
|
@ -0,0 +1,72 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface AdvRecordQuery |
|||
*/ |
|||
export interface AdvRecordQuery { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof AdvRecordQuery |
|||
*/ |
|||
'current'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof AdvRecordQuery |
|||
*/ |
|||
'pageSize'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof AdvRecordQuery |
|||
*/ |
|||
'advType'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof AdvRecordQuery |
|||
*/ |
|||
'platform'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof AdvRecordQuery |
|||
*/ |
|||
'deviceId'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof AdvRecordQuery |
|||
*/ |
|||
'code'?: string; |
|||
/** |
|||
* |
|||
* @type {Array<string>} |
|||
* @memberof AdvRecordQuery |
|||
*/ |
|||
'createdAt'?: Array<string>; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof AdvRecordQuery |
|||
*/ |
|||
'adminId'?: number; |
|||
} |
|||
|
@ -0,0 +1,54 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface AppInfo |
|||
*/ |
|||
export interface AppInfo { |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof AppInfo |
|||
*/ |
|||
'name'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof AppInfo |
|||
*/ |
|||
'icon'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof AppInfo |
|||
*/ |
|||
'appId'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof AppInfo |
|||
*/ |
|||
'inAudit'?: number; |
|||
/** |
|||
* |
|||
* @type {Array<AppInfo>} |
|||
* @memberof AppInfo |
|||
*/ |
|||
'recommend'?: Array<AppInfo>; |
|||
} |
|||
|
@ -0,0 +1,48 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface CurrentUser |
|||
*/ |
|||
export interface CurrentUser { |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof CurrentUser |
|||
*/ |
|||
'avatarUrl'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof CurrentUser |
|||
*/ |
|||
'nickName'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof CurrentUser |
|||
*/ |
|||
'score'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof CurrentUser |
|||
*/ |
|||
'openId'?: string; |
|||
} |
|||
|
@ -0,0 +1,36 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface DateIncome |
|||
*/ |
|||
export interface DateIncome { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof DateIncome |
|||
*/ |
|||
'date'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof DateIncome |
|||
*/ |
|||
'income'?: number; |
|||
} |
|||
|
@ -0,0 +1,48 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface IncomeQuery |
|||
*/ |
|||
export interface IncomeQuery { |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof IncomeQuery |
|||
*/ |
|||
'code'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof IncomeQuery |
|||
*/ |
|||
'platform'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof IncomeQuery |
|||
*/ |
|||
'advType'?: number; |
|||
/** |
|||
* |
|||
* @type {Array<string>} |
|||
* @memberof IncomeQuery |
|||
*/ |
|||
'date'?: Array<string>; |
|||
} |
|||
|
@ -0,0 +1,44 @@ |
|||
export * from './add-mock-schedule-req'; |
|||
export * from './adv-record-query'; |
|||
export * from './app-info'; |
|||
export * from './current-user'; |
|||
export * from './date-income'; |
|||
export * from './income-query'; |
|||
export * from './invite-info'; |
|||
export * from './invite-user-info'; |
|||
export * from './login-bo'; |
|||
export * from './login-req'; |
|||
export * from './matrix-admin'; |
|||
export * from './matrix-admin-bo'; |
|||
export * from './matrix-admin-device'; |
|||
export * from './matrix-adv-record-bo'; |
|||
export * from './matrix-adv-record-edit-bo'; |
|||
export * from './matrix-adv-record-simple'; |
|||
export * from './matrix-app'; |
|||
export * from './matrix-app-bo'; |
|||
export * from './matrix-mock-schedule'; |
|||
export * from './matrix-white-device'; |
|||
export * from './overview-bo'; |
|||
export * from './page-result-matrix-adv-record-bo'; |
|||
export * from './rapp-info'; |
|||
export * from './rboolean'; |
|||
export * from './rcurrent-user'; |
|||
export * from './rinvite-info'; |
|||
export * from './rlist-date-income'; |
|||
export * from './rlist-matrix-admin-bo'; |
|||
export * from './rlist-matrix-admin-device'; |
|||
export * from './rlist-matrix-adv-record-simple'; |
|||
export * from './rlist-matrix-app'; |
|||
export * from './rlist-matrix-mock-schedule'; |
|||
export * from './rlist-matrix-white-device'; |
|||
export * from './rlogin-bo'; |
|||
export * from './rmatrix-admin'; |
|||
export * from './rmatrix-app-bo'; |
|||
export * from './roverview-bo'; |
|||
export * from './rpage-result-matrix-adv-record-bo'; |
|||
export * from './rrank-list'; |
|||
export * from './rstring'; |
|||
export * from './rvoid'; |
|||
export * from './rank-list'; |
|||
export * from './register-bo'; |
|||
export * from './user-info'; |
@ -0,0 +1,39 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { InviteUserInfo } from './invite-user-info'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface InviteInfo |
|||
*/ |
|||
export interface InviteInfo { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof InviteInfo |
|||
*/ |
|||
'inviteCnt'?: number; |
|||
/** |
|||
* |
|||
* @type {Array<InviteUserInfo>} |
|||
* @memberof InviteInfo |
|||
*/ |
|||
'list'?: Array<InviteUserInfo>; |
|||
} |
|||
|
@ -0,0 +1,48 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface InviteUserInfo |
|||
*/ |
|||
export interface InviteUserInfo { |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof InviteUserInfo |
|||
*/ |
|||
'avatarUrl'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof InviteUserInfo |
|||
*/ |
|||
'nickName'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof InviteUserInfo |
|||
*/ |
|||
'score'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof InviteUserInfo |
|||
*/ |
|||
'nextTime'?: number; |
|||
} |
|||
|
@ -0,0 +1,42 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface LoginBo |
|||
*/ |
|||
export interface LoginBo { |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof LoginBo |
|||
*/ |
|||
'jwtToken'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof LoginBo |
|||
*/ |
|||
'inviteCode'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof LoginBo |
|||
*/ |
|||
'signature'?: string; |
|||
} |
|||
|
@ -0,0 +1,48 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface LoginReq |
|||
*/ |
|||
export interface LoginReq { |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof LoginReq |
|||
*/ |
|||
'code'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof LoginReq |
|||
*/ |
|||
'appId'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof LoginReq |
|||
*/ |
|||
'inviteCode'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof LoginReq |
|||
*/ |
|||
'rawData'?: string; |
|||
} |
|||
|
@ -0,0 +1,75 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { OverviewBo } from './overview-bo'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface MatrixAdminBo |
|||
*/ |
|||
export interface MatrixAdminBo { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdminBo |
|||
*/ |
|||
'id'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdminBo |
|||
*/ |
|||
'name'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdminBo |
|||
*/ |
|||
'password'?: string; |
|||
/** |
|||
* |
|||
* @type {Array<number>} |
|||
* @memberof MatrixAdminBo |
|||
*/ |
|||
'appIds'?: Array<number>; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdminBo |
|||
*/ |
|||
'role'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdminBo |
|||
*/ |
|||
'deviceCnt'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdminBo |
|||
*/ |
|||
'incomeRate'?: number; |
|||
/** |
|||
* |
|||
* @type {OverviewBo} |
|||
* @memberof MatrixAdminBo |
|||
*/ |
|||
'overview'?: OverviewBo; |
|||
} |
|||
|
@ -0,0 +1,66 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface MatrixAdminDevice |
|||
*/ |
|||
export interface MatrixAdminDevice { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdminDevice |
|||
*/ |
|||
'id'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdminDevice |
|||
*/ |
|||
'deviceId'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdminDevice |
|||
*/ |
|||
'appId'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdminDevice |
|||
*/ |
|||
'adminId'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdminDevice |
|||
*/ |
|||
'status'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdminDevice |
|||
*/ |
|||
'createdAt'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdminDevice |
|||
*/ |
|||
'updatedAt'?: string; |
|||
} |
|||
|
@ -0,0 +1,78 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface MatrixAdmin |
|||
*/ |
|||
export interface MatrixAdmin { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdmin |
|||
*/ |
|||
'id'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdmin |
|||
*/ |
|||
'name'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdmin |
|||
*/ |
|||
'password'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdmin |
|||
*/ |
|||
'appIds'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdmin |
|||
*/ |
|||
'role'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdmin |
|||
*/ |
|||
'channel'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdmin |
|||
*/ |
|||
'parentAdminId'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdmin |
|||
*/ |
|||
'deviceCnt'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdmin |
|||
*/ |
|||
'incomeRate'?: number; |
|||
} |
|||
|
@ -0,0 +1,114 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface MatrixAdvRecordBo |
|||
*/ |
|||
export interface MatrixAdvRecordBo { |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'deviceId'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'appCode'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'platform'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'advType'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'ecpm'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'deviceBrand'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'deviceName'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'ip'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'advId'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'sign'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'appName'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'appId'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'createdAt'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'id'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordBo |
|||
*/ |
|||
'adminName'?: string; |
|||
} |
|||
|
@ -0,0 +1,84 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface MatrixAdvRecordEditBo |
|||
*/ |
|||
export interface MatrixAdvRecordEditBo { |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordEditBo |
|||
*/ |
|||
'deviceId'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordEditBo |
|||
*/ |
|||
'appCode'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordEditBo |
|||
*/ |
|||
'platform'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordEditBo |
|||
*/ |
|||
'advType'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordEditBo |
|||
*/ |
|||
'ecpm'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordEditBo |
|||
*/ |
|||
'deviceBrand'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordEditBo |
|||
*/ |
|||
'deviceName'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordEditBo |
|||
*/ |
|||
'ip'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordEditBo |
|||
*/ |
|||
'advId'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordEditBo |
|||
*/ |
|||
'sign'?: string; |
|||
} |
|||
|
@ -0,0 +1,54 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface MatrixAdvRecordSimple |
|||
*/ |
|||
export interface MatrixAdvRecordSimple { |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAdvRecordSimple |
|||
*/ |
|||
'deviceId'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordSimple |
|||
*/ |
|||
'platform'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordSimple |
|||
*/ |
|||
'advType'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordSimple |
|||
*/ |
|||
'ecpm'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixAdvRecordSimple |
|||
*/ |
|||
'createdAt'?: number; |
|||
} |
|||
|
@ -0,0 +1,48 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface MatrixAppBo |
|||
*/ |
|||
export interface MatrixAppBo { |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAppBo |
|||
*/ |
|||
'name'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAppBo |
|||
*/ |
|||
'code'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAppBo |
|||
*/ |
|||
'img'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixAppBo |
|||
*/ |
|||
'url'?: string; |
|||
} |
|||
|
@ -0,0 +1,78 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface MatrixApp |
|||
*/ |
|||
export interface MatrixApp { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixApp |
|||
*/ |
|||
'id'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixApp |
|||
*/ |
|||
'name'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixApp |
|||
*/ |
|||
'code'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixApp |
|||
*/ |
|||
'img'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixApp |
|||
*/ |
|||
'url'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixApp |
|||
*/ |
|||
'income'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixApp |
|||
*/ |
|||
'channel'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixApp |
|||
*/ |
|||
'hide'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixApp |
|||
*/ |
|||
'secret'?: string; |
|||
} |
|||
|
@ -0,0 +1,78 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface MatrixMockSchedule |
|||
*/ |
|||
export interface MatrixMockSchedule { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixMockSchedule |
|||
*/ |
|||
'id'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixMockSchedule |
|||
*/ |
|||
'appId'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixMockSchedule |
|||
*/ |
|||
'channel'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixMockSchedule |
|||
*/ |
|||
'incomeYuan'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixMockSchedule |
|||
*/ |
|||
'mockIncome'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixMockSchedule |
|||
*/ |
|||
'status'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixMockSchedule |
|||
*/ |
|||
'scheduleTime'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixMockSchedule |
|||
*/ |
|||
'createdAt'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixMockSchedule |
|||
*/ |
|||
'updatedAt'?: string; |
|||
} |
|||
|
@ -0,0 +1,48 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface MatrixWhiteDevice |
|||
*/ |
|||
export interface MatrixWhiteDevice { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof MatrixWhiteDevice |
|||
*/ |
|||
'id'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixWhiteDevice |
|||
*/ |
|||
'deviceId'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixWhiteDevice |
|||
*/ |
|||
'channel'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof MatrixWhiteDevice |
|||
*/ |
|||
'createdAt'?: string; |
|||
} |
|||
|
@ -0,0 +1,54 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface OverviewBo |
|||
*/ |
|||
export interface OverviewBo { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof OverviewBo |
|||
*/ |
|||
'todayIncome'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof OverviewBo |
|||
*/ |
|||
'totalIncome'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof OverviewBo |
|||
*/ |
|||
'yesterdayIncome'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof OverviewBo |
|||
*/ |
|||
'lastMonthIncome'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof OverviewBo |
|||
*/ |
|||
'thisMonthIncome'?: number; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { MatrixAdvRecordBo } from './matrix-adv-record-bo'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface PageResultMatrixAdvRecordBo |
|||
*/ |
|||
export interface PageResultMatrixAdvRecordBo { |
|||
/** |
|||
* |
|||
* @type {Array<MatrixAdvRecordBo>} |
|||
* @memberof PageResultMatrixAdvRecordBo |
|||
*/ |
|||
'data'?: Array<MatrixAdvRecordBo>; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof PageResultMatrixAdvRecordBo |
|||
*/ |
|||
'total'?: number; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof PageResultMatrixAdvRecordBo |
|||
*/ |
|||
'sum'?: number; |
|||
} |
|||
|
@ -0,0 +1,57 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { UserInfo } from './user-info'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RankList |
|||
*/ |
|||
export interface RankList { |
|||
/** |
|||
* |
|||
* @type {Array<UserInfo>} |
|||
* @memberof RankList |
|||
*/ |
|||
'list'?: Array<UserInfo>; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RankList |
|||
*/ |
|||
'myRank'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RankList |
|||
*/ |
|||
'myScore'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RankList |
|||
*/ |
|||
'myAvatarUrl'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RankList |
|||
*/ |
|||
'myNickName'?: string; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { AppInfo } from './app-info'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RAppInfo |
|||
*/ |
|||
export interface RAppInfo { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RAppInfo |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RAppInfo |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {AppInfo} |
|||
* @memberof RAppInfo |
|||
*/ |
|||
'data'?: AppInfo; |
|||
} |
|||
|
@ -0,0 +1,42 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RBoolean |
|||
*/ |
|||
export interface RBoolean { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RBoolean |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RBoolean |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {boolean} |
|||
* @memberof RBoolean |
|||
*/ |
|||
'data'?: boolean; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { CurrentUser } from './current-user'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RCurrentUser |
|||
*/ |
|||
export interface RCurrentUser { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RCurrentUser |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RCurrentUser |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {CurrentUser} |
|||
* @memberof RCurrentUser |
|||
*/ |
|||
'data'?: CurrentUser; |
|||
} |
|||
|
@ -0,0 +1,48 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RegisterBo |
|||
*/ |
|||
export interface RegisterBo { |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RegisterBo |
|||
*/ |
|||
'mobile'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RegisterBo |
|||
*/ |
|||
'code'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RegisterBo |
|||
*/ |
|||
'pwd'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RegisterBo |
|||
*/ |
|||
'inviteCode'?: string; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { InviteInfo } from './invite-info'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RInviteInfo |
|||
*/ |
|||
export interface RInviteInfo { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RInviteInfo |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RInviteInfo |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {InviteInfo} |
|||
* @memberof RInviteInfo |
|||
*/ |
|||
'data'?: InviteInfo; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { DateIncome } from './date-income'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RListDateIncome |
|||
*/ |
|||
export interface RListDateIncome { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RListDateIncome |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RListDateIncome |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {Array<DateIncome>} |
|||
* @memberof RListDateIncome |
|||
*/ |
|||
'data'?: Array<DateIncome>; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { MatrixAdminBo } from './matrix-admin-bo'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RListMatrixAdminBo |
|||
*/ |
|||
export interface RListMatrixAdminBo { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RListMatrixAdminBo |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RListMatrixAdminBo |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {Array<MatrixAdminBo>} |
|||
* @memberof RListMatrixAdminBo |
|||
*/ |
|||
'data'?: Array<MatrixAdminBo>; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { MatrixAdminDevice } from './matrix-admin-device'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RListMatrixAdminDevice |
|||
*/ |
|||
export interface RListMatrixAdminDevice { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RListMatrixAdminDevice |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RListMatrixAdminDevice |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {Array<MatrixAdminDevice>} |
|||
* @memberof RListMatrixAdminDevice |
|||
*/ |
|||
'data'?: Array<MatrixAdminDevice>; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { MatrixAdvRecordSimple } from './matrix-adv-record-simple'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RListMatrixAdvRecordSimple |
|||
*/ |
|||
export interface RListMatrixAdvRecordSimple { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RListMatrixAdvRecordSimple |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RListMatrixAdvRecordSimple |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {Array<MatrixAdvRecordSimple>} |
|||
* @memberof RListMatrixAdvRecordSimple |
|||
*/ |
|||
'data'?: Array<MatrixAdvRecordSimple>; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { MatrixApp } from './matrix-app'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RListMatrixApp |
|||
*/ |
|||
export interface RListMatrixApp { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RListMatrixApp |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RListMatrixApp |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {Array<MatrixApp>} |
|||
* @memberof RListMatrixApp |
|||
*/ |
|||
'data'?: Array<MatrixApp>; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { MatrixMockSchedule } from './matrix-mock-schedule'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RListMatrixMockSchedule |
|||
*/ |
|||
export interface RListMatrixMockSchedule { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RListMatrixMockSchedule |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RListMatrixMockSchedule |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {Array<MatrixMockSchedule>} |
|||
* @memberof RListMatrixMockSchedule |
|||
*/ |
|||
'data'?: Array<MatrixMockSchedule>; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { MatrixWhiteDevice } from './matrix-white-device'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RListMatrixWhiteDevice |
|||
*/ |
|||
export interface RListMatrixWhiteDevice { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RListMatrixWhiteDevice |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RListMatrixWhiteDevice |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {Array<MatrixWhiteDevice>} |
|||
* @memberof RListMatrixWhiteDevice |
|||
*/ |
|||
'data'?: Array<MatrixWhiteDevice>; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { LoginBo } from './login-bo'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RLoginBo |
|||
*/ |
|||
export interface RLoginBo { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RLoginBo |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RLoginBo |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {LoginBo} |
|||
* @memberof RLoginBo |
|||
*/ |
|||
'data'?: LoginBo; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { MatrixAdmin } from './matrix-admin'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RMatrixAdmin |
|||
*/ |
|||
export interface RMatrixAdmin { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RMatrixAdmin |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RMatrixAdmin |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {MatrixAdmin} |
|||
* @memberof RMatrixAdmin |
|||
*/ |
|||
'data'?: MatrixAdmin; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { MatrixAppBo } from './matrix-app-bo'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RMatrixAppBo |
|||
*/ |
|||
export interface RMatrixAppBo { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RMatrixAppBo |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RMatrixAppBo |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {MatrixAppBo} |
|||
* @memberof RMatrixAppBo |
|||
*/ |
|||
'data'?: MatrixAppBo; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { OverviewBo } from './overview-bo'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface ROverviewBo |
|||
*/ |
|||
export interface ROverviewBo { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof ROverviewBo |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof ROverviewBo |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {OverviewBo} |
|||
* @memberof ROverviewBo |
|||
*/ |
|||
'data'?: OverviewBo; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { PageResultMatrixAdvRecordBo } from './page-result-matrix-adv-record-bo'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RPageResultMatrixAdvRecordBo |
|||
*/ |
|||
export interface RPageResultMatrixAdvRecordBo { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RPageResultMatrixAdvRecordBo |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RPageResultMatrixAdvRecordBo |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {PageResultMatrixAdvRecordBo} |
|||
* @memberof RPageResultMatrixAdvRecordBo |
|||
*/ |
|||
'data'?: PageResultMatrixAdvRecordBo; |
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
// May contain unused imports in some cases
|
|||
// @ts-ignore
|
|||
import { RankList } from './rank-list'; |
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RRankList |
|||
*/ |
|||
export interface RRankList { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RRankList |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RRankList |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {RankList} |
|||
* @memberof RRankList |
|||
*/ |
|||
'data'?: RankList; |
|||
} |
|||
|
@ -0,0 +1,42 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RString |
|||
*/ |
|||
export interface RString { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RString |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RString |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RString |
|||
*/ |
|||
'data'?: string; |
|||
} |
|||
|
@ -0,0 +1,42 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface RVoid |
|||
*/ |
|||
export interface RVoid { |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof RVoid |
|||
*/ |
|||
'code'?: number; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof RVoid |
|||
*/ |
|||
'message'?: string; |
|||
/** |
|||
* |
|||
* @type {object} |
|||
* @memberof RVoid |
|||
*/ |
|||
'data'?: object; |
|||
} |
|||
|
@ -0,0 +1,42 @@ |
|||
/* tslint:disable */ |
|||
/* eslint-disable */ |
|||
/** |
|||
* matrix后台 |
|||
* 乌啦啦 |
|||
* |
|||
* The version of the OpenAPI document: v1.0.0 |
|||
* |
|||
* |
|||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|||
* https://openapi-generator.tech
|
|||
* Do not edit the class manually. |
|||
*/ |
|||
|
|||
|
|||
|
|||
/** |
|||
* |
|||
* @export |
|||
* @interface UserInfo |
|||
*/ |
|||
export interface UserInfo { |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof UserInfo |
|||
*/ |
|||
'avatarUrl'?: string; |
|||
/** |
|||
* |
|||
* @type {string} |
|||
* @memberof UserInfo |
|||
*/ |
|||
'nickName'?: string; |
|||
/** |
|||
* |
|||
* @type {number} |
|||
* @memberof UserInfo |
|||
*/ |
|||
'score'?: number; |
|||
} |
|||
|
@ -0,0 +1,8 @@ |
|||
import { RegisterControllerApi } from "./generated"; |
|||
|
|||
export const api = new RegisterControllerApi({ |
|||
basePath: "", |
|||
isJsonMime(mime) { |
|||
return mime === "application/json"; |
|||
}, |
|||
}); |
Loading…
Reference in new issue