ci: set up continuous integration and delivery pipeline

- Add .drone.yml file to configure CI/CD pipeline
- Set up Docker build and push to private registry
- Add deployment configuration for development and production environments
- Include health check and environment variable support
This commit is contained in:
danial
2025-03-30 22:34:38 +08:00
commit 85a2da5e2f
584 changed files with 90587 additions and 0 deletions

8
.dockerignore Normal file
View File

@@ -0,0 +1,8 @@
node_modules
.DS_Store
dist-ssr
*.local
/node_modules/
/.vscode/
/.idea/
/dist/

49
.drone.yml Normal file
View File

@@ -0,0 +1,49 @@
---
kind: pipeline
type: ssh
name: master-machine
server:
host: 38.38.251.113:31245
user: root
password:
from_secret: www_password
clone:
depth: 1
steps:
- name: build new image
environment:
DOCKER_LOGIN:
from_secret: docker_login
DOCKER_TOKEN:
from_secret: docker_token
DOCKER_PASSWORD:
from_secret: docker_password
commands:
- docker login git.kkknametrans.buzz -u $DOCKER_LOGIN -p $DOCKER_TOKEN
- docker build -t git.kkknametrans.buzz/danial/kami_frontend_${DRONE_BRANCH}:${DRONE_BUILD_NUMBER} -f deploy/Dockerfile . --build-arg USE_PROXY=0
- docker tag git.kkknametrans.buzz/danial/kami_frontend_${DRONE_BRANCH}:${DRONE_BUILD_NUMBER} git.kkknametrans.buzz/danial/kami_frontend_${DRONE_BRANCH}:latest
- docker push git.kkknametrans.buzz/danial/kami_frontend_${DRONE_BRANCH}:${DRONE_BUILD_NUMBER}
- docker push git.kkknametrans.buzz/danial/kami_frontend_${DRONE_BRANCH}:latest
- docker logout git.kkknametrans.buzz
- name: deploy to docker compose
environment:
DOCKER_LOGIN:
from_secret: docker_login
DOCKER_TOKEN:
from_secret: docker_token
DOCKER_PASSWORD:
from_secret: docker_password
commands:
- docker login git.kkknametrans.buzz -u $DOCKER_LOGIN -p $DOCKER_TOKEN
- BRANCH=${DRONE_BRANCH} VERSION=${DRONE_BUILD_NUMBER} docker compose -f /data/kami/docker-compose.yaml --profile frontend up -d
- docker logout git.kkknametrans.buzz
trigger:
branch:
- develop
- production
when:
event:
- push

2
.env.development Normal file
View File

@@ -0,0 +1,2 @@
VITE_API_BASE_URL= 'http://127.0.0.1:12401'
# VITE_API_BASE_URL='http://partial2.kkknametrans.buzz'

1
.env.production Normal file
View File

@@ -0,0 +1 @@
VITE_API_BASE_URL=''

7
.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
/.vscode/
/.idea/

8
.hintrc Normal file
View File

@@ -0,0 +1,8 @@
{
"extends": [
"development"
],
"hints": {
"typescript-config/strict": "off"
}
}

1
.husky/commit-msg Normal file
View File

@@ -0,0 +1 @@
pnpm commitlint --edit $1

1
.husky/pre-commit Normal file
View File

@@ -0,0 +1 @@
pnpm lint-staged

7
.prettierignore Normal file
View File

@@ -0,0 +1,7 @@
/dist/*
.local
.output.js
/node_modules/**
**/*.svg
**/*.sh

23
.prettierrc.js Normal file
View File

@@ -0,0 +1,23 @@
/** @type {import("prettier").Config} */
export default {
// 使用 2 个空格缩进
tabWidth: 2,
// 行尾需要有分号
semi: true,
// 一行最多 80 个字符
printWidth: 80,
// 使用单引号
singleQuote: true,
// 对象的 key 是否有引号格式保持一致
quoteProps: 'consistent',
// html 空格敏感规则
htmlWhitespaceSensitivity: 'ignore',
// 不缩进 vue 文件中的 script 和 style
vueIndentScriptAndStyle: false,
// 多行时不强制尾随逗号
trailingComma: 'none',
// 箭头函数参数括号
arrowParens: 'avoid',
// jsx 中使用单引号
jsxSingleQuote: true
};

1
.tool-versions Normal file
View File

@@ -0,0 +1 @@
java openjdk-21.0.2

33
commitlint.config.js Normal file
View File

@@ -0,0 +1,33 @@
/** @type {import("@commitlint/types").UserConfig} */
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'body-leading-blank': [2, 'always'],
'body-max-line-length': [2, 'always', 200],
'footer-leading-blank': [1, 'always'],
'header-max-length': [2, 'always', 200],
'subject-empty': [2, 'never'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'feat',
'fix',
'perf',
'style',
'docs',
'test',
'refactor',
'build',
'ci',
'chore',
'revert',
'enhance',
'workflow',
'types',
'release'
]
]
}
};

15
components.d.ts vendored Normal file
View File

@@ -0,0 +1,15 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
import '@vue/runtime-core'
export {}
declare module '@vue/runtime-core' {
export interface GlobalComponents {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}
}

View File

@@ -0,0 +1,19 @@
/**
* If you use the template method for development, you can use the unplugin-vue-components plugin to enable on-demand loading support.
* 按需引入
* https://github.com/antfu/unplugin-vue-components
* https://arco.design/vue/docs/start
* Although the Pro project is full of imported components, this plugin will be used by default.
* 虽然Pro项目中是全量引入组件但此插件会默认使用。
*/
import Components from 'unplugin-vue-components/vite';
import { ArcoResolver } from 'unplugin-vue-components/resolvers';
export default function configArcoResolverPlugin() {
const arcoResolverPlugin = Components({
dirs: [], // Avoid parsing src/components. 避免解析到src/components
deep: false,
resolvers: [ArcoResolver()]
});
return arcoResolverPlugin;
}

View File

@@ -0,0 +1,12 @@
/**
* Theme import
* 样式按需引入
* https://github.com/arco-design/arco-plugins/blob/main/packages/plugin-vite-vue/README.md
* https://arco.design/vue/docs/start
*/
import { vitePluginForArco } from '@arco-plugins/vite-vue';
export default function configArcoStyleImportPlugin() {
const arcoResolverPlugin = vitePluginForArco({});
return arcoResolverPlugin;
}

34
config/plugin/compress.ts Normal file
View File

@@ -0,0 +1,34 @@
/**
* Used to package and output gzip. Note that this does not work properly in Vite, the specific reason is still being investigated
* gzip压缩
* https://github.com/anncwb/vite-plugin-compression
*/
import type { Plugin } from 'vite';
import compressPlugin from 'vite-plugin-compression';
export default function configCompressPlugin(
compress: 'gzip' | 'brotli',
deleteOriginFile = false
): Plugin | Plugin[] {
const plugins: Plugin[] = [];
if (compress === 'gzip') {
plugins.push(
compressPlugin({
ext: '.gz',
deleteOriginFile
})
);
}
if (compress === 'brotli') {
plugins.push(
compressPlugin({
ext: '.br',
algorithm: 'brotliCompress',
deleteOriginFile
})
);
}
return plugins;
}

37
config/plugin/imagemin.ts Normal file
View File

@@ -0,0 +1,37 @@
/**
* Image resource files used to compress the output of the production environment
* 图片压缩
* https://github.com/anncwb/vite-plugin-imagemin
*/
import viteImagemin from 'vite-plugin-imagemin';
export default function configImageminPlugin() {
const imageminPlugin = viteImagemin({
gifsicle: {
optimizationLevel: 7,
interlaced: false
},
optipng: {
optimizationLevel: 7
},
mozjpeg: {
quality: 20
},
pngquant: {
quality: [0.8, 0.9],
speed: 4
},
svgo: {
plugins: [
{
name: 'removeViewBox'
},
{
name: 'removeEmptyAttrs',
active: false
}
]
}
});
return imageminPlugin;
}

View File

@@ -0,0 +1,18 @@
/**
* Generation packaging analysis
* 生成打包分析
*/
import visualizer from 'rollup-plugin-visualizer';
import { isReportMode } from '../utils';
export default function configVisualizerPlugin() {
if (isReportMode()) {
return visualizer({
filename: './node_modules/.cache/visualizer/stats.html',
open: true,
gzipSize: true,
brotliSize: true
});
}
return [];
}

9
config/utils/index.ts Normal file
View File

@@ -0,0 +1,9 @@
/**
* Whether to generate package preview
* 是否生成打包报告
*/
export default {};
export function isReportMode(): boolean {
return process.env.REPORT === 'true';
}

View File

@@ -0,0 +1,56 @@
import { resolve } from 'path';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';
import svgLoader from 'vite-svg-loader';
import configArcoStyleImportPlugin from './plugin/arcoStyleImport';
import type { UserConfigExport, ConfigEnv } from 'vite';
export default ({}: ConfigEnv): UserConfigExport => {
return {
base: '/',
plugins: [
vue(),
vueJsx(),
svgLoader({ svgoConfig: {} }),
configArcoStyleImportPlugin()
],
resolve: {
alias: [
{
find: '@',
replacement: resolve(__dirname, '../src')
},
{
find: 'assets',
replacement: resolve(__dirname, '../src/assets')
},
{
find: 'vue',
replacement: 'vue/dist/vue.esm-bundler.js' // compile template
}
],
extensions: ['.ts', '.js']
},
define: {
'process.env': {}
},
publicDir: 'public',
optimizeDeps: {
include: ['mitt', 'dayjs', 'axios', 'pinia', '@vueuse/core'],
exclude: ['@iconify-icons/lets-icons']
},
css: {
preprocessorOptions: {
less: {
modifyVars: {
hack: `true; @import (reference) "${resolve(
'src/assets/style/variables.less'
)}";`
},
math: 'parens-division',
javascriptEnabled: true
}
}
}
};
};

View File

@@ -0,0 +1,19 @@
import baseConfig from './vite.config.base.mts';
import type { UserConfigExport, ConfigEnv } from 'vite';
export default ({ mode }: ConfigEnv): UserConfigExport => {
return {
mode: 'development',
server: {
open: true,
fs: {
strict: true
},
warmup: {
// 预热的客户端文件首页、views、 components
clientFiles: ['./index.html', './src/{views,components}/*']
}
},
...baseConfig({ mode } as ConfigEnv)
};
};

View File

@@ -0,0 +1,38 @@
import baseConfig from './vite.config.base.mts';
import configCompressPlugin from './plugin/compress';
import configVisualizerPlugin from './plugin/visualizer';
import configArcoResolverPlugin from './plugin/arcoResolver';
import configImageminPlugin from './plugin/imagemin';
import type { UserConfigExport, ConfigEnv } from 'vite';
export default ({ mode }: ConfigEnv): UserConfigExport => {
return {
mode: 'production',
plugins: [
configCompressPlugin('gzip'),
configVisualizerPlugin(),
configArcoResolverPlugin(),
configImageminPlugin()
],
build: {
// 浏览器兼容目标
target: 'es2015',
// 是否生成 source map 文件
sourcemap: false,
rollupOptions: {
output: {
entryFileNames: 'static/js/[name]-[hash].js',
chunkFileNames: 'static/js/[name]-[hash].js',
assetFileNames: 'static/[ext]/[name]-[hash].[ext]',
manualChunks: {
arco: ['@arco-design/web-vue'],
chart: ['echarts', 'vue-echarts'],
vue: ['vue', 'vue-router', 'pinia', '@vueuse/core']
}
}
},
chunkSizeWarningLimit: 2000
},
...baseConfig({ mode } as ConfigEnv)
};
};

33
deploy/Dockerfile Normal file
View File

@@ -0,0 +1,33 @@
FROM node:22 AS builder
WORKDIR /build
COPY . .
# 定义参数
ARG USE_PROXY
# 根据USE_PROXY参数设置环境变量
RUN if [ "$USE_PROXY" = "1" ]; then \
npm config set registry https://mirrors.huaweicloud.com/repository/npm/ && \
npm i -g nrm && nrm use taobao; \
fi \
&& npm install -g npm@latest pnpm && pnpm i && pnpm build
FROM nginx:latest
# 替换nginx中的地址
# ARG NGINX_CONFIG_URL
ENV NGINX_CONFIG_URL=kami_backend
WORKDIR /app
# 替换默认的配置文件
COPY --from=builder /build/deploy/nginx/ /etc/nginx/conf.d/
COPY --from=builder /build/dist/ /app/
# 替换文件里的内容
RUN sed -i "s#NGINX_CONFIG_URL#${NGINX_CONFIG_URL}#g" /etc/nginx/conf.d/default.conf
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# 添加安全检查
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD curl -f http://127.0.0.1:12400/api/monitor/heathcheck || exit 1
# CMD ["sed", "-i", "'s#NGINX_CONFIG_URL#${NGINX_CONFIG_URL}#g'", "/etc/nginx/conf.d/default.conf && nginx ", "-g", "'daemon off;'"]
EXPOSE 12400

View File

@@ -0,0 +1,19 @@
services:
kami_frontend:
build:
context: ../.
dockerfile: ./deploy/Dockerfile
args:
- USE_PROXY=1
container_name: kami_frontend
image: kami_frontend:latest
ports:
- 12400:12400
networks:
- 1panel-network
labels:
createdBy: Developer
networks:
1panel-network:
external: true

24
deploy/docker-compose.yml Normal file
View File

@@ -0,0 +1,24 @@
services:
kami_frontend:
build:
context: ../.
dockerfile: ./deploy/Dockerfile
args:
- USE_PROXY=$USE_PROXY
environment:
- NGINX_CONFIG_URL=$NGINX_CONFIG_URL
container_name: $CONTAINER
image: kami_frontend:$VERSION
restart: always
ports:
- 127.0.0.1:$PORT:12400
networks:
1panel-network:
aliases:
- $ALIASES
labels:
createdBy: Developer
networks:
1panel-network:
external: true

23
deploy/nginx/default.conf Normal file
View File

@@ -0,0 +1,23 @@
server {
listen 12400;
server_name localhost;
client_max_body_size 100M; # 全局设置,影响所有的 server 块
location / {
root /app;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://NGINX_CONFIG_URL:12401/api/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#以下是新增配置
proxy_connect_timeout 120;
proxy_send_timeout 300;
proxy_read_timeout 300;
proxy_http_version 1.1;
}
}

154
eslint.config.js Normal file
View File

@@ -0,0 +1,154 @@
import js from '@eslint/js';
import pluginVue from 'eslint-plugin-vue';
import * as parserVue from 'vue-eslint-parser';
import configPrettier from 'eslint-config-prettier';
import pluginPrettier from 'eslint-plugin-prettier';
import { defineFlatConfig } from 'eslint-define-config';
import * as parserTypeScript from '@typescript-eslint/parser';
import pluginTypeScript from '@typescript-eslint/eslint-plugin';
export default defineFlatConfig([
{
...js.configs.recommended,
ignores: ['**/.*', '*.d.ts', 'public/*', 'dist/*', 'src/assets/**'],
languageOptions: {
globals: {}
},
plugins: {
prettier: pluginPrettier
},
rules: {
...configPrettier.rules,
...pluginPrettier.configs.recommended.rules,
// 禁止使用 var
'no-var': 'error',
// 禁止使用 console
'no-console': 'off',
// 禁止使用 debugger
'no-debugger': 'error',
// 禁止不必要的转义字符
'no-useless-escape': 'off',
// 禁止出现未使用过的变量,忽略 _ 开头的参数和变量
'no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_'
}
],
'prettier/prettier': [
'error',
{
endOfLine: 'auto'
}
]
}
},
{
files: ['**/*.?([cm])ts', '**/*.?([cm])tsx'],
languageOptions: {
parser: parserTypeScript,
parserOptions: {
sourceType: 'module'
}
},
plugins: {
'@typescript-eslint': pluginTypeScript
},
rules: {
...pluginTypeScript.configs.strict.rules,
'@typescript-eslint/ban-types': 'off',
// 检查并报错重复声明的变量
'@typescript-eslint/no-redeclare': 'error',
// 关闭对 TypeScript 注释的限制
'@typescript-eslint/ban-ts-comment': 'off',
// 允许使用显式的 `any` 类型
'@typescript-eslint/no-explicit-any': 'off',
// 建议使用 `as const` 而不是 `const` 断言类型
'@typescript-eslint/prefer-as-const': 'warn',
// 允许使用非空断言 `!`
'@typescript-eslint/no-non-null-assertion': 'off',
// 强制导入类型时不产生副作用
'@typescript-eslint/no-import-type-side-effects': 'error',
// 关闭对显式指定导出函数和类的类型的要求
'@typescript-eslint/explicit-module-boundary-types': 'off',
// 强制一致的类型导入方式
'@typescript-eslint/consistent-type-imports': [
'error',
{ disallowTypeAnnotations: false, fixStyle: 'inline-type-imports' }
],
// 建议优先使用字面量枚举成员
'@typescript-eslint/prefer-literal-enum-member': [
'error',
{ allowBitwiseExpressions: true }
],
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_'
}
]
}
},
{
files: ['**/*.?([cm])js'],
rules: {
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-var-requires': 'off'
}
},
{
files: ['**/*.d.ts'],
rules: {
'eslint-comments/no-unlimited-disable': 'off',
'import/no-duplicates': 'off',
'unused-imports/no-unused-vars': 'off'
}
},
{
files: ['**/*.vue'],
languageOptions: {
globals: {},
parser: parserVue,
parserOptions: {
ecmaFeatures: {
jsx: true
},
extraFileExtensions: ['.vue'],
parser: '@typescript-eslint/parser',
sourceType: 'module'
}
},
plugins: {
vue: pluginVue
},
processor: pluginVue.processors['.vue'],
rules: {
...pluginVue.configs.base.rules,
...pluginVue.configs['vue3-essential'].rules,
...pluginVue.configs['vue3-recommended'].rules,
// 关闭对于组件 props 需要默认值的检查
'vue/require-default-prop': 'off',
// 关闭对于单行 HTML 元素内容换行的检查
'vue/singleline-html-element-content-newline': 'off',
// 关闭对于每行 HTML 属性数量的限制检查
'vue/max-attributes-per-line': 'off',
// 强制自定义事件的命名为驼峰式命名
'vue/custom-event-name-casing': ['error', 'camelCase'],
// 显示警告,不建议使用 v-text 指令
'vue/no-v-text': 'warn',
// 显示警告,建议在 Vue 组件中添加间距行
'vue/padding-line-between-blocks': 'warn',
// 显示警告,建议直接导出 Vue 组件
'vue/require-direct-export': 'warn',
// 允许使用单个单词作为组件名
'vue/multi-word-component-names': 'off',
// 关闭对于 TypeScript 注释的检查
'@typescript-eslint/ban-ts-comment': 'off',
// 关闭对于显式声明 any 类型的检查
'@typescript-eslint/no-explicit-any': 'off',
'no-unused-vars': 'off'
}
}
]);

17
index.html Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- <link rel="shortcut icon" type="image/x-icon"
href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico"> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>卡销终端解决方案(核销端)</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

7
openapitools.json Normal file
View File

@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.10.0"
}
}

129
package.json Normal file
View File

@@ -0,0 +1,129 @@
{
"name": "arco-design-pro-vue",
"description": "Arco Design Pro for Vue",
"version": "1.0.0",
"private": true,
"type": "module",
"author": "ArcoDesign Team",
"license": "MIT",
"scripts": {
"dev": "vite --config ./config/vite.config.dev.mts",
"build": "vue-tsc --noEmit && vite build --config ./config/vite.config.prod.mts",
"type:check": "tsc --noEmit && vue-tsc --noEmit --skipLibCheck",
"eslint": "eslint --max-warnings 0 \"{src,mock,config}/**/*.{vue,js,ts,tsx}\"",
"eslint:fix": "eslint --max-warnings 0 \"{src,mock,config}/**/*.{vue,js,ts,tsx}\" --fix",
"stylelint": "stylelint \"**/*.{html,vue,css,less}\"",
"stylelint:fix": "stylelint \"**/*.{html,vue,css,less}\" --fix",
"prettier": "prettier --check \"src/**/*.{js,ts,json,tsx,css,scss,vue,html,md}\"",
"prettier:fix": "prettier --write \"src/**/*.{js,ts,json,tsx,css,scss,vue,html,md}\"",
"lint": "pnpm eslint && pnpm stylelint && pnpm prettier",
"lint:fix": "pnpm eslint:fix && pnpm stylelint:fix && pnpm prettier:fix",
"lint-staged": "npx lint-staged",
"clean:cache": "rimraf .eslintcache && rimraf node_modules && pnpm install",
"prepare": "husky",
"release": "bumpp",
"gen:api": "openapi-generator-cli generate -i http://127.0.0.1:12401/api.json -g typescript-axios -o ./src/api/generated -p withSeparateModelsAndApi=true,modelPackage=models,apiPackage=apis,supportsES6=true,useTagAsApiPackage=true,sortParamsByRequiredFlag=true,snapshot=true"
},
"lint-staged": {
"*.{js,ts,jsx,tsx}": [
"prettier --write",
"eslint --fix"
],
"*.vue": [
"stylelint --fix",
"prettier --write",
"eslint --fix"
],
"*.{less,css}": [
"stylelint --fix",
"prettier --write"
]
},
"dependencies": {
"@arco-design/web-vue": "^2.57.0",
"@codemirror/commands": "^6.8.0",
"@codemirror/lang-css": "^6.3.1",
"@codemirror/lang-javascript": "^6.2.3",
"@codemirror/language": "^6.11.0",
"@codemirror/language-data": "^6.5.1",
"@codemirror/theme-one-dark": "^6.1.2",
"@codemirror/view": "^6.36.5",
"@milkdown/kit": "^7.7.0",
"@milkdown/theme-nord": "^7.7.0",
"@milkdown/vue": "^7.7.0",
"@openapitools/openapi-generator-cli": "^2.18.4",
"@vueuse/core": "^10.11.1",
"axios": "^1.8.4",
"codemirror": "^6.0.1",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.13",
"echarts": "^5.6.0",
"lodash": "^4.17.21",
"mitt": "^3.0.1",
"nprogress": "^0.2.0",
"pinia": "^2.3.1",
"query-string": "^9.1.1",
"rollup": "^4.38.0",
"sortablejs": "^1.15.6",
"vue": "^3.5.13",
"vue-echarts": "^6.7.3",
"vue-router": "^4.5.0"
},
"devDependencies": {
"@arco-plugins/vite-vue": "^1.4.5",
"@commitlint/cli": "^19.8.0",
"@commitlint/config-conventional": "^19.8.0",
"@commitlint/types": "^19.8.0",
"@eslint/js": "^9.23.0",
"@types/crypto-js": "^4.2.2",
"@types/lodash": "^4.17.16",
"@types/mockjs": "^1.0.10",
"@types/node": "^22.13.14",
"@types/nprogress": "^0.2.3",
"@types/sortablejs": "^1.15.8",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"@vitejs/plugin-vue": "^5.2.3",
"@vitejs/plugin-vue-jsx": "^4.1.2",
"autoprefixer": "^10.4.21",
"consola": "^3.4.2",
"cross-env": "^7.0.3",
"eslint": "^9.23.0",
"eslint-config-prettier": "^9.1.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-prettier": "^5.2.5",
"eslint-plugin-vue": "^9.33.0",
"husky": "^9.1.7",
"less": "^4.2.2",
"lint-staged": "^15.5.0",
"mockjs": "^1.1.0",
"postcss-html": "^1.8.0",
"prettier": "^3.5.3",
"rollup-plugin-visualizer": "^5.12.0",
"stylelint": "^16.17.0",
"stylelint-config-recess-order": "^5.1.1",
"stylelint-config-recommended-vue": "^1.6.0",
"stylelint-config-standard": "^37.0.0",
"stylelint-config-standard-less": "^3.0.1",
"stylelint-config-standard-vue": "^1.0.0",
"stylelint-order": "^6.0.4",
"stylelint-prettier": "^5.0.3",
"typescript": "^5.8.2",
"unplugin-vue-components": "^0.27.5",
"vite": "^5.4.15",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-imagemin": "^0.6.1",
"vite-svg-loader": "^5.1.0",
"vue-eslint-parser": "^9.4.3",
"vue-tsc": "^2.2.8"
},
"engines": {
"node": "^18.0.0 || >=20.0.0",
"pnpm": ">=8.11.0"
},
"resolutions": {
"bin-wrapper": "npm:bin-wrapper-china",
"gifsicle": "5.2.0"
},
"packageManager": "pnpm@10.7.0+sha512.6b865ad4b62a1d9842b61d674a393903b871d9244954f652b8842c2b553c72176b278f64c463e52d40fff8aba385c235c8c9ecf5cc7de4fd78b8bb6d49633ab6"
}

10685
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

4
pnpm-workspace.yaml Normal file
View File

@@ -0,0 +1,4 @@
ignoredBuiltDependencies:
- '@nestjs/core'
- '@openapitools/openapi-generator-cli'
- vue-echarts

BIN
public/assets/demo.zip Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

10
src/App.vue Normal file
View File

@@ -0,0 +1,10 @@
<template>
<a-config-provider>
<router-view />
<global-setting />
</a-config-provider>
</template>
<script lang="ts" setup>
import GlobalSetting from '@/components/global-setting/index.vue';
</script>

125
src/api/apple-card-info.ts Normal file
View File

@@ -0,0 +1,125 @@
import axios from 'axios';
import qs from 'query-string';
import type { CommonPageResult, CommonStrIdParams } from './common';
import { handleDownLoadFile } from './utils';
import type { Pagination } from '@/types/global';
import type { KamiApiCardInfoJdV1JDAccountCookieCheckRes } from './generated';
export interface AppleCardAddRecord {
account: string;
password: string;
}
export interface AppleCardRecord extends AppleCardAddRecord {
status: 0 | 1 | 2 | 3; // 账号状态
todayRechargeAmount: number;
todayRechargeCount: number;
todayRechargeDatetime: string;
balance: number;
uploadUser: {
id: string;
username: string;
userNickname: string;
};
}
export interface AppleCardParams
extends Partial<AppleCardRecord>,
Partial<CommonStrIdParams>,
Pagination {}
export interface AppleCardResRecord
extends AppleCardRecord,
CommonStrIdParams {}
export interface AppleCardRecordWithID
extends AppleCardAddRecord,
CommonStrIdParams {}
// 获取苹果账号列表
export function queryAppleCardList(params: AppleCardParams) {
return axios.get<CommonPageResult<AppleCardResRecord>>(
'/api/cardInfo/AppleCard/account/getList',
{
params,
paramsSerializer: obj => {
return qs.stringify(obj);
}
}
);
}
export function addAppleCard(data: AppleCardAddRecord) {
return axios.post('/api/cardInfo/AppleCard/account/create', data);
}
export function updateAppleCard(data: AppleCardRecordWithID) {
return axios.put('/api/cardInfo/AppleCard/account/update', data);
}
export function deleteAppleCard(params: CommonStrIdParams) {
return axios.delete('/api/cardInfo/AppleCard/account/delete', { params });
}
export function batchUploadAppleCardAPI(data: Blob) {
// 上传xlsx
return axios.post('/api/cardInfo/AppleCard/account/batchAdd', data, {
headers: {
'Content-Type': 'multipart/form-data'
}
});
}
// 添加苹果卡
export async function downloadAppleAccountTemplteAPI() {
const response = await axios.get<Blob>(
'/api/cardInfo/AppleCard/account/downloadTemplate',
{
responseType: 'blob'
}
);
handleDownLoadFile(response.data, '苹果账号批量导入模板.xlsx');
}
export interface AppleWalletParams extends Pagination {
accountId?: string;
accountName?: string;
}
export interface AppleWalletListItem {
accountName: string;
orderNo: string;
balanceBeforeItunes: number;
balanceBeforeAutoIncrement: number;
balanceAfterItunes: number;
balanceAfterAutoIncrement: number;
amount: number;
description: string;
created: string;
}
export function queryAppleWalletList(params: AppleWalletParams) {
return axios.get<CommonPageResult<AppleWalletListItem>>(
'/api/cardInfo/AppleCard/account/getWalletList',
{
params,
paramsSerializer: obj => {
return qs.stringify(obj);
}
}
);
}
export function continueOrSuspendRechargeAPI(data: { id: string }) {
return axios.put(
'/api/cardInfo/AppleCard/account/status/continueOrRestart',
data
);
}
export function detectCookie(data: { cookie: string }) {
return axios.post<KamiApiCardInfoJdV1JDAccountCookieCheckRes>(
'/api/cardInfo/JDCard/account/checkCookie',
data
);
}

View File

@@ -0,0 +1,125 @@
import axios from 'axios';
import qs from 'query-string';
import type { CommonPageResult, CommonResult } from './common';
import type { Pagination } from '@/types/global';
import { handleDownLoadFile } from '@/api/utils.ts';
import { isUndefined } from '@/utils/is';
export interface AppleCardRechargeOrderRecord {
id: number;
orderNo: string;
actualAmount: number; // 实际充值金额
cardAmount: number;
balance: number; // 账户余额
accountName: string;
attach: string;
notifyStatus: number;
merchantId: string;
createdAt: string; // 订单创建时间,发起充值时间
}
export interface AppleCardRechargeOrderParams
extends Partial<AppleCardRechargeOrderRecord>,
Pagination {
dateRange?: Date[];
startDate?: Date | null;
endDate?: Date | null;
}
export interface AppleCardOperationHistoryList {
id: number;
rechargeId: string;
account: string;
operation: string; // 操作
remark: string;
createdAt: string; // 操作时间
}
// 获取充值列表
export function queryAppleCardRechargeOrderList(
params: AppleCardRechargeOrderParams
) {
if (!isUndefined(params.dateRange)) {
switch (params.dateRange.length) {
case 2: {
params.startDate = params.dateRange[0];
params.endDate = params.dateRange[1];
break;
}
case 1: {
params.startDate = params.dateRange[0];
break;
}
}
}
delete params.dateRange;
return axios.get<CommonPageResult<AppleCardRechargeOrderRecord>>(
'/api/cardInfo/appleCard/rechargeOrder/list',
{
params,
paramsSerializer: obj => {
return qs.stringify(obj);
}
}
);
}
// 获取充值操作记录
export function queryAppleCardOperationHistoryList(params: {
orderNo: string;
}) {
return axios.get<CommonResult<AppleCardOperationHistoryList>>(
'/api/cardInfo/AppleCard/rechargeOrder/getHistoryList',
{
params,
paramsSerializer: obj => {
return qs.stringify(obj);
}
}
);
}
// 手动回调订单
export function callBackOrderManualAPI(data: {
orderNo?: string;
rechargeId?: string;
}) {
return axios.post(
'/api/cardInfo/appleCard/rechargeOrder/callbackByManual',
data
);
}
export function modityActualAmountAPI(data: {
orderNo: string;
actualAmount: number;
totpCode: string;
}) {
return axios.post(
'/api/cardInfo/appleCard/rechargeOrder/modifyActualAmount',
data
);
}
export function modifyStatusToSucceedAPI(data: { orderNo: string }) {
return axios.post('/cardInfo/appleCard/rechargeOrder/setOrderSucceed', data);
}
export async function downloadDataListApi(params: { orderNo: string }) {
const response = await axios.get<Blob>(
'/api/cardInfo/appleCard/rechargeOrder/download',
{
responseType: 'blob',
params,
paramsSerializer: obj => {
return qs.stringify(obj);
}
}
);
handleDownLoadFile(response.data, 'apple.xlsx');
}
// 重置订单状态
export function resetOrderStatusAPI(data: { orderNo: string }) {
return axios.post('/api/cardInfo/appleCard/rechargeOrder/resetStatus', data);
}

View File

@@ -0,0 +1,71 @@
import axios from 'axios';
import type { CommonPageResult } from './common';
import qs from 'query-string';
import type { Pagination } from '@/types/global';
// 设置是否开启偷卡
export function setAppleCardStealSettings(data: { stealStatus: number }) {
return axios.post('/api/cardInfo/appleCard/steal/setStatus', data);
}
// 获取是否开启偷卡
export function getAppleCardStealSettings() {
return axios.get<{ stealStatus: number }>(
'/api/cardInfo/appleCard/steal/getStatus'
);
}
// 设置单个状态是否启用
export function setAppleCardStealStatus(data: { id: number; status: number }) {
return axios.put('/api/cardInfo/appleCard/steal/setRuleStatus', data);
}
export interface AppleCardStealAdd {
name: string;
targetUserId: string;
storageUserId: string;
amount: number;
targetAmount: number;
intervalTime: number;
status: number;
}
export interface AppleCardStealEdit extends AppleCardStealAdd {
id: number;
}
export interface AppleCardStealList extends AppleCardStealEdit {
stealTotalAmount: number;
createdAt: string;
updatedAt: string;
}
export type AppleCardStealListParams = Pagination;
// 获取偷卡列表
export function getAppleCardStealList(params: AppleCardStealListParams) {
return axios.get<CommonPageResult<AppleCardStealList>>(
'/api/cardInfo/appleCard/steal/getRuleList',
{
params,
paramsSerializer: obj => {
return qs.stringify(obj);
}
}
);
}
// 添加偷卡规则
export function addAppleCardStealRule(data: AppleCardStealAdd) {
return axios.post('/api/cardInfo/appleCard/steal/addRule', data);
}
// 编辑偷卡规则
export function editAppleCardStealRule(data: AppleCardStealEdit) {
return axios.put('/api/cardInfo/appleCard/steal/updateRule', data);
}
// 删除偷卡规则
export function deleteAppleCardStealRule(params: { id: number }) {
return axios.delete('/api/cardInfo/appleCard/steal/deleteRule', { params });
}

117
src/api/card-jd-account.ts Normal file
View File

@@ -0,0 +1,117 @@
import axios from 'axios';
import qs from 'query-string';
import type { CommonPageResult, CommonStrIdParams } from './common';
import type { Pagination } from '@/types/global';
import { handleDownLoadFile } from './utils';
import type { KamiApiCardInfoJdV1JDAccountCookieBatchInfo } from './generated';
export interface jdCardAddRecord {
name: string;
cookie: string;
status: number;
maxAmountLimit: number;
wsKey?: string;
remark?: string;
}
export interface JdCardUpdateRecord
extends jdCardAddRecord,
CommonStrIdParams {}
export interface JdCardRecord extends JdCardUpdateRecord {
status: 0 | 1 | 2 | 3; // 账号状态
nickname: string;
}
export interface JDCardParams
extends Partial<JdCardRecord>,
Partial<CommonStrIdParams>,
Pagination {}
export function addJDCard(data: jdCardAddRecord) {
return axios.post('/api/cardInfo/JDCard/account/create', data);
}
export function updateJDCard(data: JdCardUpdateRecord) {
return axios.put('/api/cardInfo/JDCard/account/update', data);
}
export function deleteJDCard(params: CommonStrIdParams) {
return axios.delete('/api/cardInfo/JDCard/account/delete', { params });
}
export function updateJDCardStatus(data: { id: string; status: number }) {
return axios.put('/api/cardInfo/JDCard/account/updateStatus', data);
}
// 获取苹果账号列表
export function queryJDCardList(params: JDCardParams) {
return axios.get<CommonPageResult<JdCardUpdateRecord>>(
'/api/cardInfo/JDCard/account/getList',
{
params,
paramsSerializer: obj => {
return qs.stringify(obj);
}
}
);
}
export interface JDAccountWalletParams extends Pagination {
accountId?: string;
}
export interface JDAccountListItem {
id: number;
accountId: string;
cookie: string;
orderNo: number;
amount: number; // 在 TypeScript 中float 类型通常用 number 表示
remark: string;
operationStatus: string;
createdAt?: Date; // 使用了可选属性和 Date 对象来对应 *gtime.Time
updatedAt?: Date; // 假设 gtime.Time 类似于 JavaScript 的 Date
deletedAt?: Date; // 如果这些字段可以是 null则需要加上 ?
}
// 获取账号名歘
export function queryJDAccountWalletList(params: JDAccountWalletParams) {
return axios.get<CommonPageResult<JDAccountListItem>>(
'/api/cardInfo/JDCard/account/getWalletList',
{
params,
paramsSerializer: obj => {
return qs.stringify(obj);
}
}
);
}
// 刷新账号当前状态
export function refreshJDCardStatus(data: CommonStrIdParams) {
return axios.post('/api/cardInfo/JDCard/account/refreshStatus', data);
}
// 下载苹果cookie数据
export async function downloadJDCardData() {
const response = await axios.get(
'/api/cardInfo/JDCard/account/downloadTemplate',
{
responseType: 'blob'
}
);
handleDownLoadFile(response.data, '苹果账号批量导入模板.xlsx');
}
export function batchAdd(data: {
list: Array<KamiApiCardInfoJdV1JDAccountCookieBatchInfo>;
}) {
return axios.post('/api/cardInfo/JDCard/account/batchAdd', data);
}
export async function downloadDataList() {
const response = await axios.get('/api/cardInfo/JDCard/account/download', {
responseType: 'blob'
});
handleDownLoadFile(response.data, '苹果账号下载数据.xlsx');
}

160
src/api/card-jd-oder.ts Normal file
View File

@@ -0,0 +1,160 @@
import type { Pagination } from '@/types/global';
import qs from 'query-string';
import type { CommonResult } from './common';
import axios from 'axios';
import type {
KamiApiCardInfoJdV1JDConfigGetRes,
KamiApiCardInfoJdV1JDConfigSetReq,
KamiApiCardInfoJdV1ListRes
} from './generated';
export interface JdCardOrderRecord {
/**
* @description
*/
id: number;
/**
* @description
*/
orderNo: string;
/**
* @description
*/
merchantId: string;
/**
* @description
*/
attach: string;
/**
* @description
*/
cookie: string;
/**
* @description
*/
accountId: number;
/**
* @description
*/
giftCardPwd: string;
/**
* @description 回调
*/
notifyUrl: string;
notifyStatus: number;
/**
* @description
*/
amount: number;
/**
* @description 备注
*/
remark: string;
/**
* @description 1.兑换成功 2.兑换失败
*/
status: number;
/**
* @description
*/
createdAt?: Date;
/**
* @description
*/
updatedAt?: Date;
/**
* @description
*/
deletedAt?: Date;
}
export interface JdCardOrderParams
extends Partial<JdCardOrderRecord>,
Pagination {
accountNickName?: string;
dateRange?: Date[];
}
// 获取充值列表
export function queryJdCardOrderList(params: JdCardOrderParams) {
// if (!isUndefined(params.dateRange)) {
// switch (params.dateRange.length) {
// case 2: {
// params.startDate = params.dateRange[0];
// params.endDate = params.dateRange[1];
// break;
// }
// case 1: {
// params.startDate = params.dateRange[0];
// break;
// }
// }
// }
// if (isArray(params.dateRange)) {
// params.dateRange.forEach(element => {
// params['dateRange[]'] = element;
// });
// }
// delete params.dateRange;
return axios.get<KamiApiCardInfoJdV1ListRes>(
'/api/cardInfo/JDCard/order/list',
{
params,
paramsSerializer: obj => {
return qs.stringify(obj, { arrayFormat: 'bracket' });
}
}
);
}
export interface JDOrderHistoryList {
id: number;
orderNo: string;
accountName: string;
accountId: string;
accountCookie: string;
operationStatus: number;
responseRawData: string;
amount: number; // TypeScript 默认没有浮点数类型,使用 number 表示
remark: string;
createdAt: string; // 使用 ? 表示该字段是可选的
updatedAt: string;
deletedAt?: string;
}
// 获取充值操作记录
export function queryJDOrderHistoryList(params: { orderNo: string }) {
return axios.get<CommonResult<JDOrderHistoryList>>(
'/api/cardInfo/JDCard/order/getHistoryList',
{
params,
paramsSerializer: obj => {
return qs.stringify(obj);
}
}
);
}
export function getJDConfig() {
return axios.get<KamiApiCardInfoJdV1JDConfigGetRes>(
'/api/cardInfo/JDCard/config/get'
);
}
export function updateJDConfig(data: KamiApiCardInfoJdV1JDConfigSetReq) {
return axios.post('/api/cardInfo/JDCard/config/set', data);
}

View File

@@ -0,0 +1,124 @@
import axios from 'axios';
import qs from 'query-string';
import type { CommonPageResult, CommonStrIdParams } from './common';
import type { Pagination } from '@/types/global';
import { handleDownLoadFile } from './utils';
import type {
KamiApiCardInfoWalmartV1AccountUpdateReq,
KamiApiCardInfoWalmartV1AccountCreateReq,
KamiApiCardInfoWalmartV1AccountCookieBatchInfo,
KamiInternalModelEntityV1CardRedeemAccountHistory,
KamiApiCardInfoWalmartV1AccountCookieCheckRes,
KamiApiCardInfoWalmartV1AccountListRecord
} from './generated';
export interface walmartCardAddRecord {
name: string;
cookie: string;
status: number;
maxAmountLimit: number;
wsKey?: string;
remark?: string;
createdUserName?: string;
}
export interface walmartCardUpdateRecord
extends walmartCardAddRecord,
CommonStrIdParams {}
export interface walmartCardRecord extends walmartCardUpdateRecord {
status: 0 | 1 | 2 | 3; // 账号状态
nickname: string;
}
export interface WalmartCardParams
extends Partial<walmartCardRecord>,
Partial<CommonStrIdParams>,
Pagination {
groupId?: number;
}
export function addWalmartCard(data: KamiApiCardInfoWalmartV1AccountCreateReq) {
return axios.post('/api/cardInfo/walmart/account/create', data);
}
export function updateWalmartCard(
data: KamiApiCardInfoWalmartV1AccountUpdateReq
) {
return axios.put('/api/cardInfo/walmart/account/update', data);
}
export function deleteWalmartCard(params: CommonStrIdParams) {
return axios.delete('/api/cardInfo/walmart/account/delete', { params });
}
export function updateWalmartCardStatus(data: { id: string; status: number }) {
return axios.put('/api/cardInfo/walmart/account/updateStatus', data);
}
// 获取苹果账号列表
export function queryWalmartCardList(params: WalmartCardParams) {
return axios.get<CommonPageResult<KamiApiCardInfoWalmartV1AccountListRecord>>(
'/api/cardInfo/walmart/account/getList',
{
params,
paramsSerializer: obj => {
return qs.stringify(obj);
}
}
);
}
export interface WalmartAccountWalletParams extends Pagination {
accountId?: string;
}
// 获取账号名歘
export function queryWalmartAccountWalletList(
params: WalmartAccountWalletParams
) {
return axios.get<
CommonPageResult<KamiInternalModelEntityV1CardRedeemAccountHistory>
>('/api/cardInfo/walmart/account/getWalletList', {
params,
paramsSerializer: obj => {
return qs.stringify(obj);
}
});
}
// 刷新账号当前状态
export function refreshWalmartCardStatus(data: CommonStrIdParams) {
return axios.post('/api/cardInfo/walmart/account/refreshStatus', data);
}
// 下载苹果cookie数据
export async function downloadWalmartCardData() {
const response = await axios.get(
'/api/cardInfo/walmart/account/downloadTemplate',
{
responseType: 'blob'
}
);
handleDownLoadFile(response.data, '沃尔玛账号批量导入模板.xlsx');
}
export function batchAdd(data: {
list: Array<KamiApiCardInfoWalmartV1AccountCookieBatchInfo>;
}) {
return axios.post('/api/cardInfo/walmart/account/batchAdd', data);
}
export async function downloadDataList() {
const response = await axios.get('/api/cardInfo/walmart/account/download', {
responseType: 'blob'
});
handleDownLoadFile(response.data, '沃尔玛账号下载数据.xlsx');
}
export function detectCookie(data: { cookie: string }) {
return axios.post<KamiApiCardInfoWalmartV1AccountCookieCheckRes>(
'/api/cardInfo/walmart/account/checkCookie',
data
);
}

View File

@@ -0,0 +1,123 @@
import type { Pagination } from '@/types/global';
import qs from 'query-string';
import type { CommonResult } from './common';
import axios from 'axios';
import type {
KamiApiCardInfoWalmartV1RedeemConfigGetRes,
KamiApiCardInfoWalmartV1ListRes,
KamiInternalModelEntityV1CardRedeemOrderHistory
} from './generated';
export interface walmartCardOrderRecord {
/**
* @description
*/
id: number;
/**
* @description
*/
orderNo: string;
/**
* @description
*/
merchantId: string;
/**
* @description
*/
attach: string;
/**
* @description
*/
cookie: string;
/**
* @description
*/
accountId: number;
/**
* @description
*/
giftCardPwd: string;
/**
* @description 回调
*/
notifyUrl: string;
notifyStatus: number;
/**
* @description
*/
amount: number;
/**
* @description 备注
*/
remark: string;
/**
* @description 1.兑换成功 2.兑换失败
*/
status: number;
/**
* @description
*/
createdAt?: Date;
/**
* @description
*/
updatedAt?: Date;
/**
* @description
*/
deletedAt?: Date;
}
export interface walmartCardOrderParams
extends Partial<walmartCardOrderRecord>,
Pagination {
dateRange?: string[];
endDate?: Date | null;
accountNickName?: string;
groupId?: number | null;
}
// 获取充值列表
export function queryWalmartCardOrderList(params: walmartCardOrderParams) {
return axios.get<KamiApiCardInfoWalmartV1ListRes>(
'/api/cardInfo/walmart/order/list',
{
params,
paramsSerializer: obj => {
return qs.stringify(obj, { arrayFormat: 'bracket' });
}
}
);
}
// 获取充值操作记录
export function queryWalmartOrderHistoryList(params: { orderNo: string }) {
return axios.get<
CommonResult<KamiInternalModelEntityV1CardRedeemOrderHistory>
>('/api/cardInfo/walmart/order/getHistoryList', {
params,
paramsSerializer: obj => {
return qs.stringify(obj);
}
});
}
export function getWalmartConfig() {
return axios.get<Required<KamiApiCardInfoWalmartV1RedeemConfigGetRes>>(
'/api/cardInfo/walmart/config/get'
);
}

15
src/api/common.ts Normal file
View File

@@ -0,0 +1,15 @@
export interface CommonResult<T> {
list: T[];
}
export interface CommonPageResult<T> extends CommonResult<T> {
total: number;
}
export interface CommonNumIdParams {
id: number;
}
export interface CommonStrIdParams {
id: string;
}

22
src/api/dashboard.ts Normal file
View File

@@ -0,0 +1,22 @@
import axios from 'axios';
import type { TableData } from '@arco-design/web-vue/es/table/interface';
export interface ContentDataRecord {
x: string;
y: number;
}
export function queryContentData() {
return axios.get<ContentDataRecord[]>('/api/api/content-data');
}
export interface PopularRecord {
key: number;
clickNumber: string;
title: string;
increases: number;
}
export function queryPopularList(params: { type: string }) {
return axios.get<TableData[]>('/api/api/popular/list', { params });
}

4
src/api/generated/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
wwwroot/*.js
node_modules
typings
dist

View File

@@ -0,0 +1 @@
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm

View File

@@ -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

View File

@@ -0,0 +1,323 @@
.gitignore
.npmignore
api.ts
apis/default-api.ts
apis/totpapi.ts
base.ts
common.ts
configuration.ts
git_push.sh
index.ts
models/index.ts
models/kami-api-card-info-apple-v1-apple-card-list-record-upload-user.ts
models/kami-api-card-info-apple-v1-apple-card-list-record.ts
models/kami-api-card-info-apple-v1-call-back-order-manual-req.ts
models/kami-api-card-info-apple-v1-card-history-info-list-req.ts
models/kami-api-card-info-apple-v1-card-history-info-list-res.ts
models/kami-api-card-info-apple-v1-card-history-model.ts
models/kami-api-card-info-apple-v1-card-info-batch-add-from-xlsx-req.ts
models/kami-api-card-info-apple-v1-card-info-batch-add-from-xlsx-res.ts
models/kami-api-card-info-apple-v1-card-info-create-req.ts
models/kami-api-card-info-apple-v1-card-info-delete-req.ts
models/kami-api-card-info-apple-v1-card-info-list-req.ts
models/kami-api-card-info-apple-v1-card-info-list-res.ts
models/kami-api-card-info-apple-v1-card-info-suspend-or-continue-req.ts
models/kami-api-card-info-apple-v1-card-info-update-req.ts
models/kami-api-card-info-apple-v1-card-info-update-status-req.ts
models/kami-api-card-info-apple-v1-config-get-res.ts
models/kami-api-card-info-apple-v1-config-set-req.ts
models/kami-api-card-info-apple-v1-recharge-duplicated-card-pass-req.ts
models/kami-api-card-info-apple-v1-recharge-handler-req.ts
models/kami-api-card-info-apple-v1-recharge-handler-res.ts
models/kami-api-card-info-apple-v1-recharge-history-list-req.ts
models/kami-api-card-info-apple-v1-recharge-history-list-res.ts
models/kami-api-card-info-apple-v1-recharge-itunes-callback-req.ts
models/kami-api-card-info-apple-v1-recharge-list-download-req.ts
models/kami-api-card-info-apple-v1-recharge-list-req.ts
models/kami-api-card-info-apple-v1-recharge-list-res.ts
models/kami-api-card-info-apple-v1-recharge-order-modify-actual-amount-req.ts
models/kami-api-card-info-apple-v1-recharge-order-reset-status-req.ts
models/kami-api-card-info-apple-v1-recharge-steal-rule-add-req.ts
models/kami-api-card-info-apple-v1-recharge-steal-rule-delete-req.ts
models/kami-api-card-info-apple-v1-recharge-steal-rule-list-req.ts
models/kami-api-card-info-apple-v1-recharge-steal-rule-list-res.ts
models/kami-api-card-info-apple-v1-recharge-steal-rule-status-update-req.ts
models/kami-api-card-info-apple-v1-recharge-steal-rule-update-req.ts
models/kami-api-card-info-apple-v1-recharge-steal-setting-get-res.ts
models/kami-api-card-info-apple-v1-recharge-steal-setting-req.ts
models/kami-api-card-info-apple-v1-recharge-submit-query-req.ts
models/kami-api-card-info-apple-v1-recharge-submit-query-res.ts
models/kami-api-card-info-apple-v1-recharge-submit-req.ts
models/kami-api-card-info-apple-v1-recharge-submit-res.ts
models/kami-api-card-info-ctrip-v1-account-cookie-batch-add-req.ts
models/kami-api-card-info-ctrip-v1-account-cookie-batch-check-req.ts
models/kami-api-card-info-ctrip-v1-account-cookie-batch-check-res.ts
models/kami-api-card-info-ctrip-v1-account-cookie-batch-info.ts
models/kami-api-card-info-ctrip-v1-account-cookie-check-req.ts
models/kami-api-card-info-ctrip-v1-account-cookie-check-res.ts
models/kami-api-card-info-ctrip-v1-account-create-req.ts
models/kami-api-card-info-ctrip-v1-account-delete-req.ts
models/kami-api-card-info-ctrip-v1-account-list-record.ts
models/kami-api-card-info-ctrip-v1-account-list-req.ts
models/kami-api-card-info-ctrip-v1-account-list-res.ts
models/kami-api-card-info-ctrip-v1-account-refresh-status-req.ts
models/kami-api-card-info-ctrip-v1-account-update-req.ts
models/kami-api-card-info-ctrip-v1-account-update-status-req.ts
models/kami-api-card-info-ctrip-v1-account-wallet-list-req.ts
models/kami-api-card-info-ctrip-v1-account-wallet-list-res.ts
models/kami-api-card-info-ctrip-v1-list-req.ts
models/kami-api-card-info-ctrip-v1-list-res.ts
models/kami-api-card-info-ctrip-v1-order-callback-req.ts
models/kami-api-card-info-ctrip-v1-order-history-req.ts
models/kami-api-card-info-ctrip-v1-order-history-res.ts
models/kami-api-card-info-ctrip-v1-redeem-config-get-res.ts
models/kami-api-card-info-ctrip-v1-redeem-config-set-req.ts
models/kami-api-card-info-ctrip-v1-submit-req.ts
models/kami-api-card-info-jd-v1-jdaccount-cookie-batch-add-req.ts
models/kami-api-card-info-jd-v1-jdaccount-cookie-batch-check-req.ts
models/kami-api-card-info-jd-v1-jdaccount-cookie-batch-check-res.ts
models/kami-api-card-info-jd-v1-jdaccount-cookie-batch-info.ts
models/kami-api-card-info-jd-v1-jdaccount-cookie-check-req.ts
models/kami-api-card-info-jd-v1-jdaccount-cookie-check-res.ts
models/kami-api-card-info-jd-v1-jdaccount-create-req.ts
models/kami-api-card-info-jd-v1-jdaccount-delete-req.ts
models/kami-api-card-info-jd-v1-jdaccount-list-record.ts
models/kami-api-card-info-jd-v1-jdaccount-list-req.ts
models/kami-api-card-info-jd-v1-jdaccount-list-res.ts
models/kami-api-card-info-jd-v1-jdaccount-refresh-status-req.ts
models/kami-api-card-info-jd-v1-jdaccount-update-req.ts
models/kami-api-card-info-jd-v1-jdaccount-update-status-req.ts
models/kami-api-card-info-jd-v1-jdaccount-wallet-list-req.ts
models/kami-api-card-info-jd-v1-jdaccount-wallet-list-res.ts
models/kami-api-card-info-jd-v1-jdconfig-get-res.ts
models/kami-api-card-info-jd-v1-jdconfig-set-req.ts
models/kami-api-card-info-jd-v1-list-req.ts
models/kami-api-card-info-jd-v1-list-res.ts
models/kami-api-card-info-jd-v1-order-callback-req.ts
models/kami-api-card-info-jd-v1-order-history-req.ts
models/kami-api-card-info-jd-v1-order-history-res.ts
models/kami-api-card-info-jd-v1-order-summary-list-req.ts
models/kami-api-card-info-jd-v1-order-summary-list-res.ts
models/kami-api-card-info-jd-v1-order-summary-record.ts
models/kami-api-card-info-jd-v1-submit-req.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-cookie-batch-add-req.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-cookie-batch-check-req.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-cookie-batch-check-res.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-cookie-batch-info.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-cookie-check-req.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-cookie-check-res.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-create-req.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-delete-req.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-list-record.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-list-req.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-list-res.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-refresh-status-req.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-update-req.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-update-status-req.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-wallet-list-req.ts
models/kami-api-card-info-original-jd-v1-original-jdaccount-wallet-list-res.ts
models/kami-api-card-info-tmall-game-v1-call-back-order-manual-req.ts
models/kami-api-card-info-tmall-game-v1-shop-order-record.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-account-authorize-callback-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-account-authorize-get-key-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-account-create-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-account-delete-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-account-get-one-random-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-account-get-one-random-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-account-list-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-account-list-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-account-tmall-auth-status-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-account-toggle-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-agiso-callback-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-daily-order-summary-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-daily-order-summary-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-data-sync-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-data-sync-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-order-category.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-order-list-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-order-list-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-order-modify-status-succeed-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-order-query-category-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-order-query-category-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-order-query-order-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-order-query-order-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-order-submit-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-order-submit-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-shop-order-get-one-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-shop-order-get-one-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-shop-order-history-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-shop-order-history-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-shop-order-list-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-shop-order-list-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-shop-order-tmall-history-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-shop-order-tmall-history-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-stats-req.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-stats-res.ts
models/kami-api-card-info-tmall-game-v1-tmall-game-summary-list-record.ts
models/kami-api-card-info-tmall-game-v1-tmall-list-record-account-info.ts
models/kami-api-card-info-tmall-game-v1-tmall-list-record-shop-info.ts
models/kami-api-card-info-tmall-game-v1-tmall-list-record.ts
models/kami-api-card-info-walmart-v1-account-cookie-batch-add-req.ts
models/kami-api-card-info-walmart-v1-account-cookie-batch-check-req.ts
models/kami-api-card-info-walmart-v1-account-cookie-batch-check-res.ts
models/kami-api-card-info-walmart-v1-account-cookie-batch-info.ts
models/kami-api-card-info-walmart-v1-account-cookie-check-req.ts
models/kami-api-card-info-walmart-v1-account-cookie-check-res.ts
models/kami-api-card-info-walmart-v1-account-create-req.ts
models/kami-api-card-info-walmart-v1-account-daily-summary-req.ts
models/kami-api-card-info-walmart-v1-account-daily-summary-res.ts
models/kami-api-card-info-walmart-v1-account-delete-req.ts
models/kami-api-card-info-walmart-v1-account-info.ts
models/kami-api-card-info-walmart-v1-account-list-record.ts
models/kami-api-card-info-walmart-v1-account-list-req.ts
models/kami-api-card-info-walmart-v1-account-list-res.ts
models/kami-api-card-info-walmart-v1-account-load-req.ts
models/kami-api-card-info-walmart-v1-account-refresh-status-req.ts
models/kami-api-card-info-walmart-v1-account-status-detect-req.ts
models/kami-api-card-info-walmart-v1-account-status-detect-res.ts
models/kami-api-card-info-walmart-v1-account-summary-download-req.ts
models/kami-api-card-info-walmart-v1-account-update-req.ts
models/kami-api-card-info-walmart-v1-account-update-status-req.ts
models/kami-api-card-info-walmart-v1-account-wallet-list-req.ts
models/kami-api-card-info-walmart-v1-account-wallet-list-res.ts
models/kami-api-card-info-walmart-v1-card-redeem-account-summary.ts
models/kami-api-card-info-walmart-v1-group-add-req.ts
models/kami-api-card-info-walmart-v1-group-all-list-res.ts
models/kami-api-card-info-walmart-v1-group-delete-req.ts
models/kami-api-card-info-walmart-v1-group-list-req.ts
models/kami-api-card-info-walmart-v1-group-list-res.ts
models/kami-api-card-info-walmart-v1-group-update-req.ts
models/kami-api-card-info-walmart-v1-list-req.ts
models/kami-api-card-info-walmart-v1-list-res.ts
models/kami-api-card-info-walmart-v1-order-callback-req.ts
models/kami-api-card-info-walmart-v1-order-history-req.ts
models/kami-api-card-info-walmart-v1-order-history-res.ts
models/kami-api-card-info-walmart-v1-order-status-reset-req.ts
models/kami-api-card-info-walmart-v1-order-summary-list-req.ts
models/kami-api-card-info-walmart-v1-order-summary-list-res.ts
models/kami-api-card-info-walmart-v1-order-summary-record.ts
models/kami-api-card-info-walmart-v1-redeem-config-get-res.ts
models/kami-api-card-info-walmart-v1-redeem-config-set-req.ts
models/kami-api-card-info-walmart-v1-submit-req.ts
models/kami-api-channel-v2-entrance-create-req.ts
models/kami-api-channel-v2-entrance-delete-req.ts
models/kami-api-channel-v2-entrance-list-req.ts
models/kami-api-channel-v2-entrance-list-res.ts
models/kami-api-channel-v2-entrance-params.ts
models/kami-api-channel-v2-entrance-update-req.ts
models/kami-api-merchant-v1-merchant-all-list-res.ts
models/kami-api-merchant-v1-merchant-config-add-req.ts
models/kami-api-merchant-v1-merchant-config-detail-req.ts
models/kami-api-merchant-v1-merchant-config-detail-res.ts
models/kami-api-merchant-v1-merchant-config-list-req.ts
models/kami-api-merchant-v1-merchant-config-list-res.ts
models/kami-api-merchant-v1-merchant-config-status-req.ts
models/kami-api-merchant-v1-merchant-config-update-req.ts
models/kami-api-merchant-v1-merchant-deploy-add-req.ts
models/kami-api-merchant-v1-merchant-deploy-delete-req.ts
models/kami-api-merchant-v1-merchant-deploy-get-detail-req.ts
models/kami-api-merchant-v1-merchant-deploy-get-detail-res.ts
models/kami-api-merchant-v1-merchant-deploy-list-req.ts
models/kami-api-merchant-v1-merchant-deploy-list-res.ts
models/kami-api-merchant-v1-merchant-deploy-record.ts
models/kami-api-merchant-v1-merchant-deploy-update-req.ts
models/kami-api-merchant-v1-merchant-hidden-config-entity.ts
models/kami-api-merchant-v1-merchant-info-record.ts
models/kami-api-merchant-v1-order-query-record.ts
models/kami-api-merchant-v1-order-query-req.ts
models/kami-api-merchant-v1-order-query-res.ts
models/kami-api-merchant-v1-platform-rate-record.ts
models/kami-api-merchant-v1-steal-create-req.ts
models/kami-api-merchant-v1-steal-delete-req.ts
models/kami-api-merchant-v1-steal-list-req.ts
models/kami-api-merchant-v1-steal-list-res.ts
models/kami-api-merchant-v1-steal-record-list-req.ts
models/kami-api-merchant-v1-steal-record-list-res.ts
models/kami-api-merchant-v1-steal-status-get-res.ts
models/kami-api-merchant-v1-steal-status-set-req.ts
models/kami-api-merchant-v1-steal-update-req.ts
models/kami-api-merchant-v1-steal-update-status-req.ts
models/kami-api-monitor-v1-health-check-res.ts
models/kami-api-order-v1-order-form-delete-req.ts
models/kami-api-order-v1-order-form-list-req.ts
models/kami-api-order-v1-order-form-update-req.ts
models/kami-api-order-v1-order-log-delete-req.ts
models/kami-api-order-v1-order-log-list-req.ts
models/kami-api-order-v1-order-summary-get-list-req.ts
models/kami-api-order-v1-order-summary-get-list-res.ts
models/kami-api-order-v1-order-summary-record.ts
models/kami-api-restriction-v1-block-order-req.ts
models/kami-api-restriction-v1-check-ipallowed-req.ts
models/kami-api-restriction-v1-check-ipallowed-res.ts
models/kami-api-restriction-v1-query-all-province-res.ts
models/kami-api-restriction-v1-user-info-collection-req.ts
models/kami-api-road-pool-v1-road-pool-simple-info.ts
models/kami-api-road-pool-v1-simple-all-get-road-res.ts
models/kami-api-road-v1-road-simple-info.ts
models/kami-api-road-v1-simple-all-get-road-res.ts
models/kami-api-sys-payment-v1-payment-summary-list-req.ts
models/kami-api-sys-payment-v1-payment-summary-list-res.ts
models/kami-api-sys-payment-v1-payment-summary-record.ts
models/kami-api-sys-payment-v1-sys-payment-add-req.ts
models/kami-api-sys-payment-v1-sys-payment-get-one-req.ts
models/kami-api-sys-payment-v1-sys-payment-get-one-res.ts
models/kami-api-sys-payment-v1-sys-payment-get-req.ts
models/kami-api-sys-payment-v1-sys-payment-get-res.ts
models/kami-api-sys-payment-v1-sys-payment-records-get-req.ts
models/kami-api-sys-payment-v1-sys-payment-records-get-res.ts
models/kami-api-sys-payment-v1-sys-payment-records-get-statistics-res.ts
models/kami-api-sys-user-login-v1-user-login-req.ts
models/kami-api-sys-user-login-v1-user-login-res.ts
models/kami-api-sys-user-login-v1-user-menus.ts
models/kami-api-sys-user-v1-channel-type.ts
models/kami-api-sys-user-v1-login-user-record.ts
models/kami-api-sys-user-v1-sys-user-record.ts
models/kami-api-sys-user-v1-sys-user-role-dept-res.ts
models/kami-api-sys-user-v1-sys-user-simple-res.ts
models/kami-api-sys-user-v1-totp-image-get-req.ts
models/kami-api-sys-user-v1-totp-image-get-res.ts
models/kami-api-sys-user-v1-totp-reset-req.ts
models/kami-api-sys-user-v1-totp-reset-res.ts
models/kami-api-sys-user-v1-totp-set-req.ts
models/kami-api-sys-user-v1-totp-status-get-res.ts
models/kami-api-sys-user-v1-user-add-req.ts
models/kami-api-sys-user-v1-user-change-pwd-req.ts
models/kami-api-sys-user-v1-user-delete-req.ts
models/kami-api-sys-user-v1-user-edit-req.ts
models/kami-api-sys-user-v1-user-forbidden-by-id-req.ts
models/kami-api-sys-user-v1-user-get-all-simple-user.ts
models/kami-api-sys-user-v1-user-get-all-user-res.ts
models/kami-api-sys-user-v1-user-get-by-ids-req.ts
models/kami-api-sys-user-v1-user-get-by-ids-res.ts
models/kami-api-sys-user-v1-user-get-edit-req.ts
models/kami-api-sys-user-v1-user-get-edit-res.ts
models/kami-api-sys-user-v1-user-get-params-res.ts
models/kami-api-sys-user-v1-user-login-out-req.ts
models/kami-api-sys-user-v1-user-menus-get-req.ts
models/kami-api-sys-user-v1-user-menus-get-res.ts
models/kami-api-sys-user-v1-user-search-req.ts
models/kami-api-sys-user-v1-user-search-res.ts
models/kami-api-sys-user-v1-user-status-req.ts
models/kami-api-sys-user-v1-user-suspend-or-continue-req.ts
models/kami-api-user-center-v1-get-user-info-res.ts
models/kami-api-validation-v1-get-captcha-res.ts
models/kami-internal-model-entity-v1-card-apple-hidden-settings.ts
models/kami-internal-model-entity-v1-card-apple-history-info.ts
models/kami-internal-model-entity-v1-card-apple-recharge-info.ts
models/kami-internal-model-entity-v1-card-redeem-account-group.ts
models/kami-internal-model-entity-v1-card-redeem-account-history.ts
models/kami-internal-model-entity-v1-card-redeem-order-history.ts
models/kami-internal-model-entity-v1-card-redeem-order-info.ts
models/kami-internal-model-entity-v1-merchant-hidden-record.ts
models/kami-internal-model-entity-v1-merchant-info.ts
models/kami-internal-model-entity-v1-recharge-tmall-account.ts
models/kami-internal-model-entity-v1-recharge-tmall-order-history.ts
models/kami-internal-model-entity-v1-recharge-tmall-order.ts
models/kami-internal-model-entity-v1-recharge-tmall-shop-history.ts
models/kami-internal-model-entity-v1-recharge-tmall-shop.ts
models/kami-internal-model-entity-v1-sys-role.ts
models/kami-internal-model-entity-v1-sys-user-payment-records.ts
models/kami-internal-model-entity-v1-sys-user-payment.ts
models/kami-internal-model-entity-v1-sys-user.ts
models/kami-internal-model-user-info.ts
models/kami-internal-system-v2-model-entity-v2-road-info.ts

View File

@@ -0,0 +1 @@
7.10.0

16
src/api/generated/api.ts Normal file
View File

@@ -0,0 +1,16 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 './apis/default-api';
export * from './apis/totpapi';

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,518 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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,
type RequestArgs,
BaseAPI,
RequiredError,
operationServerMap
} from '../base';
// @ts-ignore
import type { KamiApiSysUserV1TotpImageGetRes } from '../models';
// @ts-ignore
import type { KamiApiSysUserV1TotpResetReq } from '../models';
// @ts-ignore
import type { KamiApiSysUserV1TotpResetRes } from '../models';
// @ts-ignore
import type { KamiApiSysUserV1TotpSetReq } from '../models';
// @ts-ignore
import type { KamiApiSysUserV1TotpStatusGetRes } from '../models';
/**
* TOTPApi - axios parameter creator
* @export
*/
export const TOTPApiAxiosParamCreator = function (
configuration?: Configuration
) {
return {
/**
*
* @summary 查看两步验证图像
* @param {string} code
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiUserTotpImageGet: async (
code: string,
options: RawAxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'code' is not null or undefined
assertParamExists('apiUserTotpImageGet', 'code', code);
const localVarPath = `/api/user/totp/image`;
// 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 (code !== undefined) {
localVarQueryParameter['code'] = code;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions
};
},
/**
*
* @summary 重置两步验证
* @param {KamiApiSysUserV1TotpResetReq} [kamiApiSysUserV1TotpResetReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiUserTotpResetPost: async (
kamiApiSysUserV1TotpResetReq?: KamiApiSysUserV1TotpResetReq,
options: RawAxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/user/totp/reset`;
// 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(
kamiApiSysUserV1TotpResetReq,
localVarRequestOptions,
configuration
);
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions
};
},
/**
*
* @summary 设置二步验证
* @param {KamiApiSysUserV1TotpSetReq} [kamiApiSysUserV1TotpSetReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiUserTotpSetPost: async (
kamiApiSysUserV1TotpSetReq?: KamiApiSysUserV1TotpSetReq,
options: RawAxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/user/totp/set`;
// 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(
kamiApiSysUserV1TotpSetReq,
localVarRequestOptions,
configuration
);
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions
};
},
/**
*
* @summary 确认当前用户是否开启totp
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiUserTotpStatusGet: async (
options: RawAxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/user/totp/status`;
// 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
};
}
};
};
/**
* TOTPApi - functional programming interface
* @export
*/
export const TOTPApiFp = function (configuration?: Configuration) {
const localVarAxiosParamCreator = TOTPApiAxiosParamCreator(configuration);
return {
/**
*
* @summary 查看两步验证图像
* @param {string} code
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiUserTotpImageGet(
code: string,
options?: RawAxiosRequestConfig
): Promise<
(
axios?: AxiosInstance,
basePath?: string
) => AxiosPromise<KamiApiSysUserV1TotpImageGetRes>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.apiUserTotpImageGet(code, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath =
operationServerMap['TOTPApi.apiUserTotpImageGet']?.[
localVarOperationServerIndex
]?.url;
return (axios, basePath) =>
createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary 重置两步验证
* @param {KamiApiSysUserV1TotpResetReq} [kamiApiSysUserV1TotpResetReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiUserTotpResetPost(
kamiApiSysUserV1TotpResetReq?: KamiApiSysUserV1TotpResetReq,
options?: RawAxiosRequestConfig
): Promise<
(
axios?: AxiosInstance,
basePath?: string
) => AxiosPromise<KamiApiSysUserV1TotpResetRes>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.apiUserTotpResetPost(
kamiApiSysUserV1TotpResetReq,
options
);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath =
operationServerMap['TOTPApi.apiUserTotpResetPost']?.[
localVarOperationServerIndex
]?.url;
return (axios, basePath) =>
createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary 设置二步验证
* @param {KamiApiSysUserV1TotpSetReq} [kamiApiSysUserV1TotpSetReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiUserTotpSetPost(
kamiApiSysUserV1TotpSetReq?: KamiApiSysUserV1TotpSetReq,
options?: RawAxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.apiUserTotpSetPost(
kamiApiSysUserV1TotpSetReq,
options
);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath =
operationServerMap['TOTPApi.apiUserTotpSetPost']?.[
localVarOperationServerIndex
]?.url;
return (axios, basePath) =>
createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary 确认当前用户是否开启totp
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiUserTotpStatusGet(
options?: RawAxiosRequestConfig
): Promise<
(
axios?: AxiosInstance,
basePath?: string
) => AxiosPromise<KamiApiSysUserV1TotpStatusGetRes>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.apiUserTotpStatusGet(options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath =
operationServerMap['TOTPApi.apiUserTotpStatusGet']?.[
localVarOperationServerIndex
]?.url;
return (axios, basePath) =>
createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
)(axios, localVarOperationServerBasePath || basePath);
}
};
};
/**
* TOTPApi - factory interface
* @export
*/
export const TOTPApiFactory = function (
configuration?: Configuration,
basePath?: string,
axios?: AxiosInstance
) {
const localVarFp = TOTPApiFp(configuration);
return {
/**
*
* @summary 查看两步验证图像
* @param {string} code
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiUserTotpImageGet(
code: string,
options?: RawAxiosRequestConfig
): AxiosPromise<KamiApiSysUserV1TotpImageGetRes> {
return localVarFp
.apiUserTotpImageGet(code, options)
.then(request => request(axios, basePath));
},
/**
*
* @summary 重置两步验证
* @param {KamiApiSysUserV1TotpResetReq} [kamiApiSysUserV1TotpResetReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiUserTotpResetPost(
kamiApiSysUserV1TotpResetReq?: KamiApiSysUserV1TotpResetReq,
options?: RawAxiosRequestConfig
): AxiosPromise<KamiApiSysUserV1TotpResetRes> {
return localVarFp
.apiUserTotpResetPost(kamiApiSysUserV1TotpResetReq, options)
.then(request => request(axios, basePath));
},
/**
*
* @summary 设置二步验证
* @param {KamiApiSysUserV1TotpSetReq} [kamiApiSysUserV1TotpSetReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiUserTotpSetPost(
kamiApiSysUserV1TotpSetReq?: KamiApiSysUserV1TotpSetReq,
options?: RawAxiosRequestConfig
): AxiosPromise<object> {
return localVarFp
.apiUserTotpSetPost(kamiApiSysUserV1TotpSetReq, options)
.then(request => request(axios, basePath));
},
/**
*
* @summary 确认当前用户是否开启totp
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiUserTotpStatusGet(
options?: RawAxiosRequestConfig
): AxiosPromise<KamiApiSysUserV1TotpStatusGetRes> {
return localVarFp
.apiUserTotpStatusGet(options)
.then(request => request(axios, basePath));
}
};
};
/**
* TOTPApi - object-oriented interface
* @export
* @class TOTPApi
* @extends {BaseAPI}
*/
export class TOTPApi extends BaseAPI {
/**
*
* @summary 查看两步验证图像
* @param {string} code
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof TOTPApi
*/
public apiUserTotpImageGet(code: string, options?: RawAxiosRequestConfig) {
return TOTPApiFp(this.configuration)
.apiUserTotpImageGet(code, options)
.then(request => request(this.axios, this.basePath));
}
/**
*
* @summary 重置两步验证
* @param {KamiApiSysUserV1TotpResetReq} [kamiApiSysUserV1TotpResetReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof TOTPApi
*/
public apiUserTotpResetPost(
kamiApiSysUserV1TotpResetReq?: KamiApiSysUserV1TotpResetReq,
options?: RawAxiosRequestConfig
) {
return TOTPApiFp(this.configuration)
.apiUserTotpResetPost(kamiApiSysUserV1TotpResetReq, options)
.then(request => request(this.axios, this.basePath));
}
/**
*
* @summary 设置二步验证
* @param {KamiApiSysUserV1TotpSetReq} [kamiApiSysUserV1TotpSetReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof TOTPApi
*/
public apiUserTotpSetPost(
kamiApiSysUserV1TotpSetReq?: KamiApiSysUserV1TotpSetReq,
options?: RawAxiosRequestConfig
) {
return TOTPApiFp(this.configuration)
.apiUserTotpSetPost(kamiApiSysUserV1TotpSetReq, options)
.then(request => request(this.axios, this.basePath));
}
/**
*
* @summary 确认当前用户是否开启totp
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof TOTPApi
*/
public apiUserTotpStatusGet(options?: RawAxiosRequestConfig) {
return TOTPApiFp(this.configuration)
.apiUserTotpStatusGet(options)
.then(request => request(this.axios, this.basePath));
}
}

91
src/api/generated/base.ts Normal file
View File

@@ -0,0 +1,91 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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'.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 = {};

202
src/api/generated/common.ts Normal file
View File

@@ -0,0 +1,202 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 ? value : {})
: value || '';
};
/**
*
* @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);
};
};

View File

@@ -0,0 +1,132 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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')
);
}
}

View File

@@ -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'

View File

@@ -0,0 +1,17 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 './models';

View File

@@ -0,0 +1,312 @@
export * from './kami-api-card-info-apple-v1-apple-card-list-record';
export * from './kami-api-card-info-apple-v1-apple-card-list-record-upload-user';
export * from './kami-api-card-info-apple-v1-call-back-order-manual-req';
export * from './kami-api-card-info-apple-v1-card-history-info-list-req';
export * from './kami-api-card-info-apple-v1-card-history-info-list-res';
export * from './kami-api-card-info-apple-v1-card-history-model';
export * from './kami-api-card-info-apple-v1-card-info-batch-add-from-xlsx-req';
export * from './kami-api-card-info-apple-v1-card-info-batch-add-from-xlsx-res';
export * from './kami-api-card-info-apple-v1-card-info-create-req';
export * from './kami-api-card-info-apple-v1-card-info-delete-req';
export * from './kami-api-card-info-apple-v1-card-info-list-req';
export * from './kami-api-card-info-apple-v1-card-info-list-res';
export * from './kami-api-card-info-apple-v1-card-info-suspend-or-continue-req';
export * from './kami-api-card-info-apple-v1-card-info-update-req';
export * from './kami-api-card-info-apple-v1-card-info-update-status-req';
export * from './kami-api-card-info-apple-v1-config-get-res';
export * from './kami-api-card-info-apple-v1-config-set-req';
export * from './kami-api-card-info-apple-v1-recharge-duplicated-card-pass-req';
export * from './kami-api-card-info-apple-v1-recharge-handler-req';
export * from './kami-api-card-info-apple-v1-recharge-handler-res';
export * from './kami-api-card-info-apple-v1-recharge-history-list-req';
export * from './kami-api-card-info-apple-v1-recharge-history-list-res';
export * from './kami-api-card-info-apple-v1-recharge-itunes-callback-req';
export * from './kami-api-card-info-apple-v1-recharge-list-download-req';
export * from './kami-api-card-info-apple-v1-recharge-list-req';
export * from './kami-api-card-info-apple-v1-recharge-list-res';
export * from './kami-api-card-info-apple-v1-recharge-order-modify-actual-amount-req';
export * from './kami-api-card-info-apple-v1-recharge-order-reset-status-req';
export * from './kami-api-card-info-apple-v1-recharge-steal-rule-add-req';
export * from './kami-api-card-info-apple-v1-recharge-steal-rule-delete-req';
export * from './kami-api-card-info-apple-v1-recharge-steal-rule-list-req';
export * from './kami-api-card-info-apple-v1-recharge-steal-rule-list-res';
export * from './kami-api-card-info-apple-v1-recharge-steal-rule-status-update-req';
export * from './kami-api-card-info-apple-v1-recharge-steal-rule-update-req';
export * from './kami-api-card-info-apple-v1-recharge-steal-setting-get-res';
export * from './kami-api-card-info-apple-v1-recharge-steal-setting-req';
export * from './kami-api-card-info-apple-v1-recharge-submit-query-req';
export * from './kami-api-card-info-apple-v1-recharge-submit-query-res';
export * from './kami-api-card-info-apple-v1-recharge-submit-req';
export * from './kami-api-card-info-apple-v1-recharge-submit-res';
export * from './kami-api-card-info-ctrip-v1-account-cookie-batch-add-req';
export * from './kami-api-card-info-ctrip-v1-account-cookie-batch-check-req';
export * from './kami-api-card-info-ctrip-v1-account-cookie-batch-check-res';
export * from './kami-api-card-info-ctrip-v1-account-cookie-batch-info';
export * from './kami-api-card-info-ctrip-v1-account-cookie-check-req';
export * from './kami-api-card-info-ctrip-v1-account-cookie-check-res';
export * from './kami-api-card-info-ctrip-v1-account-create-req';
export * from './kami-api-card-info-ctrip-v1-account-delete-req';
export * from './kami-api-card-info-ctrip-v1-account-list-record';
export * from './kami-api-card-info-ctrip-v1-account-list-req';
export * from './kami-api-card-info-ctrip-v1-account-list-res';
export * from './kami-api-card-info-ctrip-v1-account-refresh-status-req';
export * from './kami-api-card-info-ctrip-v1-account-update-req';
export * from './kami-api-card-info-ctrip-v1-account-update-status-req';
export * from './kami-api-card-info-ctrip-v1-account-wallet-list-req';
export * from './kami-api-card-info-ctrip-v1-account-wallet-list-res';
export * from './kami-api-card-info-ctrip-v1-list-req';
export * from './kami-api-card-info-ctrip-v1-list-res';
export * from './kami-api-card-info-ctrip-v1-order-callback-req';
export * from './kami-api-card-info-ctrip-v1-order-history-req';
export * from './kami-api-card-info-ctrip-v1-order-history-res';
export * from './kami-api-card-info-ctrip-v1-redeem-config-get-res';
export * from './kami-api-card-info-ctrip-v1-redeem-config-set-req';
export * from './kami-api-card-info-ctrip-v1-submit-req';
export * from './kami-api-card-info-jd-v1-jdaccount-cookie-batch-add-req';
export * from './kami-api-card-info-jd-v1-jdaccount-cookie-batch-check-req';
export * from './kami-api-card-info-jd-v1-jdaccount-cookie-batch-check-res';
export * from './kami-api-card-info-jd-v1-jdaccount-cookie-batch-info';
export * from './kami-api-card-info-jd-v1-jdaccount-cookie-check-req';
export * from './kami-api-card-info-jd-v1-jdaccount-cookie-check-res';
export * from './kami-api-card-info-jd-v1-jdaccount-create-req';
export * from './kami-api-card-info-jd-v1-jdaccount-delete-req';
export * from './kami-api-card-info-jd-v1-jdaccount-list-record';
export * from './kami-api-card-info-jd-v1-jdaccount-list-req';
export * from './kami-api-card-info-jd-v1-jdaccount-list-res';
export * from './kami-api-card-info-jd-v1-jdaccount-refresh-status-req';
export * from './kami-api-card-info-jd-v1-jdaccount-update-req';
export * from './kami-api-card-info-jd-v1-jdaccount-update-status-req';
export * from './kami-api-card-info-jd-v1-jdaccount-wallet-list-req';
export * from './kami-api-card-info-jd-v1-jdaccount-wallet-list-res';
export * from './kami-api-card-info-jd-v1-jdconfig-get-res';
export * from './kami-api-card-info-jd-v1-jdconfig-set-req';
export * from './kami-api-card-info-jd-v1-list-req';
export * from './kami-api-card-info-jd-v1-list-res';
export * from './kami-api-card-info-jd-v1-order-callback-req';
export * from './kami-api-card-info-jd-v1-order-history-req';
export * from './kami-api-card-info-jd-v1-order-history-res';
export * from './kami-api-card-info-jd-v1-order-summary-list-req';
export * from './kami-api-card-info-jd-v1-order-summary-list-res';
export * from './kami-api-card-info-jd-v1-order-summary-record';
export * from './kami-api-card-info-jd-v1-submit-req';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-cookie-batch-add-req';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-cookie-batch-check-req';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-cookie-batch-check-res';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-cookie-batch-info';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-cookie-check-req';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-cookie-check-res';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-create-req';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-delete-req';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-list-record';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-list-req';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-list-res';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-refresh-status-req';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-update-req';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-update-status-req';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-wallet-list-req';
export * from './kami-api-card-info-original-jd-v1-original-jdaccount-wallet-list-res';
export * from './kami-api-card-info-tmall-game-v1-call-back-order-manual-req';
export * from './kami-api-card-info-tmall-game-v1-shop-order-record';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-summary-list-record';
export * from './kami-api-card-info-tmall-game-v1-tmall-list-record';
export * from './kami-api-card-info-tmall-game-v1-tmall-list-record-account-info';
export * from './kami-api-card-info-tmall-game-v1-tmall-list-record-shop-info';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-account-authorize-callback-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-account-authorize-get-key-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-account-create-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-account-delete-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-account-get-one-random-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-account-get-one-random-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-account-list-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-account-list-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-account-tmall-auth-status-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-account-toggle-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-agiso-callback-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-daily-order-summary-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-daily-order-summary-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-data-sync-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-data-sync-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-order-category';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-order-list-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-order-list-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-order-modify-status-succeed-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-order-query-category-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-order-query-category-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-order-query-order-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-order-query-order-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-order-submit-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-order-submit-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-shop-order-get-one-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-shop-order-get-one-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-shop-order-history-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-shop-order-history-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-shop-order-list-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-shop-order-list-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-shop-order-tmall-history-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-shop-order-tmall-history-res';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-stats-req';
export * from './kami-api-card-info-tmall-game-v1-tmall-game-stats-res';
export * from './kami-api-card-info-walmart-v1-account-cookie-batch-add-req';
export * from './kami-api-card-info-walmart-v1-account-cookie-batch-check-req';
export * from './kami-api-card-info-walmart-v1-account-cookie-batch-check-res';
export * from './kami-api-card-info-walmart-v1-account-cookie-batch-info';
export * from './kami-api-card-info-walmart-v1-account-cookie-check-req';
export * from './kami-api-card-info-walmart-v1-account-cookie-check-res';
export * from './kami-api-card-info-walmart-v1-account-create-req';
export * from './kami-api-card-info-walmart-v1-account-daily-summary-req';
export * from './kami-api-card-info-walmart-v1-account-daily-summary-res';
export * from './kami-api-card-info-walmart-v1-account-delete-req';
export * from './kami-api-card-info-walmart-v1-account-info';
export * from './kami-api-card-info-walmart-v1-account-list-record';
export * from './kami-api-card-info-walmart-v1-account-list-req';
export * from './kami-api-card-info-walmart-v1-account-list-res';
export * from './kami-api-card-info-walmart-v1-account-load-req';
export * from './kami-api-card-info-walmart-v1-account-refresh-status-req';
export * from './kami-api-card-info-walmart-v1-account-status-detect-req';
export * from './kami-api-card-info-walmart-v1-account-status-detect-res';
export * from './kami-api-card-info-walmart-v1-account-summary-download-req';
export * from './kami-api-card-info-walmart-v1-account-update-req';
export * from './kami-api-card-info-walmart-v1-account-update-status-req';
export * from './kami-api-card-info-walmart-v1-account-wallet-list-req';
export * from './kami-api-card-info-walmart-v1-account-wallet-list-res';
export * from './kami-api-card-info-walmart-v1-card-redeem-account-summary';
export * from './kami-api-card-info-walmart-v1-group-add-req';
export * from './kami-api-card-info-walmart-v1-group-all-list-res';
export * from './kami-api-card-info-walmart-v1-group-delete-req';
export * from './kami-api-card-info-walmart-v1-group-list-req';
export * from './kami-api-card-info-walmart-v1-group-list-res';
export * from './kami-api-card-info-walmart-v1-group-update-req';
export * from './kami-api-card-info-walmart-v1-list-req';
export * from './kami-api-card-info-walmart-v1-list-res';
export * from './kami-api-card-info-walmart-v1-order-callback-req';
export * from './kami-api-card-info-walmart-v1-order-history-req';
export * from './kami-api-card-info-walmart-v1-order-history-res';
export * from './kami-api-card-info-walmart-v1-order-status-reset-req';
export * from './kami-api-card-info-walmart-v1-order-summary-list-req';
export * from './kami-api-card-info-walmart-v1-order-summary-list-res';
export * from './kami-api-card-info-walmart-v1-order-summary-record';
export * from './kami-api-card-info-walmart-v1-redeem-config-get-res';
export * from './kami-api-card-info-walmart-v1-redeem-config-set-req';
export * from './kami-api-card-info-walmart-v1-submit-req';
export * from './kami-api-channel-v2-entrance-create-req';
export * from './kami-api-channel-v2-entrance-delete-req';
export * from './kami-api-channel-v2-entrance-list-req';
export * from './kami-api-channel-v2-entrance-list-res';
export * from './kami-api-channel-v2-entrance-params';
export * from './kami-api-channel-v2-entrance-update-req';
export * from './kami-api-merchant-v1-merchant-all-list-res';
export * from './kami-api-merchant-v1-merchant-config-add-req';
export * from './kami-api-merchant-v1-merchant-config-detail-req';
export * from './kami-api-merchant-v1-merchant-config-detail-res';
export * from './kami-api-merchant-v1-merchant-config-list-req';
export * from './kami-api-merchant-v1-merchant-config-list-res';
export * from './kami-api-merchant-v1-merchant-config-status-req';
export * from './kami-api-merchant-v1-merchant-config-update-req';
export * from './kami-api-merchant-v1-merchant-deploy-add-req';
export * from './kami-api-merchant-v1-merchant-deploy-delete-req';
export * from './kami-api-merchant-v1-merchant-deploy-get-detail-req';
export * from './kami-api-merchant-v1-merchant-deploy-get-detail-res';
export * from './kami-api-merchant-v1-merchant-deploy-list-req';
export * from './kami-api-merchant-v1-merchant-deploy-list-res';
export * from './kami-api-merchant-v1-merchant-deploy-record';
export * from './kami-api-merchant-v1-merchant-deploy-update-req';
export * from './kami-api-merchant-v1-merchant-hidden-config-entity';
export * from './kami-api-merchant-v1-merchant-info-record';
export * from './kami-api-merchant-v1-order-query-record';
export * from './kami-api-merchant-v1-order-query-req';
export * from './kami-api-merchant-v1-order-query-res';
export * from './kami-api-merchant-v1-platform-rate-record';
export * from './kami-api-merchant-v1-steal-create-req';
export * from './kami-api-merchant-v1-steal-delete-req';
export * from './kami-api-merchant-v1-steal-list-req';
export * from './kami-api-merchant-v1-steal-list-res';
export * from './kami-api-merchant-v1-steal-record-list-req';
export * from './kami-api-merchant-v1-steal-record-list-res';
export * from './kami-api-merchant-v1-steal-status-get-res';
export * from './kami-api-merchant-v1-steal-status-set-req';
export * from './kami-api-merchant-v1-steal-update-req';
export * from './kami-api-merchant-v1-steal-update-status-req';
export * from './kami-api-monitor-v1-health-check-res';
export * from './kami-api-order-v1-order-form-delete-req';
export * from './kami-api-order-v1-order-form-list-req';
export * from './kami-api-order-v1-order-form-update-req';
export * from './kami-api-order-v1-order-log-delete-req';
export * from './kami-api-order-v1-order-log-list-req';
export * from './kami-api-order-v1-order-summary-get-list-req';
export * from './kami-api-order-v1-order-summary-get-list-res';
export * from './kami-api-order-v1-order-summary-record';
export * from './kami-api-restriction-v1-block-order-req';
export * from './kami-api-restriction-v1-check-ipallowed-req';
export * from './kami-api-restriction-v1-check-ipallowed-res';
export * from './kami-api-restriction-v1-query-all-province-res';
export * from './kami-api-restriction-v1-user-info-collection-req';
export * from './kami-api-road-pool-v1-road-pool-simple-info';
export * from './kami-api-road-pool-v1-simple-all-get-road-res';
export * from './kami-api-road-v1-road-simple-info';
export * from './kami-api-road-v1-simple-all-get-road-res';
export * from './kami-api-sys-payment-v1-payment-summary-list-req';
export * from './kami-api-sys-payment-v1-payment-summary-list-res';
export * from './kami-api-sys-payment-v1-payment-summary-record';
export * from './kami-api-sys-payment-v1-sys-payment-add-req';
export * from './kami-api-sys-payment-v1-sys-payment-get-one-req';
export * from './kami-api-sys-payment-v1-sys-payment-get-one-res';
export * from './kami-api-sys-payment-v1-sys-payment-get-req';
export * from './kami-api-sys-payment-v1-sys-payment-get-res';
export * from './kami-api-sys-payment-v1-sys-payment-records-get-req';
export * from './kami-api-sys-payment-v1-sys-payment-records-get-res';
export * from './kami-api-sys-payment-v1-sys-payment-records-get-statistics-res';
export * from './kami-api-sys-user-login-v1-user-login-req';
export * from './kami-api-sys-user-login-v1-user-login-res';
export * from './kami-api-sys-user-login-v1-user-menus';
export * from './kami-api-sys-user-v1-channel-type';
export * from './kami-api-sys-user-v1-login-user-record';
export * from './kami-api-sys-user-v1-sys-user-record';
export * from './kami-api-sys-user-v1-sys-user-role-dept-res';
export * from './kami-api-sys-user-v1-sys-user-simple-res';
export * from './kami-api-sys-user-v1-totp-image-get-req';
export * from './kami-api-sys-user-v1-totp-image-get-res';
export * from './kami-api-sys-user-v1-totp-reset-req';
export * from './kami-api-sys-user-v1-totp-reset-res';
export * from './kami-api-sys-user-v1-totp-set-req';
export * from './kami-api-sys-user-v1-totp-status-get-res';
export * from './kami-api-sys-user-v1-user-add-req';
export * from './kami-api-sys-user-v1-user-change-pwd-req';
export * from './kami-api-sys-user-v1-user-delete-req';
export * from './kami-api-sys-user-v1-user-edit-req';
export * from './kami-api-sys-user-v1-user-forbidden-by-id-req';
export * from './kami-api-sys-user-v1-user-get-all-simple-user';
export * from './kami-api-sys-user-v1-user-get-all-user-res';
export * from './kami-api-sys-user-v1-user-get-by-ids-req';
export * from './kami-api-sys-user-v1-user-get-by-ids-res';
export * from './kami-api-sys-user-v1-user-get-edit-req';
export * from './kami-api-sys-user-v1-user-get-edit-res';
export * from './kami-api-sys-user-v1-user-get-params-res';
export * from './kami-api-sys-user-v1-user-login-out-req';
export * from './kami-api-sys-user-v1-user-menus-get-req';
export * from './kami-api-sys-user-v1-user-menus-get-res';
export * from './kami-api-sys-user-v1-user-search-req';
export * from './kami-api-sys-user-v1-user-search-res';
export * from './kami-api-sys-user-v1-user-status-req';
export * from './kami-api-sys-user-v1-user-suspend-or-continue-req';
export * from './kami-api-user-center-v1-get-user-info-res';
export * from './kami-api-validation-v1-get-captcha-res';
export * from './kami-internal-model-entity-v1-card-apple-hidden-settings';
export * from './kami-internal-model-entity-v1-card-apple-history-info';
export * from './kami-internal-model-entity-v1-card-apple-recharge-info';
export * from './kami-internal-model-entity-v1-card-redeem-account-group';
export * from './kami-internal-model-entity-v1-card-redeem-account-history';
export * from './kami-internal-model-entity-v1-card-redeem-order-history';
export * from './kami-internal-model-entity-v1-card-redeem-order-info';
export * from './kami-internal-model-entity-v1-merchant-hidden-record';
export * from './kami-internal-model-entity-v1-merchant-info';
export * from './kami-internal-model-entity-v1-recharge-tmall-account';
export * from './kami-internal-model-entity-v1-recharge-tmall-order';
export * from './kami-internal-model-entity-v1-recharge-tmall-order-history';
export * from './kami-internal-model-entity-v1-recharge-tmall-shop';
export * from './kami-internal-model-entity-v1-recharge-tmall-shop-history';
export * from './kami-internal-model-entity-v1-sys-role';
export * from './kami-internal-model-entity-v1-sys-user';
export * from './kami-internal-model-entity-v1-sys-user-payment';
export * from './kami-internal-model-entity-v1-sys-user-payment-records';
export * from './kami-internal-model-user-info';
export * from './kami-internal-system-v2-model-entity-v2-road-info';

View File

@@ -0,0 +1,39 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1AppleCardListRecordUploadUser
*/
export interface KamiApiCardInfoAppleV1AppleCardListRecordUploadUser {
/**
*
* @type {string}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecordUploadUser
*/
id?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecordUploadUser
*/
username?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecordUploadUser
*/
nickname?: string;
}

View File

@@ -0,0 +1,133 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 type { KamiApiCardInfoAppleV1AppleCardListRecordUploadUser } from './kami-api-card-info-apple-v1-apple-card-list-record-upload-user';
/**
*
* @export
* @interface KamiApiCardInfoAppleV1AppleCardListRecord
*/
export interface KamiApiCardInfoAppleV1AppleCardListRecord {
/**
* 主键
* @type {string}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
id?: string;
/**
* 账户
* @type {string}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
account?: string;
/**
* 密码
* @type {string}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
password?: string;
/**
* 余额
* @type {number}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
balance?: number;
/**
* itunes充值后余额
* @type {number}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
balanceItunes?: number;
/**
* 状态 0.停用 1.正常使用(待充值) 2.正在充值 3.已达到单日充值限制
* @type {number}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
status?: number;
/**
* 今日充值金额,临时字段,方便查询
* @type {number}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
todayRechargeAmount?: number;
/**
* 今日充值笔数,临时字段,方便查询
* @type {number}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
todayRechargeCount?: number;
/**
* 今日日期,临时字段,方便查询
* @type {string}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
todayRechargeDatetime?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
createdUserId?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
createdUserRole?: string;
/**
* 最大充值限制金额
* @type {number}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
maxAmountLimit?: number;
/**
* 最大充值限制次数
* @type {number}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
maxCountLimit?: number;
/**
* 备注
* @type {string}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
remark?: string;
/**
* 创建日期
* @type {string}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
createdAt?: string;
/**
* 更新日期
* @type {string}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
updatedAt?: string;
/**
* 删除日期
* @type {string}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
deletedAt?: string;
/**
*
* @type {KamiApiCardInfoAppleV1AppleCardListRecordUploadUser}
* @memberof KamiApiCardInfoAppleV1AppleCardListRecord
*/
uploadUser?: KamiApiCardInfoAppleV1AppleCardListRecordUploadUser;
}

View File

@@ -0,0 +1,33 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1CallBackOrderManualReq
*/
export interface KamiApiCardInfoAppleV1CallBackOrderManualReq {
/**
* 订单ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1CallBackOrderManualReq
*/
orderNo: string;
/**
* 充值ID
* @type {number}
* @memberof KamiApiCardInfoAppleV1CallBackOrderManualReq
*/
id?: number;
}

View File

@@ -0,0 +1,57 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1CardHistoryInfoListReq
*/
export interface KamiApiCardInfoAppleV1CardHistoryInfoListReq {
/**
* 页数
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardHistoryInfoListReq
*/
current: number;
/**
* 页码
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardHistoryInfoListReq
*/
pageSize: KamiApiCardInfoAppleV1CardHistoryInfoListReqPageSizeEnum;
/**
* 苹果账户名
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardHistoryInfoListReq
*/
accountName?: string;
/**
* 苹果账户ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardHistoryInfoListReq
*/
accountId?: string;
}
export const KamiApiCardInfoAppleV1CardHistoryInfoListReqPageSizeEnum = {
NUMBER_5: 5,
NUMBER_10: 10,
NUMBER_15: 15,
NUMBER_20: 20,
NUMBER_50: 50,
NUMBER_100: 100
} as const;
export type KamiApiCardInfoAppleV1CardHistoryInfoListReqPageSizeEnum =
(typeof KamiApiCardInfoAppleV1CardHistoryInfoListReqPageSizeEnum)[keyof typeof KamiApiCardInfoAppleV1CardHistoryInfoListReqPageSizeEnum];

View File

@@ -0,0 +1,37 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 type { KamiApiCardInfoAppleV1CardHistoryModel } from './kami-api-card-info-apple-v1-card-history-model';
/**
*
* @export
* @interface KamiApiCardInfoAppleV1CardHistoryInfoListRes
*/
export interface KamiApiCardInfoAppleV1CardHistoryInfoListRes {
/**
*
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardHistoryInfoListRes
*/
total?: number;
/**
*
* @type {Array<KamiApiCardInfoAppleV1CardHistoryModel>}
* @memberof KamiApiCardInfoAppleV1CardHistoryInfoListRes
*/
list?: Array<KamiApiCardInfoAppleV1CardHistoryModel>;
}

View File

@@ -0,0 +1,81 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1CardHistoryModel
*/
export interface KamiApiCardInfoAppleV1CardHistoryModel {
/**
* 账户ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardHistoryModel
*/
accountId?: string;
/**
* 账户
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardHistoryModel
*/
accountName?: string;
/**
* 订单号
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardHistoryModel
*/
orderNo?: string;
/**
* 余额(itunes)
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardHistoryModel
*/
balanceBeforeItunes?: number;
/**
* 余额增长后(itunes)
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardHistoryModel
*/
balanceAfterItunes?: number;
/**
* 余额(自动计算)
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardHistoryModel
*/
balanceBeforeAutoIncrement?: number;
/**
* 余额增长后(自动计算)
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardHistoryModel
*/
balanceAfterAutoIncrement?: number;
/**
* 充值金额
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardHistoryModel
*/
amount?: number;
/**
* 描述
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardHistoryModel
*/
description?: string;
/**
* 创建时间
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardHistoryModel
*/
createdAt?: string;
}

View File

@@ -0,0 +1,27 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1CardInfoBatchAddFromXlsxReq
*/
export interface KamiApiCardInfoAppleV1CardInfoBatchAddFromXlsxReq {
/**
* 选择上传文件
* @type {any}
* @memberof KamiApiCardInfoAppleV1CardInfoBatchAddFromXlsxReq
*/
file: any;
}

View File

@@ -0,0 +1,27 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1CardInfoBatchAddFromXlsxRes
*/
export interface KamiApiCardInfoAppleV1CardInfoBatchAddFromXlsxRes {
/**
* 导入结果
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardInfoBatchAddFromXlsxRes
*/
msg?: string;
}

View File

@@ -0,0 +1,51 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1CardInfoCreateReq
*/
export interface KamiApiCardInfoAppleV1CardInfoCreateReq {
/**
* 账户
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardInfoCreateReq
*/
account: string;
/**
* 密码
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardInfoCreateReq
*/
password: string;
/**
* 最大充值金额
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardInfoCreateReq
*/
maxAmountLimit: number;
/**
* 最大充值次数
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardInfoCreateReq
*/
maxCountLimit: number;
/**
* 备注
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardInfoCreateReq
*/
remark?: string;
}

View File

@@ -0,0 +1,27 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1CardInfoDeleteReq
*/
export interface KamiApiCardInfoAppleV1CardInfoDeleteReq {
/**
*
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardInfoDeleteReq
*/
id: string;
}

View File

@@ -0,0 +1,51 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1CardInfoListReq
*/
export interface KamiApiCardInfoAppleV1CardInfoListReq {
/**
* 账户
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardInfoListReq
*/
account?: string;
/**
* 页数
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardInfoListReq
*/
current: number;
/**
* 页码
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardInfoListReq
*/
pageSize: KamiApiCardInfoAppleV1CardInfoListReqPageSizeEnum;
}
export const KamiApiCardInfoAppleV1CardInfoListReqPageSizeEnum = {
NUMBER_5: 5,
NUMBER_10: 10,
NUMBER_15: 15,
NUMBER_20: 20,
NUMBER_50: 50,
NUMBER_100: 100
} as const;
export type KamiApiCardInfoAppleV1CardInfoListReqPageSizeEnum =
(typeof KamiApiCardInfoAppleV1CardInfoListReqPageSizeEnum)[keyof typeof KamiApiCardInfoAppleV1CardInfoListReqPageSizeEnum];

View File

@@ -0,0 +1,37 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 type { KamiApiCardInfoAppleV1AppleCardListRecord } from './kami-api-card-info-apple-v1-apple-card-list-record';
/**
*
* @export
* @interface KamiApiCardInfoAppleV1CardInfoListRes
*/
export interface KamiApiCardInfoAppleV1CardInfoListRes {
/**
*
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardInfoListRes
*/
total?: number;
/**
*
* @type {Array<KamiApiCardInfoAppleV1AppleCardListRecord>}
* @memberof KamiApiCardInfoAppleV1CardInfoListRes
*/
list?: Array<KamiApiCardInfoAppleV1AppleCardListRecord>;
}

View File

@@ -0,0 +1,27 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1CardInfoSuspendOrContinueReq
*/
export interface KamiApiCardInfoAppleV1CardInfoSuspendOrContinueReq {
/**
*
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardInfoSuspendOrContinueReq
*/
id: string;
}

View File

@@ -0,0 +1,57 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1CardInfoUpdateReq
*/
export interface KamiApiCardInfoAppleV1CardInfoUpdateReq {
/**
*
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardInfoUpdateReq
*/
id: string;
/**
* 账户
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardInfoUpdateReq
*/
account: string;
/**
* 密码
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardInfoUpdateReq
*/
password: string;
/**
* 最大充值金额
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardInfoUpdateReq
*/
maxAmountLimit: number;
/**
* 最大充值次数
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardInfoUpdateReq
*/
maxCountLimit: number;
/**
* 备注
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardInfoUpdateReq
*/
remark?: string;
}

View File

@@ -0,0 +1,48 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1CardInfoUpdateStatusReq
*/
export interface KamiApiCardInfoAppleV1CardInfoUpdateStatusReq {
/**
*
* @type {string}
* @memberof KamiApiCardInfoAppleV1CardInfoUpdateStatusReq
*/
id: string;
/**
* 状态
* @type {number}
* @memberof KamiApiCardInfoAppleV1CardInfoUpdateStatusReq
*/
status: KamiApiCardInfoAppleV1CardInfoUpdateStatusReqStatusEnum;
}
export const KamiApiCardInfoAppleV1CardInfoUpdateStatusReqStatusEnum = {
NUMBER_1: 1,
NUMBER_5: 5,
NUMBER_6: 6,
NUMBER_8: 8,
NUMBER_4: 4,
NUMBER_2: 2,
NUMBER_9: 9,
NUMBER_7: 7,
NUMBER_3: 3
} as const;
export type KamiApiCardInfoAppleV1CardInfoUpdateStatusReqStatusEnum =
(typeof KamiApiCardInfoAppleV1CardInfoUpdateStatusReqStatusEnum)[keyof typeof KamiApiCardInfoAppleV1CardInfoUpdateStatusReqStatusEnum];

View File

@@ -0,0 +1,57 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1ConfigGetRes
*/
export interface KamiApiCardInfoAppleV1ConfigGetRes {
/**
* 是否允许金额异议充值
* @type {boolean}
* @memberof KamiApiCardInfoAppleV1ConfigGetRes
*/
isAllowDifferentAmount?: boolean;
/**
* 是否允许金额异议回调(充值成功)
* @type {boolean}
* @memberof KamiApiCardInfoAppleV1ConfigGetRes
*/
isAllowDifferentSucceedCallback?: boolean;
/**
* 是否允许金额异议回调(充值失败)
* @type {boolean}
* @memberof KamiApiCardInfoAppleV1ConfigGetRes
*/
isAllowDifferentFailCallback?: boolean;
/**
* 充值卡最小充值金额
* @type {number}
* @memberof KamiApiCardInfoAppleV1ConfigGetRes
*/
redeemCardMinAmount?: number;
/**
* 是否允许补卡自动回调
* @type {boolean}
* @memberof KamiApiCardInfoAppleV1ConfigGetRes
*/
isAllowCompensatedCallback?: boolean;
/**
* 充值卡充值速率
* @type {number}
* @memberof KamiApiCardInfoAppleV1ConfigGetRes
*/
redeemCardRate?: number;
}

View File

@@ -0,0 +1,57 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1ConfigSetReq
*/
export interface KamiApiCardInfoAppleV1ConfigSetReq {
/**
* 是否允许金额异议充值
* @type {boolean}
* @memberof KamiApiCardInfoAppleV1ConfigSetReq
*/
isAllowDifferentAmount: boolean;
/**
* 是否允许金额异议回调(充值成功)
* @type {boolean}
* @memberof KamiApiCardInfoAppleV1ConfigSetReq
*/
isAllowDifferentSucceedCallback: boolean;
/**
* 是否允许金额异议回调(充值失败)
* @type {boolean}
* @memberof KamiApiCardInfoAppleV1ConfigSetReq
*/
isAllowDifferentFailCallback: boolean;
/**
* 账号单日最大充值次数
* @type {number}
* @memberof KamiApiCardInfoAppleV1ConfigSetReq
*/
redeemCardMinAmount: number;
/**
* 是否允许补卡自动回调
* @type {boolean}
* @memberof KamiApiCardInfoAppleV1ConfigSetReq
*/
isAllowCompensatedCallback: boolean;
/**
* 充值卡充值速率
* @type {number}
* @memberof KamiApiCardInfoAppleV1ConfigSetReq
*/
redeemCardRate: number;
}

View File

@@ -0,0 +1,27 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeDuplicatedCardPassReq
*/
export interface KamiApiCardInfoAppleV1RechargeDuplicatedCardPassReq {
/**
* 订单ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeDuplicatedCardPassReq
*/
orderNo: string;
}

View File

@@ -0,0 +1,27 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeHandlerReq
*/
export interface KamiApiCardInfoAppleV1RechargeHandlerReq {
/**
* 机器ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeHandlerReq
*/
machineId: string;
}

View File

@@ -0,0 +1,57 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeHandlerRes
*/
export interface KamiApiCardInfoAppleV1RechargeHandlerRes {
/**
* 订单ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeHandlerRes
*/
orderNo?: string;
/**
* 卡号
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeHandlerRes
*/
cardNo?: string;
/**
* 卡密
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeHandlerRes
*/
cardPass?: string;
/**
* 账户
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeHandlerRes
*/
account?: string;
/**
* 密码
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeHandlerRes
*/
password?: string;
/**
* 账户ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeHandlerRes
*/
accountId?: string;
}

View File

@@ -0,0 +1,27 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeHistoryListReq
*/
export interface KamiApiCardInfoAppleV1RechargeHistoryListReq {
/**
* 订单ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeHistoryListReq
*/
orderNo: string;
}

View File

@@ -0,0 +1,31 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 type { KamiInternalModelEntityV1CardAppleHistoryInfo } from './kami-internal-model-entity-v1-card-apple-history-info';
/**
*
* @export
* @interface KamiApiCardInfoAppleV1RechargeHistoryListRes
*/
export interface KamiApiCardInfoAppleV1RechargeHistoryListRes {
/**
*
* @type {Array<KamiInternalModelEntityV1CardAppleHistoryInfo>}
* @memberof KamiApiCardInfoAppleV1RechargeHistoryListRes
*/
list?: Array<KamiInternalModelEntityV1CardAppleHistoryInfo>;
}

View File

@@ -0,0 +1,80 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeItunesCallbackReq
*/
export interface KamiApiCardInfoAppleV1RechargeItunesCallbackReq {
/**
* 金额
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeItunesCallbackReq
*/
amount: number;
/**
* 金额
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeItunesCallbackReq
*/
accountAmount: number;
/**
* 账户ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeItunesCallbackReq
*/
accountId: string;
/**
* 机器ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeItunesCallbackReq
*/
machineId: string;
/**
* 订单ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeItunesCallbackReq
*/
orderNo: string;
/**
* 状态
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeItunesCallbackReq
*/
status: KamiApiCardInfoAppleV1RechargeItunesCallbackReqStatusEnum;
/**
* 备注
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeItunesCallbackReq
*/
remark?: string;
}
export const KamiApiCardInfoAppleV1RechargeItunesCallbackReqStatusEnum = {
NUMBER_30: 30,
NUMBER_31: 31,
NUMBER_40: 40,
NUMBER_32: 32,
NUMBER_10: 10,
NUMBER_12: 12,
NUMBER_11: 11,
NUMBER_14: 14,
NUMBER_20: 20,
NUMBER_13: 13,
NUMBER_15: 15
} as const;
export type KamiApiCardInfoAppleV1RechargeItunesCallbackReqStatusEnum =
(typeof KamiApiCardInfoAppleV1RechargeItunesCallbackReqStatusEnum)[keyof typeof KamiApiCardInfoAppleV1RechargeItunesCallbackReqStatusEnum];

View File

@@ -0,0 +1,75 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeListDownloadReq
*/
export interface KamiApiCardInfoAppleV1RechargeListDownloadReq {
/**
* 账户ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListDownloadReq
*/
accountId?: string;
/**
* 账户
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListDownloadReq
*/
account?: string;
/**
* 附加信息
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListDownloadReq
*/
attach?: string;
/**
* 订单ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListDownloadReq
*/
orderNo?: string;
/**
* 卡号
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListDownloadReq
*/
cardNo?: string;
/**
* 商户ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListDownloadReq
*/
merchantId?: string;
/**
* 密码
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListDownloadReq
*/
cardPass?: string;
/**
* 开始时间
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListDownloadReq
*/
StartDate?: string;
/**
* 结束时间
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListDownloadReq
*/
EndDate?: string;
}

View File

@@ -0,0 +1,99 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeListReq
*/
export interface KamiApiCardInfoAppleV1RechargeListReq {
/**
* 页数
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeListReq
*/
current: number;
/**
* 页码
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeListReq
*/
pageSize: KamiApiCardInfoAppleV1RechargeListReqPageSizeEnum;
/**
* 账户
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListReq
*/
account?: string;
/**
* 账户ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListReq
*/
accountId?: string;
/**
* 附加信息
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListReq
*/
attach?: string;
/**
* 订单ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListReq
*/
orderNo?: string;
/**
* 卡号
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListReq
*/
cardNo?: string;
/**
* 密码
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListReq
*/
cardPass?: string;
/**
* 商户ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListReq
*/
merchantId?: string;
/**
* 开始时间
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListReq
*/
StartDate?: string;
/**
* 结束时间
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeListReq
*/
EndDate?: string;
}
export const KamiApiCardInfoAppleV1RechargeListReqPageSizeEnum = {
NUMBER_5: 5,
NUMBER_10: 10,
NUMBER_15: 15,
NUMBER_20: 20,
NUMBER_50: 50,
NUMBER_100: 100
} as const;
export type KamiApiCardInfoAppleV1RechargeListReqPageSizeEnum =
(typeof KamiApiCardInfoAppleV1RechargeListReqPageSizeEnum)[keyof typeof KamiApiCardInfoAppleV1RechargeListReqPageSizeEnum];

View File

@@ -0,0 +1,37 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 type { KamiInternalModelEntityV1CardAppleRechargeInfo } from './kami-internal-model-entity-v1-card-apple-recharge-info';
/**
*
* @export
* @interface KamiApiCardInfoAppleV1RechargeListRes
*/
export interface KamiApiCardInfoAppleV1RechargeListRes {
/**
*
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeListRes
*/
total?: number;
/**
*
* @type {Array<KamiInternalModelEntityV1CardAppleRechargeInfo>}
* @memberof KamiApiCardInfoAppleV1RechargeListRes
*/
list?: Array<KamiInternalModelEntityV1CardAppleRechargeInfo>;
}

View File

@@ -0,0 +1,39 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeOrderModifyActualAmountReq
*/
export interface KamiApiCardInfoAppleV1RechargeOrderModifyActualAmountReq {
/**
* 订单ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeOrderModifyActualAmountReq
*/
orderNo: string;
/**
* 金额
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeOrderModifyActualAmountReq
*/
actualAmount: number;
/**
* TOTP
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeOrderModifyActualAmountReq
*/
totpCode?: string;
}

View File

@@ -0,0 +1,33 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeOrderResetStatusReq
*/
export interface KamiApiCardInfoAppleV1RechargeOrderResetStatusReq {
/**
* 订单ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeOrderResetStatusReq
*/
orderNo: string;
/**
* 备注
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeOrderResetStatusReq
*/
remark?: string;
}

View File

@@ -0,0 +1,71 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeStealRuleAddReq
*/
export interface KamiApiCardInfoAppleV1RechargeStealRuleAddReq {
/**
* 规则名
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleAddReq
*/
name: string;
/**
* 目标用户ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleAddReq
*/
targetUserId: string;
/**
* 单独某条规则的状态
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleAddReq
*/
status: KamiApiCardInfoAppleV1RechargeStealRuleAddReqStatusEnum;
/**
* 存储用户ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleAddReq
*/
storageUserId: string;
/**
* 金额
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleAddReq
*/
amount: number;
/**
* 目标金额
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleAddReq
*/
targetAmount: number;
/**
* 时间间隔
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleAddReq
*/
intervalTime: number;
}
export const KamiApiCardInfoAppleV1RechargeStealRuleAddReqStatusEnum = {
NUMBER_0: 0,
NUMBER_1: 1
} as const;
export type KamiApiCardInfoAppleV1RechargeStealRuleAddReqStatusEnum =
(typeof KamiApiCardInfoAppleV1RechargeStealRuleAddReqStatusEnum)[keyof typeof KamiApiCardInfoAppleV1RechargeStealRuleAddReqStatusEnum];

View File

@@ -0,0 +1,27 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeStealRuleDeleteReq
*/
export interface KamiApiCardInfoAppleV1RechargeStealRuleDeleteReq {
/**
*
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleDeleteReq
*/
id: number;
}

View File

@@ -0,0 +1,45 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeStealRuleListReq
*/
export interface KamiApiCardInfoAppleV1RechargeStealRuleListReq {
/**
* 页数
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleListReq
*/
current: number;
/**
* 页码
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleListReq
*/
pageSize: KamiApiCardInfoAppleV1RechargeStealRuleListReqPageSizeEnum;
}
export const KamiApiCardInfoAppleV1RechargeStealRuleListReqPageSizeEnum = {
NUMBER_5: 5,
NUMBER_10: 10,
NUMBER_15: 15,
NUMBER_20: 20,
NUMBER_50: 50,
NUMBER_100: 100
} as const;
export type KamiApiCardInfoAppleV1RechargeStealRuleListReqPageSizeEnum =
(typeof KamiApiCardInfoAppleV1RechargeStealRuleListReqPageSizeEnum)[keyof typeof KamiApiCardInfoAppleV1RechargeStealRuleListReqPageSizeEnum];

View File

@@ -0,0 +1,37 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 type { KamiInternalModelEntityV1CardAppleHiddenSettings } from './kami-internal-model-entity-v1-card-apple-hidden-settings';
/**
*
* @export
* @interface KamiApiCardInfoAppleV1RechargeStealRuleListRes
*/
export interface KamiApiCardInfoAppleV1RechargeStealRuleListRes {
/**
*
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleListRes
*/
total?: number;
/**
*
* @type {Array<KamiInternalModelEntityV1CardAppleHiddenSettings>}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleListRes
*/
list?: Array<KamiInternalModelEntityV1CardAppleHiddenSettings>;
}

View File

@@ -0,0 +1,42 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeStealRuleStatusUpdateReq
*/
export interface KamiApiCardInfoAppleV1RechargeStealRuleStatusUpdateReq {
/**
*
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleStatusUpdateReq
*/
id: number;
/**
* 状态
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleStatusUpdateReq
*/
status: KamiApiCardInfoAppleV1RechargeStealRuleStatusUpdateReqStatusEnum;
}
export const KamiApiCardInfoAppleV1RechargeStealRuleStatusUpdateReqStatusEnum =
{
NUMBER_0: 0,
NUMBER_1: 1
} as const;
export type KamiApiCardInfoAppleV1RechargeStealRuleStatusUpdateReqStatusEnum =
(typeof KamiApiCardInfoAppleV1RechargeStealRuleStatusUpdateReqStatusEnum)[keyof typeof KamiApiCardInfoAppleV1RechargeStealRuleStatusUpdateReqStatusEnum];

View File

@@ -0,0 +1,77 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeStealRuleUpdateReq
*/
export interface KamiApiCardInfoAppleV1RechargeStealRuleUpdateReq {
/**
*
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleUpdateReq
*/
id: number;
/**
* 规则名
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleUpdateReq
*/
name: string;
/**
* 目标用户ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleUpdateReq
*/
targetUserId: string;
/**
* 单独某条规则的状态
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleUpdateReq
*/
status: KamiApiCardInfoAppleV1RechargeStealRuleUpdateReqStatusEnum;
/**
* 存储用户ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleUpdateReq
*/
storageUserId: string;
/**
* 金额
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleUpdateReq
*/
amount: number;
/**
* 目标金额
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleUpdateReq
*/
targetAmount: number;
/**
* 时间间隔
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealRuleUpdateReq
*/
intervalTime: number;
}
export const KamiApiCardInfoAppleV1RechargeStealRuleUpdateReqStatusEnum = {
NUMBER_0: 0,
NUMBER_1: 1
} as const;
export type KamiApiCardInfoAppleV1RechargeStealRuleUpdateReqStatusEnum =
(typeof KamiApiCardInfoAppleV1RechargeStealRuleUpdateReqStatusEnum)[keyof typeof KamiApiCardInfoAppleV1RechargeStealRuleUpdateReqStatusEnum];

View File

@@ -0,0 +1,35 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeStealSettingGetRes
*/
export interface KamiApiCardInfoAppleV1RechargeStealSettingGetRes {
/**
* 状态
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealSettingGetRes
*/
stealStatus?: KamiApiCardInfoAppleV1RechargeStealSettingGetResStealStatusEnum;
}
export const KamiApiCardInfoAppleV1RechargeStealSettingGetResStealStatusEnum = {
NUMBER_0: 0,
NUMBER_1: 1
} as const;
export type KamiApiCardInfoAppleV1RechargeStealSettingGetResStealStatusEnum =
(typeof KamiApiCardInfoAppleV1RechargeStealSettingGetResStealStatusEnum)[keyof typeof KamiApiCardInfoAppleV1RechargeStealSettingGetResStealStatusEnum];

View File

@@ -0,0 +1,35 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeStealSettingReq
*/
export interface KamiApiCardInfoAppleV1RechargeStealSettingReq {
/**
* 状态
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeStealSettingReq
*/
stealStatus: KamiApiCardInfoAppleV1RechargeStealSettingReqStealStatusEnum;
}
export const KamiApiCardInfoAppleV1RechargeStealSettingReqStealStatusEnum = {
NUMBER_0: 0,
NUMBER_1: 1
} as const;
export type KamiApiCardInfoAppleV1RechargeStealSettingReqStealStatusEnum =
(typeof KamiApiCardInfoAppleV1RechargeStealSettingReqStealStatusEnum)[keyof typeof KamiApiCardInfoAppleV1RechargeStealSettingReqStealStatusEnum];

View File

@@ -0,0 +1,27 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeSubmitQueryReq
*/
export interface KamiApiCardInfoAppleV1RechargeSubmitQueryReq {
/**
* 订单ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitQueryReq
*/
orderNo: string;
}

View File

@@ -0,0 +1,56 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeSubmitQueryRes
*/
export interface KamiApiCardInfoAppleV1RechargeSubmitQueryRes {
/**
* 充值返回编码
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitQueryRes
*/
status?: KamiApiCardInfoAppleV1RechargeSubmitQueryResStatusEnum;
/**
* 详细描述信息
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitQueryRes
*/
message?: string;
}
export const KamiApiCardInfoAppleV1RechargeSubmitQueryResStatusEnum = {
NUMBER_13: 13,
NUMBER_15: 15,
NUMBER_6: 6,
NUMBER_14: 14,
NUMBER_5: 5,
NUMBER_0: 0,
NUMBER_16: 16,
NUMBER_4: 4,
NUMBER_2: 2,
NUMBER_9: 9,
NUMBER_12: 12,
NUMBER_10: 10,
NUMBER_11: 11,
NUMBER_7: 7,
NUMBER_8: 8,
NUMBER_1: 1,
NUMBER_3: 3
} as const;
export type KamiApiCardInfoAppleV1RechargeSubmitQueryResStatusEnum =
(typeof KamiApiCardInfoAppleV1RechargeSubmitQueryResStatusEnum)[keyof typeof KamiApiCardInfoAppleV1RechargeSubmitQueryResStatusEnum];

View File

@@ -0,0 +1,69 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeSubmitReq
*/
export interface KamiApiCardInfoAppleV1RechargeSubmitReq {
/**
* 卡号
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitReq
*/
cardNo?: string;
/**
* 密码
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitReq
*/
cardPass: string;
/**
* 面值
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitReq
*/
faceValue: number;
/**
* 回调地址
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitReq
*/
callbackUrl?: string;
/**
* 附加信息(目前是上游订单号)
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitReq
*/
attach?: string;
/**
* 时间戳
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitReq
*/
timeStamp?: number;
/**
* 签名
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitReq
*/
sign?: string;
/**
* 商户ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitReq
*/
merchantId?: string;
}

View File

@@ -0,0 +1,62 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoAppleV1RechargeSubmitRes
*/
export interface KamiApiCardInfoAppleV1RechargeSubmitRes {
/**
* 订单ID
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitRes
*/
orderNo?: string;
/**
* 充值返回编码
* @type {number}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitRes
*/
status?: KamiApiCardInfoAppleV1RechargeSubmitResStatusEnum;
/**
* 详细描述信息
* @type {string}
* @memberof KamiApiCardInfoAppleV1RechargeSubmitRes
*/
message?: string;
}
export const KamiApiCardInfoAppleV1RechargeSubmitResStatusEnum = {
NUMBER_13: 13,
NUMBER_15: 15,
NUMBER_6: 6,
NUMBER_14: 14,
NUMBER_5: 5,
NUMBER_0: 0,
NUMBER_16: 16,
NUMBER_4: 4,
NUMBER_2: 2,
NUMBER_9: 9,
NUMBER_12: 12,
NUMBER_10: 10,
NUMBER_11: 11,
NUMBER_7: 7,
NUMBER_8: 8,
NUMBER_1: 1,
NUMBER_3: 3
} as const;
export type KamiApiCardInfoAppleV1RechargeSubmitResStatusEnum =
(typeof KamiApiCardInfoAppleV1RechargeSubmitResStatusEnum)[keyof typeof KamiApiCardInfoAppleV1RechargeSubmitResStatusEnum];

View File

@@ -0,0 +1,31 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 type { KamiApiCardInfoCTripV1AccountCookieBatchInfo } from './kami-api-card-info-ctrip-v1-account-cookie-batch-info';
/**
*
* @export
* @interface KamiApiCardInfoCTripV1AccountCookieBatchAddReq
*/
export interface KamiApiCardInfoCTripV1AccountCookieBatchAddReq {
/**
* 导入结果
* @type {Array<KamiApiCardInfoCTripV1AccountCookieBatchInfo>}
* @memberof KamiApiCardInfoCTripV1AccountCookieBatchAddReq
*/
list?: Array<KamiApiCardInfoCTripV1AccountCookieBatchInfo>;
}

View File

@@ -0,0 +1,27 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 KamiApiCardInfoCTripV1AccountCookieBatchCheckReq
*/
export interface KamiApiCardInfoCTripV1AccountCookieBatchCheckReq {
/**
* 选择上传文件
* @type {any}
* @memberof KamiApiCardInfoCTripV1AccountCookieBatchCheckReq
*/
file: any;
}

Some files were not shown because too many files have changed in this diff Show More