Compare commits
15 Commits
3c1df922e1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8884f9c416 | ||
|
|
e801249e21 | ||
|
|
31aecb388a | ||
|
|
992ae11b21 | ||
|
|
2d1834422b | ||
|
|
845d68110b | ||
|
|
2962da0907 | ||
|
|
2ab0c77e30 | ||
|
|
6ccb94881f | ||
|
|
63f28b7200 | ||
|
|
5f3d98be99 | ||
|
|
54c45a7ed0 | ||
|
|
57bc5d576a | ||
|
|
ccbe5b736a | ||
|
|
e98d43564b |
@@ -1,5 +1,3 @@
|
|||||||
// @see: http://eslint.cn
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
env: {
|
env: {
|
||||||
@@ -7,9 +5,7 @@ module.exports = {
|
|||||||
node: true,
|
node: true,
|
||||||
es6: true
|
es6: true
|
||||||
},
|
},
|
||||||
// 指定如何解析语法
|
|
||||||
parser: "vue-eslint-parser",
|
parser: "vue-eslint-parser",
|
||||||
// 优先级低于 parse 的语法解析配置
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
ecmaVersion: 2020,
|
ecmaVersion: 2020,
|
||||||
@@ -19,50 +15,37 @@ module.exports = {
|
|||||||
jsx: true
|
jsx: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 继承某些已有的规则
|
|
||||||
extends: ["plugin:vue/vue3-recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
|
extends: ["plugin:vue/vue3-recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
|
||||||
/**
|
|
||||||
* "off" 或 0 ==> 关闭规则
|
|
||||||
* "warn" 或 1 ==> 打开的规则作为警告(不影响代码执行)
|
|
||||||
* "error" 或 2 ==> 规则作为一个错误(代码不能执行,界面报错)
|
|
||||||
*/
|
|
||||||
rules: {
|
rules: {
|
||||||
// eslint (http://eslint.cn/docs/rules)
|
"no-var": "error",
|
||||||
"no-var": "error", // 要求使用 let 或 const 而不是 var
|
"no-multiple-empty-lines": ["error", { max: 1 }],
|
||||||
"no-multiple-empty-lines": ["error", { max: 1 }], // 不允许多个空行
|
"prefer-const": "off",
|
||||||
"prefer-const": "off", // 使用 let 关键字声明但在初始分配后从未重新分配的变量,要求使用 const
|
"no-use-before-define": "off",
|
||||||
"no-use-before-define": "off", // 禁止在 函数/类/变量 定义之前使用它们
|
|
||||||
|
|
||||||
// typeScript (https://typescript-eslint.io/rules)
|
"@typescript-eslint/no-unused-vars": "error",
|
||||||
"@typescript-eslint/no-unused-vars": "error", // 禁止定义未使用的变量
|
"@typescript-eslint/prefer-ts-expect-error": "error",
|
||||||
"@typescript-eslint/prefer-ts-expect-error": "error", // 禁止使用 @ts-ignore
|
"@typescript-eslint/ban-ts-comment": "error",
|
||||||
"@typescript-eslint/ban-ts-comment": "error", // 禁止 @ts-<directive> 使用注释或要求在指令后进行描述
|
"@typescript-eslint/no-inferrable-types": "off",
|
||||||
"@typescript-eslint/no-inferrable-types": "off", // 可以轻松推断的显式类型可能会增加不必要的冗长
|
"@typescript-eslint/no-namespace": "off",
|
||||||
"@typescript-eslint/no-namespace": "off", // 禁止使用自定义 TypeScript 模块和命名空间
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
"@typescript-eslint/no-explicit-any": "off", // 禁止使用 any 类型
|
"@typescript-eslint/ban-types": "off",
|
||||||
"@typescript-eslint/ban-types": "off", // 禁止使用特定类型
|
"@typescript-eslint/no-var-requires": "off",
|
||||||
"@typescript-eslint/no-var-requires": "off", // 允许使用 require() 函数导入模块
|
"@typescript-eslint/no-empty-function": "off",
|
||||||
"@typescript-eslint/no-empty-function": "off", // 禁止空函数
|
"@typescript-eslint/no-non-null-assertion": "off",
|
||||||
"@typescript-eslint/no-non-null-assertion": "off", // 不允许使用后缀运算符的非空断言(!)
|
|
||||||
|
|
||||||
// vue (https://eslint.vuejs.org/rules)
|
"vue/script-setup-uses-vars": "error",
|
||||||
"vue/script-setup-uses-vars": "error", // 防止<script setup>使用的变量<template>被标记为未使用,此规则仅在启用该 no-unused-vars 规则时有效
|
"vue/v-slot-style": "error",
|
||||||
"vue/v-slot-style": "error", // 强制执行 v-slot 指令样式
|
"vue/no-mutating-props": "error",
|
||||||
"vue/no-mutating-props": "error", // 不允许改变组件 prop
|
"vue/custom-event-name-casing": "error",
|
||||||
"vue/custom-event-name-casing": "error", // 为自定义事件名称强制使用特定大小写
|
|
||||||
"vue/html-closing-bracket-newline": [
|
"vue/html-closing-bracket-newline": [
|
||||||
"error"
|
"error"
|
||||||
// {
|
],
|
||||||
// singleline: "never",
|
"vue/attribute-hyphenation": "error",
|
||||||
// multiline: "never"
|
"vue/attributes-order": "off",
|
||||||
// }
|
"vue/no-v-html": "off",
|
||||||
], // 在标签的右括号之前要求或禁止换行
|
"vue/require-default-prop": "off",
|
||||||
"vue/attribute-hyphenation": "error", // 对模板中的自定义组件强制执行属性命名样式:my-prop="prop"
|
"vue/multi-word-component-names": "off",
|
||||||
"vue/attributes-order": "off", // vue api使用顺序,强制执行属性顺序
|
"vue/no-setup-props-destructure": "off",
|
||||||
"vue/no-v-html": "off", // 禁止使用 v-html
|
|
||||||
"vue/require-default-prop": "off", // 此规则要求为每个 prop 为必填时,必须提供默认值
|
|
||||||
"vue/multi-word-component-names": "off", // 要求组件名称始终为 “-” 链接的单词
|
|
||||||
"vue/no-setup-props-destructure": "off", // 禁止解构 props 传递给 setup
|
|
||||||
'prettier/prettier': 'off'
|
'prettier/prettier': 'off'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,41 +1,21 @@
|
|||||||
// @see: https://www.prettier.cn
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// 指定最大换行长度
|
|
||||||
printWidth: 130,
|
printWidth: 130,
|
||||||
// 缩进制表符宽度 | 空格数
|
|
||||||
tabWidth: 4,
|
tabWidth: 4,
|
||||||
// 使用制表符而不是空格缩进行 (true:制表符,false:空格)
|
|
||||||
useTabs: false,
|
useTabs: false,
|
||||||
// 结尾不用分号 (true:有,false:没有)
|
|
||||||
semi: true,
|
semi: true,
|
||||||
// 使用单引号 (true:单引号,false:双引号)
|
|
||||||
singleQuote: false,
|
singleQuote: false,
|
||||||
// 在对象字面量中决定是否将属性名用引号括起来 可选值 "<as-needed|consistent|preserve>"
|
|
||||||
quoteProps: "as-needed",
|
quoteProps: "as-needed",
|
||||||
// 在JSX中使用单引号而不是双引号 (true:单引号,false:双引号)
|
|
||||||
jsxSingleQuote: false,
|
jsxSingleQuote: false,
|
||||||
// 多行时尽可能打印尾随逗号 可选值"<none|es5|all>"
|
|
||||||
trailingComma: "none",
|
trailingComma: "none",
|
||||||
// 在对象,数组括号与文字之间加空格 "{ foo: bar }" (true:有,false:没有)
|
|
||||||
bracketSpacing: true,
|
bracketSpacing: true,
|
||||||
// 将 > 多行元素放在最后一行的末尾,而不是单独放在下一行 (true:放末尾,false:单独一行)
|
|
||||||
bracketSameLine: false,
|
bracketSameLine: false,
|
||||||
// (x) => {} 箭头函数参数只有一个时是否要有小括号 (avoid:省略括号,always:不省略括号)
|
|
||||||
arrowParens: "avoid",
|
arrowParens: "avoid",
|
||||||
// 指定要使用的解析器,不需要写文件开头的 @prettier
|
|
||||||
requirePragma: false,
|
requirePragma: false,
|
||||||
// 可以在文件顶部插入一个特殊标记,指定该文件已使用 Prettier 格式化
|
|
||||||
insertPragma: false,
|
insertPragma: false,
|
||||||
// 用于控制文本是否应该被换行以及如何进行换行
|
|
||||||
proseWrap: "preserve",
|
proseWrap: "preserve",
|
||||||
// 在html中空格是否是敏感的 "css" - 遵守 CSS 显示属性的默认值, "strict" - 空格被认为是敏感的 ,"ignore" - 空格被认为是不敏感的
|
|
||||||
htmlWhitespaceSensitivity: "css",
|
htmlWhitespaceSensitivity: "css",
|
||||||
// 控制在 Vue 单文件组件中 <script> 和 <style> 标签内的代码缩进方式
|
|
||||||
vueIndentScriptAndStyle: false,
|
vueIndentScriptAndStyle: false,
|
||||||
// 换行符使用 lf 结尾是 可选值 "<auto|lf|crlf|cr>"
|
|
||||||
endOfLine: "auto",
|
endOfLine: "auto",
|
||||||
// 这两个选项可用于格式化以给定字符偏移量(分别包括和不包括)开始和结束的代码 (rangeStart:开始,rangeEnd:结束)
|
|
||||||
rangeStart: 0,
|
rangeStart: 0,
|
||||||
rangeEnd: Infinity
|
rangeEnd: Infinity
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,34 +1,29 @@
|
|||||||
// @see: https://stylelint.io
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
// 继承某些已有的规则
|
|
||||||
extends: [
|
extends: [
|
||||||
"stylelint-config-standard", // 配置 stylelint 拓展插件
|
"stylelint-config-standard",
|
||||||
"stylelint-config-html/vue", // 配置 vue 中 template 样式格式化
|
"stylelint-config-html/vue",
|
||||||
"stylelint-config-standard-scss", // 配置 stylelint scss 插件
|
"stylelint-config-standard-scss",
|
||||||
"stylelint-config-recommended-vue/scss", // 配置 vue 中 scss 样式格式化
|
"stylelint-config-recommended-vue/scss",
|
||||||
"stylelint-config-recess-order" // 配置 stylelint css 属性书写顺序插件,
|
"stylelint-config-recess-order"
|
||||||
],
|
],
|
||||||
overrides: [
|
overrides: [
|
||||||
// 扫描 .vue/html 文件中的 <style> 标签内的样式
|
|
||||||
{
|
{
|
||||||
files: ["**/*.{vue,html}"],
|
files: ["**/*.{vue,html}"],
|
||||||
customSyntax: "postcss-html"
|
customSyntax: "postcss-html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
"function-url-quotes": "always", // URL 的引号 "always(必须加上引号)"|"never(没有引号)"
|
"function-url-quotes": "always",
|
||||||
"color-hex-length": "long", // 指定 16 进制颜色的简写或扩写 "short(16进制简写)"|"long(16进制扩写)"
|
"color-hex-length": "long",
|
||||||
"rule-empty-line-before": "never", // 要求或禁止在规则之前的空行 "always(规则之前必须始终有一个空行)"|"never(规则前绝不能有空行)"|"always-multi-line(多行规则之前必须始终有一个空行)"|"never-multi-line(多行规则之前绝不能有空行)"
|
"rule-empty-line-before": "never",
|
||||||
"font-family-no-missing-generic-family-keyword": null, // 禁止在字体族名称列表中缺少通用字体族关键字
|
"font-family-no-missing-generic-family-keyword": null,
|
||||||
"scss/at-import-partial-extension": null, // 解决不能使用 @import 引入 scss 文件
|
"scss/at-import-partial-extension": null,
|
||||||
"property-no-unknown": null, // 禁止未知的属性
|
"property-no-unknown": null,
|
||||||
"no-empty-source": null, // 禁止空源码
|
"selector-class-pattern": null,
|
||||||
"selector-class-pattern": null, // 强制选择器类名的格式
|
"value-no-vendor-prefix": null,
|
||||||
"value-no-vendor-prefix": null, // 关闭 vendor-prefix (为了解决多行省略 -webkit-box)
|
"no-descending-specificity": null,
|
||||||
"no-descending-specificity": null, // 不允许较低特异性的选择器出现在覆盖较高特异性的选择器
|
"value-keyword-case": null,
|
||||||
"value-keyword-case": null, // 解决在 scss 中使用 v-bind 大写单词报错
|
|
||||||
"selector-pseudo-class-no-unknown": [
|
"selector-pseudo-class-no-unknown": [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,14 +12,10 @@ export function isTestFn(mode: string): boolean {
|
|||||||
return mode === "test";
|
return mode === "test";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether to generate package preview
|
|
||||||
*/
|
|
||||||
export function isReportMode(): boolean {
|
export function isReportMode(): boolean {
|
||||||
return process.env.VITE_REPORT === "true";
|
return process.env.VITE_REPORT === "true";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read all environment variable configuration files to process.env
|
|
||||||
export function wrapperEnv(envConf: Recordable): ViteEnv {
|
export function wrapperEnv(envConf: Recordable): ViteEnv {
|
||||||
const ret: any = {};
|
const ret: any = {};
|
||||||
|
|
||||||
@@ -37,10 +33,6 @@ export function wrapperEnv(envConf: Recordable): ViteEnv {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get user root directory
|
|
||||||
* @param dir file path
|
|
||||||
*/
|
|
||||||
export function getRootPath(...dir: string[]) {
|
export function getRootPath(...dir: string[]) {
|
||||||
return path.resolve(process.cwd(), ...dir);
|
return path.resolve(process.cwd(), ...dir);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,44 +10,28 @@ import eslintPlugin from "vite-plugin-eslint";
|
|||||||
import viteCompression from "vite-plugin-compression";
|
import viteCompression from "vite-plugin-compression";
|
||||||
import vueSetupExtend from "unplugin-vue-setup-extend-plus/vite";
|
import vueSetupExtend from "unplugin-vue-setup-extend-plus/vite";
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建 vite 插件
|
|
||||||
* @param viteEnv
|
|
||||||
*/
|
|
||||||
export const createVitePlugins = (viteEnv: ViteEnv): (PluginOption | PluginOption[])[] => {
|
export const createVitePlugins = (viteEnv: ViteEnv): (PluginOption | PluginOption[])[] => {
|
||||||
const { VITE_GLOB_APP_TITLE, VITE_REPORT, VITE_PWA } = viteEnv;
|
const { VITE_GLOB_APP_TITLE, VITE_REPORT, VITE_PWA } = viteEnv;
|
||||||
return [
|
return [
|
||||||
vue(),
|
vue(),
|
||||||
// vue 可以使用 jsx/tsx 语法
|
|
||||||
vueJsx(),
|
vueJsx(),
|
||||||
// esLint 报错信息显示在浏览器界面上
|
|
||||||
eslintPlugin(),
|
eslintPlugin(),
|
||||||
// name 可以写在 script 标签上
|
|
||||||
vueSetupExtend({}),
|
vueSetupExtend({}),
|
||||||
// 创建打包压缩配置
|
|
||||||
createCompression(viteEnv),
|
createCompression(viteEnv),
|
||||||
// 注入变量到 html 文件
|
|
||||||
createHtmlPlugin({
|
createHtmlPlugin({
|
||||||
inject: {
|
inject: {
|
||||||
data: { title: VITE_GLOB_APP_TITLE }
|
data: { title: VITE_GLOB_APP_TITLE }
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
// 使用 svg 图标
|
|
||||||
createSvgIconsPlugin({
|
createSvgIconsPlugin({
|
||||||
iconDirs: [resolve(process.cwd(), "src/assets/icons")],
|
iconDirs: [resolve(process.cwd(), "src/assets/icons")],
|
||||||
symbolId: "icon-[dir]-[name]"
|
symbolId: "icon-[dir]-[name]"
|
||||||
}),
|
}),
|
||||||
// vitePWA
|
|
||||||
VITE_PWA && createVitePwa(viteEnv),
|
VITE_PWA && createVitePwa(viteEnv),
|
||||||
// 是否生成包预览,分析依赖包大小做优化处理
|
|
||||||
VITE_REPORT && (visualizer({ filename: "stats.html", gzipSize: true, brotliSize: true }) as PluginOption)
|
VITE_REPORT && (visualizer({ filename: "stats.html", gzipSize: true, brotliSize: true }) as PluginOption)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @description 根据 compress 配置,生成不同的压缩规则
|
|
||||||
* @param viteEnv
|
|
||||||
*/
|
|
||||||
const createCompression = (viteEnv: ViteEnv): PluginOption | PluginOption[] => {
|
const createCompression = (viteEnv: ViteEnv): PluginOption | PluginOption[] => {
|
||||||
const { VITE_BUILD_COMPRESS = "none", VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE } = viteEnv;
|
const { VITE_BUILD_COMPRESS = "none", VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE } = viteEnv;
|
||||||
const compressList = VITE_BUILD_COMPRESS.split(",");
|
const compressList = VITE_BUILD_COMPRESS.split(",");
|
||||||
@@ -73,13 +57,8 @@ const createCompression = (viteEnv: ViteEnv): PluginOption | PluginOption[] => {
|
|||||||
return plugins;
|
return plugins;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @description VitePwa
|
|
||||||
* @param viteEnv
|
|
||||||
*/
|
|
||||||
|
|
||||||
const createVitePwa = (viteEnv: ViteEnv): PluginOption | PluginOption[] => {
|
const createVitePwa = (viteEnv: ViteEnv): PluginOption | PluginOption[] => {
|
||||||
const { VITE_GLOB_APP_TITLE, VITE_URL } = viteEnv;
|
const { VITE_GLOB_APP_TITLE } = viteEnv;
|
||||||
return VitePWA({
|
return VitePWA({
|
||||||
registerType: "autoUpdate",
|
registerType: "autoUpdate",
|
||||||
manifest: {
|
manifest: {
|
||||||
@@ -88,7 +67,7 @@ const createVitePwa = (viteEnv: ViteEnv): PluginOption | PluginOption[] => {
|
|||||||
theme_color: "#ffffff",
|
theme_color: "#ffffff",
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
src: VITE_URL + "src/customize/images/logo.png",
|
src: "logo.png",
|
||||||
sizes: "100x100",
|
sizes: "100x100",
|
||||||
type: "image/png"
|
type: "image/png"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,23 +6,17 @@ type ProxyList = ProxyItem[];
|
|||||||
|
|
||||||
type ProxyTargetList = Record<string, ProxyOptions>;
|
type ProxyTargetList = Record<string, ProxyOptions>;
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建代理,用于解析 .env.development 代理配置
|
|
||||||
* @param list
|
|
||||||
*/
|
|
||||||
export function createProxy(list: ProxyList = []) {
|
export function createProxy(list: ProxyList = []) {
|
||||||
const ret: ProxyTargetList = {};
|
const ret: ProxyTargetList = {};
|
||||||
for (const [prefix, target] of list) {
|
for (const [prefix, target] of list) {
|
||||||
const httpsRE = /^https:\/\//;
|
const httpsRE = /^https:\/\//;
|
||||||
const isHttps = httpsRE.test(target);
|
const isHttps = httpsRE.test(target);
|
||||||
|
|
||||||
// https://github.com/http-party/node-http-proxy#options
|
|
||||||
ret[prefix] = {
|
ret[prefix] = {
|
||||||
target: target,
|
target: target,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
ws: true,
|
ws: true,
|
||||||
rewrite: path => path.replace(new RegExp(`^${prefix}`), ""),
|
rewrite: path => path.replace(new RegExp(`^${prefix}`), ""),
|
||||||
// https is require secure=false
|
|
||||||
...(isHttps ? { secure: false } : {})
|
...(isHttps ? { secure: false } : {})
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @see: https://cz-git.qbenben.com/zh/guide
|
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
@@ -12,7 +11,6 @@ module.exports = {
|
|||||||
ignores: [commit => commit.includes("init")],
|
ignores: [commit => commit.includes("init")],
|
||||||
extends: ["@commitlint/config-conventional"],
|
extends: ["@commitlint/config-conventional"],
|
||||||
rules: {
|
rules: {
|
||||||
// @see: https://commitlint.js.org/#/reference-rules
|
|
||||||
"body-leading-blank": [2, "always"],
|
"body-leading-blank": [2, "always"],
|
||||||
"footer-leading-blank": [1, "always"],
|
"footer-leading-blank": [1, "always"],
|
||||||
"header-max-length": [2, "always", 108],
|
"header-max-length": [2, "always", 108],
|
||||||
@@ -53,17 +51,6 @@ module.exports = {
|
|||||||
customFooterPrefixs: "Input ISSUES prefix:",
|
customFooterPrefixs: "Input ISSUES prefix:",
|
||||||
footer: "List any ISSUES by this change. E.g.: #31, #34:\n",
|
footer: "List any ISSUES by this change. E.g.: #31, #34:\n",
|
||||||
confirmCommit: "Are you sure you want to proceed with the commit above?"
|
confirmCommit: "Are you sure you want to proceed with the commit above?"
|
||||||
// 中文版
|
|
||||||
// type: "选择你要提交的类型 :",
|
|
||||||
// scope: "选择一个提交范围(可选):",
|
|
||||||
// customScope: "请输入自定义的提交范围 :",
|
|
||||||
// subject: "填写简短精炼的变更描述 :\n",
|
|
||||||
// body: '填写更加详细的变更描述(可选)。使用 "|" 换行 :\n',
|
|
||||||
// breaking: '列举非兼容性重大的变更(可选)。使用 "|" 换行 :\n',
|
|
||||||
// footerPrefixsSelect: "选择关联issue前缀(可选):",
|
|
||||||
// customFooterPrefixs: "输入自定义issue前缀 :",
|
|
||||||
// footer: "列举关联issue (可选) 例如: #31, #I3244 :\n",
|
|
||||||
// confirmCommit: "是否提交或修改commit ?"
|
|
||||||
},
|
},
|
||||||
types: [
|
types: [
|
||||||
{
|
{
|
||||||
|
|||||||
18
index.html
18
index.html
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="src/customize/images/favicon.ico?v=123" />
|
<link rel="icon" type="image/x-icon" href="./favicon.ico?v=123" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title><%- title %></title>
|
<title><%- title %></title>
|
||||||
</head>
|
</head>
|
||||||
@@ -91,6 +91,22 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
var pathname = window.location.pathname || "/";
|
||||||
|
var search = window.location.search || "";
|
||||||
|
var hash = window.location.hash || "";
|
||||||
|
if (hash || pathname === "/" || pathname === "/index.html") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var normalizedPath = pathname.replace(/\/index\.html$/i, "") || "/";
|
||||||
|
if (normalizedPath === "/") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var target = normalizedPath + search;
|
||||||
|
window.location.replace("/#" + target);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
<script>
|
<script>
|
||||||
const globalState = JSON.parse(window.localStorage.getItem("IOMS-global"));
|
const globalState = JSON.parse(window.localStorage.getItem("IOMS-global"));
|
||||||
if (globalState) {
|
if (globalState) {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
"qs": "^6.11.2",
|
"qs": "^6.11.2",
|
||||||
"screenfull": "^6.0.2",
|
"screenfull": "^6.0.2",
|
||||||
"sortablejs": "^1.15.0",
|
"sortablejs": "^1.15.0",
|
||||||
"typescript": "^5.1.6",
|
"typescript": "5.4.5",
|
||||||
"vue": "^3.3.4",
|
"vue": "^3.3.4",
|
||||||
"vue-router": "^4.2.4"
|
"vue-router": "^4.2.4"
|
||||||
},
|
},
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
"postcss-html": "^1.5.0",
|
"postcss-html": "^1.5.0",
|
||||||
"prettier": "^3.1.0",
|
"prettier": "^3.1.0",
|
||||||
"rollup-plugin-visualizer": "^5.9.2",
|
"rollup-plugin-visualizer": "^5.9.2",
|
||||||
"sass": "^1.66.1",
|
"sass": "1.78.0",
|
||||||
"standard-version": "^9.5.0",
|
"standard-version": "^9.5.0",
|
||||||
"stylelint": "^15.10.3",
|
"stylelint": "^15.10.3",
|
||||||
"stylelint-config-html": "^1.1.0",
|
"stylelint-config-html": "^1.1.0",
|
||||||
|
|||||||
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
BIN
public/logo.png
Normal file
BIN
public/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
11
src/App.vue
11
src/App.vue
@@ -1,23 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-config-provider :locale="locale" :size="assemblySize" :button="buttonConfig">
|
<el-config-provider :locale="locale" :size="assemblySize()" :button="buttonConfig">
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
</el-config-provider>
|
</el-config-provider>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, computed } from "vue";
|
|
||||||
import { useTheme } from "@/hooks/useTheme";
|
import { useTheme } from "@/hooks/useTheme";
|
||||||
import { ElConfigProvider } from "element-plus";
|
import { ElConfigProvider } from "element-plus";
|
||||||
import { useGlobalStore } from "@/stores/modules/global";
|
import { useGlobalStore } from "@/stores/modules/global";
|
||||||
import locale from "element-plus/es/locale/lang/zh-cn";
|
import locale from "element-plus/es/locale/lang/zh-cn";
|
||||||
const globalStore = useGlobalStore();
|
const globalStore = useGlobalStore();
|
||||||
|
|
||||||
// init theme
|
|
||||||
const { initTheme } = useTheme();
|
const { initTheme } = useTheme();
|
||||||
initTheme();
|
initTheme();
|
||||||
// element assemblySize
|
const assemblySize = () => globalStore.assemblySize;
|
||||||
const assemblySize = computed(() => globalStore.assemblySize);
|
const buttonConfig = { autoInsertSpace: false };
|
||||||
|
|
||||||
// element button config
|
|
||||||
const buttonConfig = reactive({ autoInsertSpace: false });
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,82 +1,54 @@
|
|||||||
// 登录
|
|
||||||
export const loginApiUrl = "/guest/login";
|
export const loginApiUrl = "/guest/login";
|
||||||
|
|
||||||
// 配置
|
|
||||||
export const getSystemConfigListApiUrl = "/system/config/list";
|
export const getSystemConfigListApiUrl = "/system/config/list";
|
||||||
export const getSystemConfigSaveApiUrl = "/system/config/save";
|
export const getSystemConfigSaveApiUrl = "/system/config/save";
|
||||||
|
export const getSystemConfigSeoAiRulesResetApiUrl = "/system/config/seo-ai-rules/reset";
|
||||||
|
|
||||||
// 资源端点
|
|
||||||
export const getSystemZyddListApiUrl = "/system/zydd/list";
|
|
||||||
export const getSystemZyddSaveApiUrl = "/system/zydd/save";
|
|
||||||
|
|
||||||
// 计划任务列表
|
|
||||||
export const getSystemPlanListApiUrl = "/system/plan/list";
|
export const getSystemPlanListApiUrl = "/system/plan/list";
|
||||||
export const getSystemPlanSaveApiUrl = "/system/plan/save";
|
export const getSystemPlanSaveApiUrl = "/system/plan/save";
|
||||||
|
|
||||||
// 采集配置列表
|
|
||||||
export const getSystemCjpzListApiUrl = "/system/cjpz/list";
|
export const getSystemCjpzListApiUrl = "/system/cjpz/list";
|
||||||
export const getSystemCjpzSaveApiUrl = "/system/cjpz/save";
|
export const getSystemCjpzSaveApiUrl = "/system/cjpz/save";
|
||||||
|
|
||||||
// 用户信息
|
|
||||||
export const getSystemUserInfoApiUrl = "/system/user/info";
|
export const getSystemUserInfoApiUrl = "/system/user/info";
|
||||||
// 用户列表
|
|
||||||
export const getSystemUserlistApiUrl = "/system/user/list";
|
export const getSystemUserlistApiUrl = "/system/user/list";
|
||||||
|
|
||||||
// 视频分类 /shipin/fenlei/list?page=1&limit=10&key=
|
export const getVideoCategoryApiUrl = "/video/category/list";
|
||||||
export const getShipinFenleiApiUrl = "/shipin/fenlei/list";
|
export const getVideoListApiUrl = "/video/list";
|
||||||
// 视频列表 /shipin/main/list?page=1&limit=10&key=
|
export const getShipinNvYouApiUrl = getVideoListApiUrl;
|
||||||
export const getShipinMainListApiUrl = "/shipin/main/list";
|
export const getVideoSetLevelApiUrl = "/video/level/set";
|
||||||
// 视频列表 -批量设置每日推荐视频
|
export const getVideoSetBoxOfficeApiUrl = "/video/boxoffice/set";
|
||||||
export const getShipinMainMrtjApiUrl = "/shipin/main/mrtj";
|
|
||||||
export const getShipinMainVipApiUrl = "/shipin/main/vip";
|
|
||||||
|
|
||||||
// seo关键词
|
|
||||||
export const getKeyWordListApiUrl = "/system/keyword/list";
|
export const getKeyWordListApiUrl = "/system/keyword/list";
|
||||||
export const getKeyWordSaveApiUrl = "/system/keyword/save";
|
export const getKeyWordSaveApiUrl = "/system/keyword/save";
|
||||||
export const getKeyWordDelApiUrl = "/system/keyword/del";
|
export const getKeyWordDelApiUrl = "/system/keyword/del";
|
||||||
|
|
||||||
// 小说分类
|
|
||||||
export const getXiaoShuoFenleiApiUrl = "/novel/category/list";
|
export const getXiaoShuoFenleiApiUrl = "/novel/category/list";
|
||||||
// 小说章节
|
|
||||||
export const getXiaoZhangJieYouApiUrl = "/xiaoshuo/zhangjie/list";
|
export const getXiaoZhangJieYouApiUrl = "/xiaoshuo/zhangjie/list";
|
||||||
// 小说列表
|
|
||||||
export const getXiaoShuoMainListApiUrl = "/novel/list";
|
export const getXiaoShuoMainListApiUrl = "/novel/list";
|
||||||
|
|
||||||
// 广告分组 /guanggao/main/group/list?page=1&limit=10&key=
|
|
||||||
export const getGuangGaoMainGroupListApiUrl = "/guanggao/main/group/list";
|
export const getGuangGaoMainGroupListApiUrl = "/guanggao/main/group/list";
|
||||||
// 广告列表 /guanggao/main/list?page=1&limit=10&key=
|
|
||||||
export const getGuangGaoMainListApiUrl = "/guanggao/main/list";
|
export const getGuangGaoMainListApiUrl = "/guanggao/main/list";
|
||||||
|
export const getGuangGaoBaoYangRuZhuListApiUrl = getGuangGaoMainListApiUrl;
|
||||||
|
export const getGuangGaoLouFengListApiUrl = getGuangGaoMainListApiUrl;
|
||||||
|
export const getGuangGaoYouXiListApiUrl = getGuangGaoMainListApiUrl;
|
||||||
|
export const getGuangGaoZhiBoListApiUrl = getGuangGaoMainListApiUrl;
|
||||||
|
export const getGuangGaoGuanFangZiYingListApiUrl = getGuangGaoMainListApiUrl;
|
||||||
|
|
||||||
//广告配置
|
|
||||||
export const getGuangGaoGgpzListApiUrl = "/guanggao/ggpz/list";
|
export const getGuangGaoGgpzListApiUrl = "/guanggao/ggpz/list";
|
||||||
export const getGuangGaoGgpzSaveApiUrl = "/guanggao/ggpz/save";
|
export const getGuangGaoGgpzSaveApiUrl = "/guanggao/ggpz/save";
|
||||||
|
|
||||||
// 漫画分类 /manhua/fenlei/list?page=1&limit=10&key=
|
|
||||||
export const getManHuaFenleiApiUrl = "/manhua/fenlei/list";
|
export const getManHuaFenleiApiUrl = "/manhua/fenlei/list";
|
||||||
// 漫画章节 /shipin/nvyou/list?page=1&limit=10&key=
|
|
||||||
export const getManHuaZhangJieApiUrl = "/manhua/zhangjie/list";
|
export const getManHuaZhangJieApiUrl = "/manhua/zhangjie/list";
|
||||||
// 漫画列表 /shipin/main/list?page=1&limit=10&key=
|
|
||||||
export const getManHuaMainListApiUrl = "/manhua/main/list";
|
export const getManHuaMainListApiUrl = "/manhua/main/list";
|
||||||
|
|
||||||
// 设置广告分组 /guanggao/main/group/save 传参form-data 参数 ggfz_code ggfz_name ggfz_id
|
|
||||||
export const getGuangGaoMainGroupSaveApiUrl = "/guanggao/main/group/save";
|
export const getGuangGaoMainGroupSaveApiUrl = "/guanggao/main/group/save";
|
||||||
// 删除广告分组 /guanggao/main/group/del 传参form-data 参数 ggfz_id
|
|
||||||
export const getGuangGaoMainGroupDelApiUrl = "/guanggao/main/group/del";
|
export const getGuangGaoMainGroupDelApiUrl = "/guanggao/main/group/del";
|
||||||
// 设置广告 /guanggao/main/group/save 传参form-data 参数 gg_id ggfz_id gg_lei_xing gg_tu_pian gg_wen_zi gg_tiao_zhuan_di_zhi
|
|
||||||
export const getGuangGaoMainSaveApiUrl = "/guanggao/main/save";
|
export const getGuangGaoMainSaveApiUrl = "/guanggao/main/save";
|
||||||
// 删除广告 /guanggao/main/group/del 传参form-data 参数 gg_id
|
|
||||||
export const getGuangGaoMainDelApiUrl = "/guanggao/main/del";
|
export const getGuangGaoMainDelApiUrl = "/guanggao/main/del";
|
||||||
|
|
||||||
|
|
||||||
// 参数模板列表
|
|
||||||
export const getTkdargListUrl = "/site/tkdarg/list";
|
export const getTkdargListUrl = "/site/tkdarg/list";
|
||||||
|
|
||||||
// 模板列表
|
|
||||||
export const getTemplateListUrl = "/site/template/list";
|
export const getTemplateListUrl = "/site/template/list";
|
||||||
// 替换模板分组列表
|
|
||||||
export const getSubjectFomartGroupList = "/site/subject/fomart/group/list";
|
export const getSubjectFomartGroupList = "/site/subject/fomart/group/list";
|
||||||
// 替换模板列表
|
|
||||||
export const getSubjectFomartList = "/site/subject/fomart/list";
|
export const getSubjectFomartList = "/site/subject/fomart/list";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,99 +1,46 @@
|
|||||||
// 后端微服务模块前缀
|
|
||||||
export const PORT1 = "/geeker";
|
export const PORT1 = "/geeker";
|
||||||
export const ADMIN = "/admin";
|
export const ADMIN = "/admin";
|
||||||
/**
|
|
||||||
* @name 服务端口-系统
|
|
||||||
*/
|
|
||||||
export const SYSTEM_PORT = "/admin/system";
|
export const SYSTEM_PORT = "/admin/system";
|
||||||
export const DOMAIN_PORT = "/admin/domain";
|
export const DOMAIN_PORT = "/admin/domain";
|
||||||
export const USER_PORT = SYSTEM_PORT + "/user";
|
export const USER_PORT = SYSTEM_PORT + "/user";
|
||||||
export const ROLE_PORT = SYSTEM_PORT + "/role";
|
|
||||||
export const NODE_PORT = SYSTEM_PORT + "/node";
|
|
||||||
export const TASK_PORT = SYSTEM_PORT + "/task";
|
export const TASK_PORT = SYSTEM_PORT + "/task";
|
||||||
export const MSG_PORT = "/admin/msg/task";
|
export const MSG_PORT = "/admin/msg/task";
|
||||||
export const DOWNLOAD_PORT = "/admin/report/down";
|
export const DOWNLOAD_PORT = "/admin/report/down";
|
||||||
export const CONFIG_PORT = SYSTEM_PORT + "/config";
|
export const CONFIG_PORT = SYSTEM_PORT + "/config";
|
||||||
export const SYS_CONFIG_PORT = SYSTEM_PORT + "/sysconfig";
|
export const SYS_CONFIG_PORT = SYSTEM_PORT + "/sysconfig";
|
||||||
export const RES_SOURCE_PORT = "/admin/resource";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 服务端口-视频
|
|
||||||
*/
|
|
||||||
export const VIDEO_PORT = ADMIN + "/video";
|
export const VIDEO_PORT = ADMIN + "/video";
|
||||||
/**
|
|
||||||
* @name 服务端口-标签
|
|
||||||
*/
|
|
||||||
export const TAG_PORT = ADMIN + "/tag";
|
|
||||||
/**
|
|
||||||
* @name 服务端口-图册
|
|
||||||
*/
|
|
||||||
export const ATLAS_PORT = ADMIN + "/atlas";
|
export const ATLAS_PORT = ADMIN + "/atlas";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 服务端口-小说
|
|
||||||
*/
|
|
||||||
export const NOVEL_PORT = ADMIN + "/novel";
|
export const NOVEL_PORT = ADMIN + "/novel";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 服务端口-漫画
|
|
||||||
*/
|
|
||||||
export const MANGA_PORT = ADMIN + "/manga";
|
export const MANGA_PORT = ADMIN + "/manga";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 服务端口-TAG
|
|
||||||
*/
|
|
||||||
export const TAB_BATCH_PORT = ADMIN + "/tab";
|
export const TAB_BATCH_PORT = ADMIN + "/tab";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 服务端口-APP用户列表
|
|
||||||
*/
|
|
||||||
export const MI_USER_PORT = ADMIN + "/miaouser";
|
export const MI_USER_PORT = ADMIN + "/miaouser";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 服务端口-视频反馈列表
|
|
||||||
*/
|
|
||||||
export const FEEDBACK_PORT = ADMIN + "/feedback";
|
export const FEEDBACK_PORT = ADMIN + "/feedback";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 服务端口-搜索词管理
|
|
||||||
*/
|
|
||||||
export const SEARCH_PORT = ADMIN + "/search";
|
export const SEARCH_PORT = ADMIN + "/search";
|
||||||
/**
|
|
||||||
* @name 服务端口-站点
|
|
||||||
*/
|
|
||||||
export const SITE_PORT = ADMIN + "/site";
|
export const SITE_PORT = ADMIN + "/site";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 服务端口-推广等级
|
|
||||||
*/
|
|
||||||
export const SPREAD_PORT = ADMIN + "/spread";
|
export const SPREAD_PORT = ADMIN + "/spread";
|
||||||
/**
|
|
||||||
* @name 服务端口-分享管理
|
|
||||||
*/
|
|
||||||
export const SHARE_PORT = ADMIN + "/share";
|
export const SHARE_PORT = ADMIN + "/share";
|
||||||
/**
|
|
||||||
* @name 服务端口-邮箱管理
|
|
||||||
*/
|
|
||||||
export const EMAIL_PORT = ADMIN + "/email";
|
export const EMAIL_PORT = ADMIN + "/email";
|
||||||
/**
|
|
||||||
* @name 服务端口-活动管理
|
|
||||||
*/
|
|
||||||
export const ACTIVITY_PORT = ADMIN + "/activity";
|
export const ACTIVITY_PORT = ADMIN + "/activity";
|
||||||
/**
|
|
||||||
* @name 服务端口-缓存管理
|
|
||||||
*/
|
|
||||||
export const CACHE_PORT = SYSTEM_PORT + "/cache";
|
export const CACHE_PORT = SYSTEM_PORT + "/cache";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 服务端口-财务管理
|
|
||||||
*/
|
|
||||||
//金币账户
|
|
||||||
export const FINANCE_PORT = ADMIN + "/finance";
|
export const FINANCE_PORT = ADMIN + "/finance";
|
||||||
export const ACCOUNT_PORT = FINANCE_PORT + "/account";
|
export const ACCOUNT_PORT = FINANCE_PORT + "/account";
|
||||||
//VIP
|
|
||||||
export const RECHARGE_PORT = FINANCE_PORT + "/recharge";
|
export const RECHARGE_PORT = FINANCE_PORT + "/recharge";
|
||||||
export const ORDER_PORT = RECHARGE_PORT + "/order";
|
export const ORDER_PORT = RECHARGE_PORT + "/order";
|
||||||
export const PACKAGE_PORT = RECHARGE_PORT + "/package";
|
export const PACKAGE_PORT = RECHARGE_PORT + "/package";
|
||||||
|
|
||||||
//渠道
|
|
||||||
export const CHANNEL_PORT = ADMIN + "/channel";
|
export const CHANNEL_PORT = ADMIN + "/channel";
|
||||||
|
|||||||
@@ -1,22 +1,18 @@
|
|||||||
// ? 暂未使用,目前使用全局 Loading 来控制重复请求
|
|
||||||
import { CustomAxiosRequestConfig } from "../index";
|
import { CustomAxiosRequestConfig } from "../index";
|
||||||
import qs from "qs";
|
import qs from "qs";
|
||||||
|
|
||||||
// 声明一个 Map 用于存储每个请求的标识 和 取消函数
|
|
||||||
let pendingMap = new Map<string, AbortController>();
|
let pendingMap = new Map<string, AbortController>();
|
||||||
|
|
||||||
// 序列化参数
|
|
||||||
export const getPendingUrl = (config: CustomAxiosRequestConfig) =>
|
export const getPendingUrl = (config: CustomAxiosRequestConfig) =>
|
||||||
[config.method, config.url, qs.stringify(config.data), qs.stringify(config.params)].join("&");
|
[config.method, config.url, qs.stringify(config.data), qs.stringify(config.params)].join("&");
|
||||||
|
|
||||||
export class AxiosCanceler {
|
export class AxiosCanceler {
|
||||||
/**
|
|
||||||
* @description: 添加请求
|
|
||||||
* @param {Object} config
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
addPending(config: CustomAxiosRequestConfig) {
|
addPending(config: CustomAxiosRequestConfig) {
|
||||||
// 在请求开始前,对之前的请求做检查取消操作
|
|
||||||
this.removePending(config);
|
this.removePending(config);
|
||||||
const url = getPendingUrl(config);
|
const url = getPendingUrl(config);
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
@@ -24,20 +20,15 @@ export class AxiosCanceler {
|
|||||||
pendingMap.set(url, controller);
|
pendingMap.set(url, controller);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @description: 移除请求
|
|
||||||
* @param {Object} config
|
|
||||||
*/
|
|
||||||
removePending(config: CustomAxiosRequestConfig) {
|
removePending(config: CustomAxiosRequestConfig) {
|
||||||
const url = getPendingUrl(config);
|
const url = getPendingUrl(config);
|
||||||
// 如果在 pending 中存在当前请求标识,需要取消当前请求
|
|
||||||
const controller = pendingMap.get(url);
|
const controller = pendingMap.get(url);
|
||||||
controller && controller.abort();
|
controller && controller.abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @description: 清空所有pending
|
|
||||||
*/
|
|
||||||
removeAllPending() {
|
removeAllPending() {
|
||||||
pendingMap.forEach(controller => {
|
pendingMap.forEach(controller => {
|
||||||
controller && controller.abort();
|
controller && controller.abort();
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
|
|
||||||
/**
|
|
||||||
* @description: 校验网络请求状态码
|
|
||||||
* @param {Number} status
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
export const checkStatus = (status: number) => {
|
export const checkStatus = (status: number) => {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 400:
|
case 400:
|
||||||
|
|||||||
@@ -13,29 +13,25 @@ export interface CustomAxiosRequestConfig extends InternalAxiosRequestConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
// 默认地址请求地址,可在 .env.** 文件中修改
|
|
||||||
baseURL: import.meta.env.VITE_API_URL as string,
|
baseURL: import.meta.env.VITE_API_URL as string,
|
||||||
// 设置超时时间
|
|
||||||
timeout: ResultEnum.TIMEOUT as number
|
timeout: ResultEnum.TIMEOUT as number
|
||||||
// 跨域时候允许携带凭证
|
|
||||||
// withCredentials: true
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class RequestHttp {
|
class RequestHttp {
|
||||||
service: AxiosInstance;
|
service: AxiosInstance;
|
||||||
public constructor(config: AxiosRequestConfig) {
|
public constructor(config: AxiosRequestConfig) {
|
||||||
// instantiation
|
|
||||||
this.service = axios.create(config);
|
this.service = axios.create(config);
|
||||||
|
|
||||||
/**
|
|
||||||
* @description 请求拦截器
|
|
||||||
* 客户端发送请求 -> [请求拦截器] -> 服务器
|
|
||||||
* token校验(JWT) : 接受服务器返回的 token,存储到 vuex/pinia/本地储存当中
|
|
||||||
*/
|
|
||||||
this.service.interceptors.request.use(
|
this.service.interceptors.request.use(
|
||||||
(config: CustomAxiosRequestConfig) => {
|
(config: CustomAxiosRequestConfig) => {
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
// 当前请求不需要显示 loading,在 api 服务中通过指定的第三个参数: { noLoading: true } 来控制
|
|
||||||
|
|
||||||
config.noLoading || showFullScreenLoading();
|
config.noLoading || showFullScreenLoading();
|
||||||
if (config.headers && typeof config.headers.set === "function") {
|
if (config.headers && typeof config.headers.set === "function") {
|
||||||
@@ -48,48 +44,44 @@ class RequestHttp {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
|
||||||
* @description 响应拦截器
|
|
||||||
* 服务器换返回信息 -> [拦截统一处理] -> 客户端JS获取到信息
|
|
||||||
*/
|
|
||||||
this.service.interceptors.response.use(
|
this.service.interceptors.response.use(
|
||||||
(response: AxiosResponse) => {
|
(response: AxiosResponse) => {
|
||||||
const { data } = response;
|
const { data } = response;
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
tryHideFullScreenLoading();
|
tryHideFullScreenLoading();
|
||||||
// 登陆失效
|
const responseMessage = data.message ?? data.msg ?? "请求失败!";
|
||||||
|
|
||||||
if (data.code == ResultEnum.OVERDUE) {
|
if (data.code == ResultEnum.OVERDUE) {
|
||||||
userStore.setToken("");
|
userStore.setToken("");
|
||||||
router.replace(LOGIN_URL);
|
router.replace(LOGIN_URL);
|
||||||
ElMessage.error(data.msg);
|
ElMessage.error(responseMessage);
|
||||||
return Promise.reject(data);
|
return Promise.reject(data);
|
||||||
}
|
}
|
||||||
// 全局错误信息拦截(防止下载文件的时候返回数据流,没有 code 直接报错)
|
|
||||||
if (data.code && data.code !== ResultEnum.SUCCESS) {
|
if (data.code && data.code !== ResultEnum.SUCCESS) {
|
||||||
ElMessage.error(data.message);
|
ElMessage.error(responseMessage);
|
||||||
return Promise.reject(data);
|
return Promise.reject(data);
|
||||||
}
|
}
|
||||||
// 成功请求(在页面上除非特殊情况,否则不用处理失败逻辑)
|
|
||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
async (error: AxiosError) => {
|
async (error: AxiosError) => {
|
||||||
const { response } = error;
|
const { response } = error;
|
||||||
tryHideFullScreenLoading();
|
tryHideFullScreenLoading();
|
||||||
// 请求超时 && 网络错误单独判断,没有 response
|
|
||||||
if (error.message.indexOf("timeout") !== -1) ElMessage.error("请求超时!请您稍后重试");
|
if (error.message.indexOf("timeout") !== -1) ElMessage.error("请求超时!请您稍后重试");
|
||||||
if (error.message.indexOf("Network Error") !== -1) ElMessage.error("网络错误!请您稍后重试");
|
if (error.message.indexOf("Network Error") !== -1) ElMessage.error("网络错误!请您稍后重试");
|
||||||
// 根据服务器响应的错误状态码,做不同的处理
|
|
||||||
if (response) checkStatus(response.status);
|
if (response) checkStatus(response.status);
|
||||||
// 服务器结果都没有返回(可能服务器错误可能客户端断网),断网处理:可以跳转到断网页面
|
|
||||||
if (!window.navigator.onLine) router.replace("/500");
|
if (!window.navigator.onLine) router.replace("/500");
|
||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @description 常用请求方法封装
|
|
||||||
*/
|
|
||||||
get<T>(url: string, params?: object, _object = {}): Promise<ResultData<T>> {
|
get<T>(url: string, params?: object, _object = {}): Promise<ResultData<T>> {
|
||||||
return this.service.get(url, { params, ..._object });
|
return this.service.get(url, { params, ..._object });
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,14 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace DriveList {
|
export namespace DriveList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
a_id?: number;
|
a_id?: number;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
a_id?: string;
|
a_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
a_id: number;
|
a_id: number;
|
||||||
a_status: any;
|
a_status: any;
|
||||||
@@ -24,7 +20,5 @@ export namespace DriveList {
|
|||||||
description: any;
|
description: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace ManageList {
|
export namespace ManageList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
a_id?: number;
|
a_id?: number;
|
||||||
a_code: any;
|
a_code: any;
|
||||||
@@ -12,11 +10,9 @@ export namespace ManageList {
|
|||||||
a_config: any;
|
a_config: any;
|
||||||
a_status: any;
|
a_status: any;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
a_id?: string;
|
a_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
a_id: number;
|
a_id: number;
|
||||||
a_code: any;
|
a_code: any;
|
||||||
@@ -27,7 +23,5 @@ export namespace ManageList {
|
|||||||
a_status: any;
|
a_status: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,15 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace ByList {
|
export namespace ByList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
byrz_id?: number;
|
byrz_id?: number;
|
||||||
byrz_mingzi: string;
|
byrz_mingzi: string;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
byrz_id?: string;
|
byrz_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
byrz_id?: number;
|
byrz_id?: number;
|
||||||
byrz_mingzi: string;
|
byrz_mingzi: string;
|
||||||
@@ -35,6 +31,5 @@ export namespace ByList {
|
|||||||
name: any;
|
name: any;
|
||||||
url: any;
|
url: any;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +1,17 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace ConfigList {
|
export namespace ConfigList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
ggpz_id?: number;
|
ggpz_id?: number;
|
||||||
ggpz_code: string;
|
ggpz_code: string;
|
||||||
ggpz_val: string;
|
ggpz_val: string;
|
||||||
ggpz_description: string;
|
ggpz_description: string;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
ggpz_id?: string;
|
ggpz_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
ggpz_id?: number;
|
ggpz_id?: number;
|
||||||
ggpz_code: string;
|
ggpz_code: string;
|
||||||
@@ -23,6 +19,5 @@ export namespace ConfigList {
|
|||||||
ggpz_description: string;
|
ggpz_description: string;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,26 +1,21 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace GroupList {
|
export namespace GroupList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
ggfz_id?: number;
|
ggfz_id?: number;
|
||||||
ggfz_name: string;
|
ggfz_name: string;
|
||||||
ggfz_code: string;
|
ggfz_code: string;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
ggfz_id?: string;
|
ggfz_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
ggfz_id?: number;
|
ggfz_id?: number;
|
||||||
ggfz_name: string;
|
ggfz_name: string;
|
||||||
ggfz_code: any;
|
ggfz_code: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,15 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace LfList {
|
export namespace LfList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
lf_id?: number;
|
lf_id?: number;
|
||||||
lf_mingzi: string;
|
lf_mingzi: string;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
lf_id?: string;
|
lf_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
lf_id?: number;
|
lf_id?: number;
|
||||||
lf_mingzi: string;
|
lf_mingzi: string;
|
||||||
@@ -38,6 +34,5 @@ export namespace LfList {
|
|||||||
name: any;
|
name: any;
|
||||||
url: any;
|
url: any;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,34 +1,64 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
|
|
||||||
export namespace adList {
|
export namespace adList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
|
ggfz_id?: any;
|
||||||
}
|
}
|
||||||
// 保存接口
|
export interface saveParams extends Partial<List> {}
|
||||||
export interface saveParams {
|
|
||||||
gg_id?: number;
|
|
||||||
ggfz_id: any;
|
|
||||||
gg_lei_xing: any;
|
|
||||||
gg_tu_pian: any;
|
|
||||||
gg_wen_zi: any;
|
|
||||||
gg_tiao_zhuan_di_zhi: any;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
gg_id?: string;
|
gg_id?: string;
|
||||||
|
a_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
export interface batchParams {
|
||||||
export interface ResList {
|
a_id?: string;
|
||||||
|
cover?: string;
|
||||||
|
a_title?: string;
|
||||||
|
target?: string;
|
||||||
|
link_type?: string;
|
||||||
|
}
|
||||||
|
export interface cloneParams {
|
||||||
|
source_si_id?: string;
|
||||||
|
target_si_id?: string;
|
||||||
|
}
|
||||||
|
export interface batchReplaceParams {
|
||||||
|
si_id?: string;
|
||||||
|
column?: string;
|
||||||
|
to?: string;
|
||||||
|
from?: string;
|
||||||
|
}
|
||||||
|
export interface List {
|
||||||
gg_id?: number;
|
gg_id?: number;
|
||||||
ggfz_id: any;
|
ggfz_id?: any;
|
||||||
gg_lei_xing: any;
|
ggfz_name?: any;
|
||||||
gg_tu_pian: any;
|
gg_lei_xing?: any;
|
||||||
gg_wen_zi: any;
|
gg_tu_pian?: any;
|
||||||
gg_tiao_zhuan_di_zhi: any;
|
gg_wen_zi?: any;
|
||||||
created_at: string;
|
gg_tiao_zhuan_di_zhi?: any;
|
||||||
|
gg_sort?: any;
|
||||||
|
gg_status?: any;
|
||||||
|
created_at?: string;
|
||||||
|
updated_at?: string;
|
||||||
|
a_id?: any;
|
||||||
|
ag_id?: string;
|
||||||
|
at_content?: any;
|
||||||
|
a_title?: string;
|
||||||
|
a_content?: any;
|
||||||
|
a_status?: any;
|
||||||
|
target?: any;
|
||||||
|
link_type?: any;
|
||||||
|
cover?: any;
|
||||||
|
a_type?: any;
|
||||||
|
at_id?: any;
|
||||||
|
si_id?: any;
|
||||||
|
column?: any;
|
||||||
|
to?: any;
|
||||||
|
from?: any;
|
||||||
|
source_si_id?: any;
|
||||||
|
target_si_id?: any;
|
||||||
|
a_description?: any;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
export interface ResList extends List {}
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
export namespace adList22 {
|
export namespace adList22 {
|
||||||
@@ -54,7 +84,6 @@ export namespace adList22 {
|
|||||||
target_si_id?: any;
|
target_si_id?: any;
|
||||||
a_description: any;
|
a_description: any;
|
||||||
}
|
}
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
page: number;
|
page: number;
|
||||||
limit: number;
|
limit: number;
|
||||||
@@ -82,21 +111,3 @@ export namespace adList22 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export namespace adTemplate {
|
|
||||||
export interface List {
|
|
||||||
at_id: number; // 广告模板 id
|
|
||||||
at_coce: string; // 广告模板分组编码
|
|
||||||
at_name: string; // 广告模板名称
|
|
||||||
at_description: string; // 广告模板描述
|
|
||||||
at_content: any; // 广告模板内容。如:风格等信息
|
|
||||||
created_at: string; // 添加时间
|
|
||||||
updated_at: string; // 更新时间
|
|
||||||
a_type: any;
|
|
||||||
}
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
page: number;
|
|
||||||
limit: number;
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,19 +1,15 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace YxList {
|
export namespace YxList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
yx_id?: number;
|
yx_id?: number;
|
||||||
yx_ming_zi: string;
|
yx_ming_zi: string;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
yx_id?: string;
|
yx_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
yx_id?: number;
|
yx_id?: number;
|
||||||
yx_ming_zi: any;
|
yx_ming_zi: any;
|
||||||
@@ -22,6 +18,5 @@ export namespace YxList {
|
|||||||
yx_tu_pian_url: any;
|
yx_tu_pian_url: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,14 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace ZbList {
|
export namespace ZbList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
zb_id?: number;
|
zb_id?: number;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
zb_id?: string;
|
zb_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
zb_id?: number;
|
zb_id?: number;
|
||||||
zb_ming_zi: any;
|
zb_ming_zi: any;
|
||||||
@@ -21,6 +17,5 @@ export namespace ZbList {
|
|||||||
zb_feng_mian: any;
|
zb_feng_mian: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,15 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace ZyList {
|
export namespace ZyList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
gfzy_id?: number;
|
gfzy_id?: number;
|
||||||
gfzy_mingzi: string;
|
gfzy_mingzi: string;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
gfzy_id?: string;
|
gfzy_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
gfzy_id?: number;
|
gfzy_id?: number;
|
||||||
gfzy_mingzi: string;
|
gfzy_mingzi: string;
|
||||||
@@ -40,6 +36,5 @@ export namespace ZyList {
|
|||||||
name: any;
|
name: any;
|
||||||
url: any;
|
url: any;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace AtlasList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
at_id?: number;
|
|
||||||
at_name: string;
|
|
||||||
at_status: number;
|
|
||||||
at_wonderful_site_id: any;
|
|
||||||
at_recommend_site_id: any;
|
|
||||||
at_cover: string;
|
|
||||||
at_tag: any;
|
|
||||||
at_source: any;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
at_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
at_id: number;
|
|
||||||
at_name: string;
|
|
||||||
at_status: any;
|
|
||||||
at_wonderful_site_id: any;
|
|
||||||
at_recommend_site_id: any;
|
|
||||||
at_wonderful_site_id_detail: any;
|
|
||||||
at_recommend_site_id_detail: any;
|
|
||||||
at_cover: any;
|
|
||||||
at_cover_code: any;
|
|
||||||
at_cover_edit: any;
|
|
||||||
at_cover_detail: any;
|
|
||||||
searchText: any;
|
|
||||||
at_tag: any;
|
|
||||||
at_tag_detail: any;
|
|
||||||
t_name: any;
|
|
||||||
at_source: any;
|
|
||||||
at_source_detail: any;
|
|
||||||
fm_id: any;
|
|
||||||
name: any;
|
|
||||||
created_at: string;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace ChannelStatisticsList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
csc_id: number;
|
|
||||||
csc_name: string;
|
|
||||||
csc_code: string;
|
|
||||||
csc_statistical_code: string;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
csc_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
csc_id: number;
|
|
||||||
csc_name: string;
|
|
||||||
csc_code: string;
|
|
||||||
csc_statistical_code: string;
|
|
||||||
created_at: string;
|
|
||||||
updated_at: string;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,20 +1,16 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace ContentList {
|
export namespace ContentList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
ee_code?: string;
|
ee_code?: string;
|
||||||
ee_id?: string;
|
ee_id?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
ec_id?: number;
|
ec_id?: number;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
ec_id?: string;
|
ec_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
ec_id: number;
|
ec_id: number;
|
||||||
ec_from: any;
|
ec_from: any;
|
||||||
@@ -27,7 +23,5 @@ export namespace ContentList {
|
|||||||
ee_id: any;
|
ee_id: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,14 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace EventList {
|
export namespace EventList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
ee_id?: number;
|
ee_id?: number;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
ee_id?: string;
|
ee_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
ee_id: number;
|
ee_id: number;
|
||||||
ee_code: any;
|
ee_code: any;
|
||||||
@@ -21,7 +17,5 @@ export namespace EventList {
|
|||||||
ee_describe: string;
|
ee_describe: string;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,14 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace AccountList {
|
export namespace AccountList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
mu_id?: number;
|
mu_id?: number;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
mu_id?: string;
|
mu_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
mu_id: string;
|
mu_id: string;
|
||||||
uf_balance: any;
|
uf_balance: any;
|
||||||
@@ -23,6 +19,5 @@ export namespace AccountList {
|
|||||||
expire_vip_day: any;
|
expire_vip_day: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,15 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace TransactionList {
|
export namespace TransactionList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
t_type?: any;
|
t_type?: any;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
ft_id?: number;
|
ft_id?: number;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
ft_id?: string;
|
ft_id?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
ft_id: number;
|
ft_id: number;
|
||||||
mu_id: number;
|
mu_id: number;
|
||||||
@@ -30,6 +25,5 @@ export namespace TransactionList {
|
|||||||
mu_email: any;
|
mu_email: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +1,16 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace FeedbackList {
|
export namespace FeedbackList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
t_type?: any;
|
t_type?: any;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
rf_id?: number;
|
rf_id?: number;
|
||||||
rf_state: any;
|
rf_state: any;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
rf_id?: string;
|
rf_id?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
rf_id: number;
|
rf_id: number;
|
||||||
vo_id: number;
|
vo_id: number;
|
||||||
@@ -30,7 +25,5 @@ export namespace FeedbackList {
|
|||||||
rf_contact: any;
|
rf_contact: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +1,17 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace OrderList {
|
export namespace OrderList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
vo_status?: any;
|
vo_status?: any;
|
||||||
created_at_start?: any;
|
created_at_start?: any;
|
||||||
created_at_end?: any;
|
created_at_end?: any;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
vo_id?: number;
|
vo_id?: number;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
vo_id?: string;
|
vo_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
vo_id: number;
|
vo_id: number;
|
||||||
mu_id: string;
|
mu_id: string;
|
||||||
@@ -33,6 +29,5 @@ export namespace OrderList {
|
|||||||
mu_email: number;
|
mu_email: number;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace PackageList {
|
export namespace PackageList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
t_type?: any;
|
t_type?: any;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
vp_id?: number;
|
vp_id?: number;
|
||||||
vp_name: string;
|
vp_name: string;
|
||||||
@@ -17,12 +15,9 @@ export namespace PackageList {
|
|||||||
vp_icon: string;
|
vp_icon: string;
|
||||||
package_sort: number;
|
package_sort: number;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
vp_id?: string;
|
vp_id?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
vp_id: number;
|
vp_id: number;
|
||||||
vp_name: string;
|
vp_name: string;
|
||||||
@@ -37,6 +32,5 @@ export namespace PackageList {
|
|||||||
vp_sort: number;
|
vp_sort: number;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,11 @@
|
|||||||
// 请求响应参数(不包含data)
|
|
||||||
export interface Result {
|
export interface Result {
|
||||||
code: string;
|
code: string;
|
||||||
message: string;
|
message?: string;
|
||||||
|
msg?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 请求响应参数(包含data)
|
|
||||||
export interface ResultData<T = any> extends Result {
|
export interface ResultData<T = any> extends Result {
|
||||||
data: T;
|
data: T;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 分页响应参数
|
|
||||||
export interface ResPage<T> {
|
export interface ResPage<T> {
|
||||||
item: T[];
|
item: T[];
|
||||||
items: T[];
|
items: T[];
|
||||||
@@ -18,42 +14,30 @@ export interface ResPage<T> {
|
|||||||
limit: number;
|
limit: number;
|
||||||
total_pages: number;
|
total_pages: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 分页请求参数
|
|
||||||
export interface ReqPage {
|
export interface ReqPage {
|
||||||
page: number;
|
page: number;
|
||||||
limit: number;
|
limit: number;
|
||||||
}
|
}
|
||||||
// 分页请求参数
|
|
||||||
export interface type {
|
export interface type {
|
||||||
type: any;
|
type: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 文件上传模块
|
|
||||||
export namespace Upload {
|
export namespace Upload {
|
||||||
export interface ResFileUrl {
|
export interface ResFileUrl {
|
||||||
fileUrl: string;
|
fileUrl: string;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 文件下载模块
|
|
||||||
export namespace Download {
|
export namespace Download {
|
||||||
export interface ResFileUrl {
|
export interface ResFileUrl {
|
||||||
type: number;
|
type: number;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 执行任务
|
|
||||||
export namespace Task {
|
export namespace Task {
|
||||||
export interface ResFileUrl {
|
export interface ResFileUrl {
|
||||||
msg_id: any;
|
msg_id: any;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 登录模块
|
|
||||||
export namespace Login {
|
export namespace Login {
|
||||||
export interface ReqLoginForm {
|
export interface ReqLoginForm {
|
||||||
au_name: string;
|
au_name: string;
|
||||||
@@ -67,48 +51,3 @@ export namespace Login {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export namespace LogsList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
pr_name?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
ol_id: number; // 否 ID
|
|
||||||
au_id: number; // 是 用户ID
|
|
||||||
au_name: string; // 是 用户名
|
|
||||||
ol_description: string; // 是 操作日志
|
|
||||||
c_id: number; // 是 公司id
|
|
||||||
created_at: string; // 是 添加时间
|
|
||||||
updated_at: string; // 否 更新时间
|
|
||||||
deleted_at: string; // 否 删除时间
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace NoticeSetting {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
ntt_code: string; // 是 通知类型编码
|
|
||||||
nt_status: number; // 是 是否启用,0=>否,1=>是
|
|
||||||
ta_id: string; // 是 使用的机器人ID
|
|
||||||
nt_tagged_users: string; // 是 需要@的人的名字
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
ntt_id: number; // 否 通知类型模板ID
|
|
||||||
ntt_name: string; // 是 通知类型的名称
|
|
||||||
ntt_code: string; // 是 通知类型编码
|
|
||||||
nt_status: number; // 是 是否启用,0=>否,1=>是
|
|
||||||
ta_id: string; // 否 使用的机器人ID
|
|
||||||
telegram_account: any; // 是 使用的机器人详情
|
|
||||||
nt_tagged_users: string; // 是 需要@的人的名字
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,43 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace ChapterList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
mhzj_id?: number;
|
|
||||||
mhxq_id: number;
|
|
||||||
mhzj_pai_xu: any;
|
|
||||||
mhzj_ming_zi: any;
|
|
||||||
mhzj_nei_rong: any;
|
|
||||||
mhzj_source_id: any;
|
|
||||||
mhzj_source_code: any;
|
|
||||||
}
|
|
||||||
export interface batchParams {
|
|
||||||
mhxq_id: number;
|
|
||||||
mhzj_id?: any;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
mhzj_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
mhzj_id?: any;
|
|
||||||
mhxq_id: number;
|
|
||||||
mhzj_pai_xu: any;
|
|
||||||
mhzj_ming_zi: any;
|
|
||||||
mhzj_nei_rong: any;
|
|
||||||
mhzj_nei_rong_url: any;
|
|
||||||
mhzj_source_id: any;
|
|
||||||
mhzj_source_code: any;
|
|
||||||
cover_code: any;
|
|
||||||
created_at: string;
|
|
||||||
name: any;
|
|
||||||
url: any;
|
|
||||||
encrypted: any;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace fenLeiList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
mhfl_id?: number;
|
|
||||||
mhfl_ming_zi: string;
|
|
||||||
mhfl_source_code: any;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
mhfl_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
mhfl_id: any;
|
|
||||||
mhfl_ming_zi: string;
|
|
||||||
mhfl_source_code: any;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace MangaList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
mhxq_id?: number;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
mhxq_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
mhxq_id: number;
|
|
||||||
mhxq_ming_zi: any;
|
|
||||||
mhxq_cover: any;
|
|
||||||
mhfl_id: any;
|
|
||||||
mhxq_zuo_zhe: any;
|
|
||||||
mhxq_zhuang_tai: any;
|
|
||||||
mhxq_geng_xin_shi_jian: any;
|
|
||||||
mhxq_biao_qian: any;
|
|
||||||
mhxq_jian_jie: any;
|
|
||||||
mhxq_source_id: any;
|
|
||||||
mhxq_source_code: any;
|
|
||||||
created_at: string;
|
|
||||||
name: any;
|
|
||||||
url: any;
|
|
||||||
https_cover_url: any;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace MiUserList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
mu_status?: any;
|
|
||||||
mu_vip?: any;
|
|
||||||
mu_start_time?: any;
|
|
||||||
mu_end_time?: any;
|
|
||||||
si_id?: any;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
mu_id?: number;
|
|
||||||
mu_name: string;
|
|
||||||
mu_nickname: string;
|
|
||||||
mu_status: any;
|
|
||||||
mu_email: string;
|
|
||||||
mu_pwd: string;
|
|
||||||
mu_referrer_id: any;
|
|
||||||
mu_vip_expired: any;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
mu_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
mu_id: number;
|
|
||||||
si_id: any;
|
|
||||||
si_name: any;
|
|
||||||
mu_name: string;
|
|
||||||
mu_nickname: string;
|
|
||||||
mu_status: any;
|
|
||||||
mu_email: string;
|
|
||||||
mu_pwd: string;
|
|
||||||
mu_referrer_id: any;
|
|
||||||
mu_vip: any;
|
|
||||||
mu_email_verified: any;
|
|
||||||
mu_channel_code: any;
|
|
||||||
mu_channel_domain: any;
|
|
||||||
mu_avatar: any;
|
|
||||||
mu_vip_expired: any;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace ChapterList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
xszj_id?: number;
|
|
||||||
xsxq_id: any;
|
|
||||||
xszj_nei_rong: any;
|
|
||||||
xszj_ming_zi: any;
|
|
||||||
xszj_pai_xu: any;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
xszj_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
xszj_id?: number;
|
|
||||||
xsxq_id: any;
|
|
||||||
xszj_nei_rong: any;
|
|
||||||
xszj_ming_zi: any;
|
|
||||||
xszj_pai_xu: any;
|
|
||||||
created_at: string;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,26 +1,21 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace fenLeiList {
|
export namespace fenLeiList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
xsfl_id?: number;
|
xsfl_id?: number;
|
||||||
xsfl_name: string;
|
xsfl_name: string;
|
||||||
xsfl_source_code: string;
|
xsfl_source_code: string;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
xsfl_id?: string;
|
xsfl_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
xsfl_id: any;
|
xsfl_id: any;
|
||||||
xsfl_name: any;
|
xsfl_name: any;
|
||||||
items: any;
|
items: any;
|
||||||
xsfl_source_code: string;
|
xsfl_source_code: string;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace NovelList {
|
export namespace NovelList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
t_type?: number;
|
t_type?: number;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
n_id?: number;
|
n_id?: number;
|
||||||
n_name: string;
|
n_name: string;
|
||||||
@@ -18,18 +16,31 @@ export namespace NovelList {
|
|||||||
n_type: any;
|
n_type: any;
|
||||||
n_last_update: string;
|
n_last_update: string;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
n_id?: string;
|
n_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
xsxq_tag: any;
|
xsxq_tag: any;
|
||||||
xsxq_id: any;
|
xsxq_id: any;
|
||||||
items: any;
|
items: any;
|
||||||
https_cover_url: any;
|
https_cover_url: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
|
searchText?: string;
|
||||||
|
n_id?: any;
|
||||||
|
n_name?: any;
|
||||||
|
n_author?: any;
|
||||||
|
n_cover?: any;
|
||||||
|
n_cover_code?: any;
|
||||||
|
n_cover_detail?: any;
|
||||||
|
n_cover_path?: any;
|
||||||
|
n_tags?: any;
|
||||||
|
n_source_id?: any;
|
||||||
|
n_at_status?: any;
|
||||||
|
n_slide_status?: any;
|
||||||
|
n_type?: any;
|
||||||
|
n_last_update?: any;
|
||||||
|
n_level?: any;
|
||||||
|
keywords?: any;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace SearchGroupList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
sg_id?: number;
|
|
||||||
sg_name: string;
|
|
||||||
sg_order: number;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
sg_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
sg_id: number;
|
|
||||||
sg_name: string;
|
|
||||||
sg_order: number;
|
|
||||||
created_at: string;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace SearchKeyList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
sw_id?: number;
|
|
||||||
sw_title: string;
|
|
||||||
sw_status: string;
|
|
||||||
sw_html_path: string;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
sw_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
sw_id?: number;
|
|
||||||
sw_title: any;
|
|
||||||
sw_status: any;
|
|
||||||
sw_html_path: any;
|
|
||||||
created_at: string;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,25 +1,19 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace LinkList {
|
export namespace LinkList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
sl_id?: number;
|
sl_id?: number;
|
||||||
sl_link: any;
|
sl_link: any;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
sl_id?: string;
|
sl_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
sl_id: number;
|
sl_id: number;
|
||||||
sl_link: any;
|
sl_link: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,25 +1,19 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace SpeechList {
|
export namespace SpeechList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
ss_id?: number;
|
ss_id?: number;
|
||||||
ss_speech: any;
|
ss_speech: any;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
ss_id?: string;
|
ss_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
ss_id: number;
|
ss_id: number;
|
||||||
ss_speech: any;
|
ss_speech: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,28 +1,21 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace GroupList {
|
export namespace GroupList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
sfg_id?: number;
|
sfg_id?: number;
|
||||||
sfg_name: string;
|
sfg_name: string;
|
||||||
sfg_description: string;
|
sfg_description: string;
|
||||||
|
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
sfg_id?: string;
|
sfg_id?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
sfg_id?: number;
|
sfg_id?: number;
|
||||||
sfg_name: string;
|
sfg_name: string;
|
||||||
sfg_description: string;
|
sfg_description: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,28 +1,21 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace SubjectFomartList {
|
export namespace SubjectFomartList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
|
sfg_id?: number | string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
sf_id?: number;
|
sf_id?: number | string;
|
||||||
sf_name: string;
|
sf_val: string;
|
||||||
sf_description: string;
|
sfg_id: number | string;
|
||||||
|
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
sf_id?: string;
|
sf_id?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
sf_id?: number;
|
sf_id: number;
|
||||||
sf_name: string;
|
sf_val: string;
|
||||||
sf_description: string;
|
sfg_id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
12
src/api/interface/site/tkdarg.ts
Normal file
12
src/api/interface/site/tkdarg.ts
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import { ReqPage } from "@/api/interface/index";
|
||||||
|
|
||||||
|
export namespace TkdArgList {
|
||||||
|
export interface ReqParams extends ReqPage {}
|
||||||
|
|
||||||
|
export type ResMap = Record<string, string>;
|
||||||
|
|
||||||
|
export interface ResList {
|
||||||
|
tkdarg_code: string;
|
||||||
|
tkdarg_description: string;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,27 +1,21 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace SpreadList {
|
export namespace SpreadList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
rl_id?: number;
|
rl_id?: number;
|
||||||
rl_level: any;
|
rl_level: any;
|
||||||
rl_commission_percentage: any;
|
rl_commission_percentage: any;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
rl_id?: string;
|
rl_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
rl_id: number;
|
rl_id: number;
|
||||||
rl_level: any;
|
rl_level: any;
|
||||||
rl_commission_percentage: any;
|
rl_commission_percentage: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +1,17 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace ReferralList {
|
export namespace ReferralList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
re_id?: string;
|
re_id?: string;
|
||||||
re_level?: string;
|
re_level?: string;
|
||||||
have_referral_people?: string;
|
have_referral_people?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
mu_id?: number;
|
mu_id?: number;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
mu_id?: string;
|
mu_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
mu_id: number;
|
mu_id: number;
|
||||||
mu_username: any;
|
mu_username: any;
|
||||||
@@ -27,7 +23,5 @@ export namespace ReferralList {
|
|||||||
rl_commission_percentage: any;
|
rl_commission_percentage: any;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ export namespace adGroup {
|
|||||||
ag_name: any;
|
ag_name: any;
|
||||||
ag_description: any;
|
ag_description: any;
|
||||||
}
|
}
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
page: number;
|
page: number;
|
||||||
limit: number;
|
limit: number;
|
||||||
@@ -46,7 +45,6 @@ export namespace adList {
|
|||||||
target_si_id?: any;
|
target_si_id?: any;
|
||||||
a_description: any;
|
a_description: any;
|
||||||
}
|
}
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
page: number;
|
page: number;
|
||||||
limit: number;
|
limit: number;
|
||||||
@@ -85,7 +83,6 @@ export namespace adTemplate {
|
|||||||
updated_at: string; // 更新时间
|
updated_at: string; // 更新时间
|
||||||
a_type: any;
|
a_type: any;
|
||||||
}
|
}
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
page: number;
|
page: number;
|
||||||
limit: number;
|
limit: number;
|
||||||
|
|||||||
@@ -1,32 +1,25 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace adminUserList {
|
export namespace adminUserList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
au_name: number; // Y 用户名
|
au_name: string; // Y 用户名
|
||||||
ar_id: number; // Y 角色ID
|
au_status: number | string; // Y 0=启用,1=禁用
|
||||||
au_id?: number; // N 用户id[提交修改,不提交新增]
|
au_id?: number; // N 用户id[提交修改,不提交新增]
|
||||||
au_pwd: string; // N 用户密码
|
au_pwd?: string; // N 用户密码
|
||||||
c_id: number; // N 公司id[超级管理员/总公司,设置用户,必须传送c_id也就是公司]
|
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
au_id?: string;
|
au_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
au_id: number; // Y 用户id
|
au_id: number; // Y 用户id
|
||||||
au_name: string; // Y 用户名
|
au_name: string; // Y 用户名
|
||||||
ar_id: number; // Y 角色ID
|
au_status: number; // Y 0=启用,1=禁用
|
||||||
c_id: number; // Y 公司ID
|
created_at: string; // Y 添加时间
|
||||||
created_at: string; // Y 添加时间
|
updated_at: string | null; // Y 更新时间
|
||||||
updated_at: string; // Y 更新时间
|
deleted_at: string | null;
|
||||||
au_pwd: string; //
|
au_pwd: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace BotSetting {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
pr_name?: string;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
ta_id?: number; // 否 ID ,有则修改,无则新增
|
|
||||||
ta_name: string; // 是 机器人名字
|
|
||||||
ta_token: string; // 是 机器人TOKEN
|
|
||||||
ta_chat_id: string; // 是 机器人群ID
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
ta_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
ta_id: number; // 否 ID
|
|
||||||
ta_name: string; // 是 机器人名字
|
|
||||||
ta_token: string; // 是 机器人TOKEN
|
|
||||||
ta_chat_id: string; // 是 机器人群ID
|
|
||||||
c_id: number; // 是 公司id
|
|
||||||
created_at: string; // 是 添加时间
|
|
||||||
updated_at: string; // 否 更新时间
|
|
||||||
deleted_at: string; // 否 删除时间
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace EsList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
t_type?: any;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
index_name: any;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
index: any;
|
|
||||||
name: any;
|
|
||||||
index_name: any;
|
|
||||||
created_at: string;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace ManageList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
key: any;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
key?: any;
|
|
||||||
cache_tag?: any;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
key: any;
|
|
||||||
suffix: any;
|
|
||||||
prefix: any;
|
|
||||||
cache_tag: any;
|
|
||||||
value: any;
|
|
||||||
name: any;
|
|
||||||
cache_tag_name: any;
|
|
||||||
item: any;
|
|
||||||
p_tag: any;
|
|
||||||
p_id: any;
|
|
||||||
children: any;
|
|
||||||
length: any;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace Company {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
c_id?: number;
|
|
||||||
c_superpower: number;
|
|
||||||
c_code: string;
|
|
||||||
c_name: string;
|
|
||||||
c_sign_key: string;
|
|
||||||
c_notify_url: string;
|
|
||||||
c_withdrawal_rate?: number; //int 是 提现费率
|
|
||||||
c_min_withdrawal_amount?: number; //int 是 起提金额
|
|
||||||
c_free_withdrawal_amount?: number; //int 是 免手续费提现金额
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
c_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
c_id: number; // Y id
|
|
||||||
c_superpower: number; // Y 是否拥有所有数据权限:0=否,1=是
|
|
||||||
c_code: string; // Y 公司编码
|
|
||||||
c_name: string; // Y 公司名称
|
|
||||||
c_init_user: string; // Y 创建时间
|
|
||||||
c_init_pwd: string; // Y 更新时间
|
|
||||||
created_at: string; // Y
|
|
||||||
updated_at: string; // Y
|
|
||||||
c_sign_key?: string; // Y
|
|
||||||
c_notify_url?: string; // Y
|
|
||||||
c_withdrawal_rate?: number; //int 是 提现费率
|
|
||||||
c_min_withdrawal_amount?: number; //int 是 起提金额
|
|
||||||
c_free_withdrawal_amount?: number; //int 是 免手续费提现金额
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,27 +1,28 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace ConfigList {
|
export namespace ConfigList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
sc_id?: number;
|
sc_id?: number;
|
||||||
sc_code: string;
|
sc_code: string;
|
||||||
sc_val: string;
|
sc_val: string;
|
||||||
sc_description: string;
|
sc_description: string;
|
||||||
}
|
}
|
||||||
// 删除接口
|
export interface resetSeoAiRuleParams {
|
||||||
|
sc_code?: string;
|
||||||
|
}
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
sc_id: string;
|
sc_id: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
sc_id: number;
|
sc_id: number;
|
||||||
sc_code: string;
|
sc_code: string;
|
||||||
sc_val: string;
|
sc_val: string;
|
||||||
sc_description: string;
|
sc_description: string;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
export interface SeoAiRuleCard extends ResList {
|
||||||
|
note?: Partial<ResList> | null;
|
||||||
|
}
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
// import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
import { ReqPage } from "@/api/interface/index";
|
|
||||||
|
|
||||||
export namespace Endpoint {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
export interface saveParams {
|
|
||||||
zydd_id?: number;
|
|
||||||
zydd_domain: any;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface List {
|
|
||||||
zydd_id: number;
|
|
||||||
zydd_domain: any;
|
|
||||||
zydd_ming_zi: any;
|
|
||||||
zydd_code: any;
|
|
||||||
created_at: string;
|
|
||||||
}
|
|
||||||
export interface delParams {
|
|
||||||
zydd_id?: string;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
// import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
import { ReqPage } from "@/api/interface/index";
|
|
||||||
|
|
||||||
export namespace EndpointGroup {
|
|
||||||
// 列表接口响应
|
|
||||||
export interface List {
|
|
||||||
reg_id: number; // 资源端点分组 ID
|
|
||||||
reg_code: string; // 资源端点分组编码
|
|
||||||
reg_name: string; // 资源端点分组名称
|
|
||||||
reg_description: string;
|
|
||||||
created_at: string; // 添加时间
|
|
||||||
updated_at: string; // 更新时间
|
|
||||||
}
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
page: number;
|
|
||||||
limit: number;
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
export interface delParams {
|
|
||||||
reg_id?: string;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +1,16 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace GatherList {
|
export namespace GatherList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
cjpz_id: any;
|
cjpz_id: any;
|
||||||
cjpz_val: string;
|
cjpz_val: string;
|
||||||
cjpz_code: string;
|
cjpz_code: string;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
cjpz_id?: string;
|
cjpz_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
cjpz_id: number;
|
cjpz_id: number;
|
||||||
cjpz_val: string;
|
cjpz_val: string;
|
||||||
@@ -22,6 +18,5 @@ export namespace GatherList {
|
|||||||
cjpz_description: string;
|
cjpz_description: string;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace LogsList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
pr_name?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
ol_id: number; // 否 ID
|
|
||||||
au_id: number; // 是 用户ID
|
|
||||||
au_name: string; // 是 用户名
|
|
||||||
ol_description: string; // 是 操作日志
|
|
||||||
c_id: number; // 是 公司id
|
|
||||||
created_at: string; // 是 添加时间
|
|
||||||
updated_at: string; // 否 更新时间
|
|
||||||
deleted_at: string; // 否 删除时间
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace NodeList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
an_id: number;
|
|
||||||
an_name: string;
|
|
||||||
an_code: string;
|
|
||||||
an_is_dir: number;
|
|
||||||
an_pid: number;
|
|
||||||
an_is_hidden: number;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
an_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
id: number;
|
|
||||||
an_id: number;
|
|
||||||
an_pid: number;
|
|
||||||
an_name: string;
|
|
||||||
an_code: string;
|
|
||||||
label: string;
|
|
||||||
an_is_dir: number;
|
|
||||||
an_is_hidden: number;
|
|
||||||
created_at: number;
|
|
||||||
children: ResList[];
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace NoticeSetting {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
ntt_code: string; // 是 通知类型编码
|
|
||||||
nt_status: number; // 是 是否启用,0=>否,1=>是
|
|
||||||
ta_id: string; // 是 使用的机器人ID
|
|
||||||
nt_tagged_users: string; // 是 需要@的人的名字
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
// export interface delParams {
|
|
||||||
// ta_id?: string;
|
|
||||||
// }
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
ntt_id: number; // 否 通知类型模板ID
|
|
||||||
ntt_name: string; // 是 通知类型的名称
|
|
||||||
ntt_code: string; // 是 通知类型编码
|
|
||||||
nt_status: number; // 是 是否启用,0=>否,1=>是
|
|
||||||
ta_id: any; // 否 使用的机器人ID
|
|
||||||
telegram_account: any; // 是 使用的机器人详情
|
|
||||||
nt_tagged_users: string; // 是 需要@的人的名字
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace RoleList {
|
|
||||||
export interface ListReq extends ReqPage {}
|
|
||||||
export interface ListResp {
|
|
||||||
ar_id: number;
|
|
||||||
an_id?: string;
|
|
||||||
ar_name: string;
|
|
||||||
created_at: string;
|
|
||||||
updated_at: string;
|
|
||||||
admin_role_node: admin_role_node[];
|
|
||||||
an_ids: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface CreateReq {
|
|
||||||
ar_name: string;
|
|
||||||
ar_id: number;
|
|
||||||
an_id: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface CreateResp extends ResultData {}
|
|
||||||
|
|
||||||
export interface DeleteReq {
|
|
||||||
ar_id: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface admin_role_node {
|
|
||||||
an_id: number;
|
|
||||||
ar_id: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DeleteResp extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,34 +1,30 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace taskPlan {
|
export namespace taskPlan {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
pt_enable: number; // Y 任务开关,0=关闭,1=开启
|
pt_enable: number; // Y 任务开关,0=关闭,1=开启
|
||||||
pt_limit: number; // Y 任务频率,单位:秒
|
pt_limit: number; // Y 任务频率,单位:秒
|
||||||
pt_id?: number; // Y ID
|
pt_id?: number; // Y ID
|
||||||
pt_name: any;
|
pt_name?: any;
|
||||||
|
pt_code?: any;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
pt_id?: string;
|
pt_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
pt_id: number; // Y id
|
pt_id: number; // Y id
|
||||||
pt_enable: any; // Y 任务开关,0=关闭,1=开启
|
pt_enable: any; // Y 任务开关,0=关闭,1=开启
|
||||||
pt_limit?: any | undefined; // Y 任务频率
|
pt_limit?: any | undefined; // Y 任务频率
|
||||||
created_at: any; // Y 创建时间
|
created_at: any; // Y 创建时间
|
||||||
pt_name: any;
|
pt_name: any;
|
||||||
|
pt_code?: any;
|
||||||
pt_last_exec: any;
|
pt_last_exec: any;
|
||||||
}
|
}
|
||||||
// map接口
|
|
||||||
export interface ResMap {
|
export interface ResMap {
|
||||||
p_id: number;
|
p_id: number;
|
||||||
p_name: string;
|
p_name: string;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ interface AdminRoleNode {
|
|||||||
an_pid: number;
|
an_pid: number;
|
||||||
an_name: string;
|
an_name: string;
|
||||||
an_code: string;
|
an_code: string;
|
||||||
//children?: AdminRoleNode[];
|
|
||||||
children?: AdminRoleNode[] | undefined;
|
children?: AdminRoleNode[] | undefined;
|
||||||
}
|
}
|
||||||
export interface AdminRole {
|
export interface AdminRole {
|
||||||
|
|||||||
@@ -1,44 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace TabList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
t_type?: any;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
tab_id?: number;
|
|
||||||
tab_name: string;
|
|
||||||
tab_code: string;
|
|
||||||
tab_iframe_url: string;
|
|
||||||
tab_open_mode: any;
|
|
||||||
tab_tag_status: any;
|
|
||||||
tab_tag_type: any;
|
|
||||||
tab_tag: any;
|
|
||||||
tab_icon: any;
|
|
||||||
tab_highlight_icon: any;
|
|
||||||
tab_order: number;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
tab_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
tab_id: number;
|
|
||||||
tab_name: string;
|
|
||||||
tab_code: string;
|
|
||||||
tab_iframe_url: string;
|
|
||||||
tab_open_mode: any;
|
|
||||||
tab_tag_detail: any;
|
|
||||||
tab_tag_status: any;
|
|
||||||
tab_tag_type: any;
|
|
||||||
tab_tag: any;
|
|
||||||
tab_icon: any;
|
|
||||||
tab_highlight_icon: any;
|
|
||||||
searchText: any;
|
|
||||||
tab_order: number;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace TagList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
t_type?: any;
|
|
||||||
t_hidden?: any;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
t_id?: number;
|
|
||||||
t_name: string;
|
|
||||||
t_hidden: number;
|
|
||||||
t_type: number;
|
|
||||||
t_order: number;
|
|
||||||
t_logo: string;
|
|
||||||
t_probability: any;
|
|
||||||
}
|
|
||||||
export interface batchParams {
|
|
||||||
t_id?: number;
|
|
||||||
t_probability: any;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
t_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
t_id: any;
|
|
||||||
t_name: string;
|
|
||||||
t_hidden: any;
|
|
||||||
t_type: number;
|
|
||||||
t_order: number;
|
|
||||||
t_logo: string;
|
|
||||||
created_at: string;
|
|
||||||
t_probability: any;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -1,20 +1,16 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace fenLeiList {
|
export namespace fenLeiList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
fl_id?: number;
|
fl_id?: number;
|
||||||
fl_mingzi: string;
|
fl_mingzi: string;
|
||||||
fl_leixing: any;
|
fl_leixing: any;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
fl_id?: string;
|
fl_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
fl_id: any;
|
fl_id: any;
|
||||||
fl_mingzi: any;
|
fl_mingzi: any;
|
||||||
@@ -23,6 +19,5 @@ export namespace fenLeiList {
|
|||||||
fl_pid: any;
|
fl_pid: any;
|
||||||
children: any;
|
children: any;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace VideoList {
|
export namespace VideoList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
sp_is_vip?: string;
|
sp_is_vip?: string;
|
||||||
fl_id?: string;
|
fl_id?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
sp_id?: number;
|
sp_id?: number;
|
||||||
sp_name: string;
|
sp_name: string;
|
||||||
@@ -17,11 +15,9 @@ export namespace VideoList {
|
|||||||
v_wonderful_site_id: any;
|
v_wonderful_site_id: any;
|
||||||
v_recommend_site_id: any;
|
v_recommend_site_id: any;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
sp_id?: string;
|
sp_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
sp_id: any;
|
sp_id: any;
|
||||||
sp_name: string;
|
sp_name: string;
|
||||||
@@ -30,12 +26,177 @@ export namespace VideoList {
|
|||||||
sp_fengmian: any;
|
sp_fengmian: any;
|
||||||
sp_biaoqian: any;
|
sp_biaoqian: any;
|
||||||
sp_is_vip: any;
|
sp_is_vip: any;
|
||||||
|
sp_tui_jian_shi_jian?: any;
|
||||||
sp_fengmian_url: any;
|
sp_fengmian_url: any;
|
||||||
sp_shichang: any;
|
sp_shichang: any;
|
||||||
sp_source_code: any;
|
sp_source_code: any;
|
||||||
created_at: any;
|
created_at: any;
|
||||||
message: any;
|
message: any;
|
||||||
|
searchText?: string;
|
||||||
|
xsxq_id?: any;
|
||||||
|
keywords?: any;
|
||||||
|
v_name?: any;
|
||||||
|
v_name_en?: any;
|
||||||
|
v_pic?: any;
|
||||||
|
v_year?: any;
|
||||||
|
v_lang?: any;
|
||||||
|
v_area?: any;
|
||||||
|
v_actor?: any;
|
||||||
|
v_director?: any;
|
||||||
|
v_parent_category?: any;
|
||||||
|
v_category?: any;
|
||||||
|
v_description?: any;
|
||||||
|
v_publish_date?: any;
|
||||||
|
v_level?: any;
|
||||||
|
v_box_office?: any;
|
||||||
|
v_cover?: any;
|
||||||
|
v_cover_code?: any;
|
||||||
|
v_cover_edit?: any;
|
||||||
|
v_tag?: any;
|
||||||
|
v_describe?: any;
|
||||||
|
v_vip?: any;
|
||||||
|
v_status?: any;
|
||||||
|
v_wonderful_status?: any;
|
||||||
|
v_recommend_status?: any;
|
||||||
|
v_wonderful_site_id?: any;
|
||||||
|
v_recommend_site_id?: any;
|
||||||
|
v_play_time?: any;
|
||||||
|
v_play_url?: any;
|
||||||
|
v_play_url_detail?: any;
|
||||||
|
v_down_url?: any;
|
||||||
|
v_down_url_detail?: any;
|
||||||
|
n_cover?: any;
|
||||||
|
n_cover_code?: any;
|
||||||
|
n_cover_detail?: any;
|
||||||
|
n_tags?: any;
|
||||||
|
n_name?: any;
|
||||||
|
n_author?: any;
|
||||||
|
n_source_id?: any;
|
||||||
|
n_at_status?: any;
|
||||||
|
n_type?: any;
|
||||||
|
t_name?: any;
|
||||||
|
tag_list?: any;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
|
|
||||||
|
export interface MetadataMissingTaskPoolPlanTaskStatus {
|
||||||
|
exists?: boolean;
|
||||||
|
enabled?: boolean;
|
||||||
|
limit_seconds?: number;
|
||||||
|
limit_human?: string;
|
||||||
|
status_label?: string;
|
||||||
|
db_ready?: boolean;
|
||||||
|
db_error?: string;
|
||||||
|
pt_id?: number;
|
||||||
|
pt_name?: string;
|
||||||
|
pt_code?: string;
|
||||||
|
last_run_at?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface MetadataMissingTaskPoolStatusData {
|
||||||
|
generated_at?: string;
|
||||||
|
recommended_action?: string;
|
||||||
|
operator_hint?: string[];
|
||||||
|
workbench?: {
|
||||||
|
generated_at?: string;
|
||||||
|
videos_with_any_missing_metadata?: number;
|
||||||
|
queue_size?: number;
|
||||||
|
workbench_index_path?: string;
|
||||||
|
latest_run?: Record<string, any>;
|
||||||
|
};
|
||||||
|
task_pool?: {
|
||||||
|
generated_at?: string;
|
||||||
|
batch_count?: number;
|
||||||
|
pending_count?: number;
|
||||||
|
processing_count?: number;
|
||||||
|
done_count?: number;
|
||||||
|
skipped_count?: number;
|
||||||
|
task_pool_index_path?: string;
|
||||||
|
};
|
||||||
|
plan_task?: MetadataMissingTaskPoolPlanTaskStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface MetadataMissingTaskPoolOpsData {
|
||||||
|
summary?: MetadataMissingTaskPoolStatusData;
|
||||||
|
ops?: {
|
||||||
|
generated_at?: string;
|
||||||
|
recommended_action?: string;
|
||||||
|
command_entries?: Array<{
|
||||||
|
label?: string;
|
||||||
|
command?: string;
|
||||||
|
}>;
|
||||||
|
artifact_entries?: Array<{
|
||||||
|
label?: string;
|
||||||
|
path?: string;
|
||||||
|
}>;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface MetadataMissingWorkbenchSummaryData {
|
||||||
|
generated_at?: string;
|
||||||
|
sample_limit?: number;
|
||||||
|
queue_limit?: number;
|
||||||
|
prompt_limit?: number;
|
||||||
|
run_id?: string;
|
||||||
|
top_missing_fields?: Array<{
|
||||||
|
field?: string;
|
||||||
|
missing_count?: number;
|
||||||
|
missing_ratio?: number;
|
||||||
|
}>;
|
||||||
|
next_actions?: Array<{
|
||||||
|
key?: string;
|
||||||
|
label?: string;
|
||||||
|
summary?: string;
|
||||||
|
}>;
|
||||||
|
operator_notes?: Array<{
|
||||||
|
title?: string;
|
||||||
|
content?: string;
|
||||||
|
}>;
|
||||||
|
queue?: {
|
||||||
|
queue_size?: number;
|
||||||
|
items?: Array<Record<string, any>>;
|
||||||
|
};
|
||||||
|
audit?: {
|
||||||
|
total_videos?: number;
|
||||||
|
videos_with_any_missing_metadata?: number;
|
||||||
|
field_stats?: Array<Record<string, any>>;
|
||||||
|
};
|
||||||
|
codex_dispatch_prompt?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface MetadataMissingTaskPoolData {
|
||||||
|
generated_at?: string;
|
||||||
|
source_generated_at?: string;
|
||||||
|
batch_size?: number;
|
||||||
|
batch_limit?: number;
|
||||||
|
total_videos?: number;
|
||||||
|
videos_with_any_missing_metadata?: number;
|
||||||
|
queue_size?: number;
|
||||||
|
operator_hint?: string;
|
||||||
|
top_missing_fields?: Array<{
|
||||||
|
field?: string;
|
||||||
|
missing_count?: number;
|
||||||
|
missing_ratio?: number;
|
||||||
|
}>;
|
||||||
|
todo_summary?: Array<{
|
||||||
|
batch_id?: string;
|
||||||
|
label?: string;
|
||||||
|
focus_field?: string;
|
||||||
|
items_count?: number;
|
||||||
|
priority_level?: string;
|
||||||
|
}>;
|
||||||
|
batches?: Array<{
|
||||||
|
batch_id?: string;
|
||||||
|
batch_no?: number;
|
||||||
|
batch_label?: string;
|
||||||
|
focus_field?: string;
|
||||||
|
priority_level?: string;
|
||||||
|
items_count?: number;
|
||||||
|
status_label?: string;
|
||||||
|
owner?: string;
|
||||||
|
history_count?: number;
|
||||||
|
codex_prompt?: string;
|
||||||
|
items?: Array<Record<string, any>>;
|
||||||
|
}>;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,24 +1,19 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||||
export namespace nvYouList {
|
export namespace nvYouList {
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
export interface ReqParams extends ReqPage {
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
export interface saveParams {
|
||||||
ny_id?: number;
|
ny_id?: number;
|
||||||
}
|
}
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
export interface delParams {
|
||||||
ny_id?: string;
|
ny_id?: string;
|
||||||
}
|
}
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
export interface ResList {
|
||||||
ny_id: any;
|
ny_id: any;
|
||||||
ny_cover_url: any;
|
ny_cover_url: any;
|
||||||
ny_pinyin: any;
|
ny_pinyin: any;
|
||||||
ny_name: any;
|
ny_name: any;
|
||||||
}
|
}
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
export interface ResData extends ResultData {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,34 +0,0 @@
|
|||||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
|
||||||
export namespace videoFeedbackList {
|
|
||||||
// 查询接口
|
|
||||||
export interface ReqParams extends ReqPage {
|
|
||||||
key?: string;
|
|
||||||
vf_reason?: any;
|
|
||||||
}
|
|
||||||
// 保存接口
|
|
||||||
export interface saveParams {
|
|
||||||
vf_id?: number;
|
|
||||||
v_name: string;
|
|
||||||
mu_name: number;
|
|
||||||
vf_status: any;
|
|
||||||
vf_reason: string;
|
|
||||||
vf_remarks: number;
|
|
||||||
}
|
|
||||||
// 删除接口
|
|
||||||
export interface delParams {
|
|
||||||
vf_id?: string;
|
|
||||||
}
|
|
||||||
// 列表接口响应
|
|
||||||
export interface ResList {
|
|
||||||
vf_id: number;
|
|
||||||
v_name: string;
|
|
||||||
mu_name: number;
|
|
||||||
vf_status: any;
|
|
||||||
vf_reason: string;
|
|
||||||
vf_ip: string;
|
|
||||||
vf_remarks: number;
|
|
||||||
created_at: string;
|
|
||||||
}
|
|
||||||
// 保存删除响应接口
|
|
||||||
export interface ResData extends ResultData {}
|
|
||||||
}
|
|
||||||
@@ -3,21 +3,12 @@ import { DriveList } from "@/api/interface/activity/drive";
|
|||||||
import { ACTIVITY_PORT } from "@/api/config/servicePort";
|
import { ACTIVITY_PORT } from "@/api/config/servicePort";
|
||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 活动列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: DriveList.ReqParams) => {
|
export const getList = (params: DriveList.ReqParams) => {
|
||||||
return http.get<ResPage<DriveList.ResList>>(ACTIVITY_PORT + `/drive/list`, params);
|
return http.get<ResPage<DriveList.ResList>>(ACTIVITY_PORT + `/drive/list`, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 设置活动
|
|
||||||
*/
|
|
||||||
export const saveData = (params: DriveList.saveParams) => {
|
export const saveData = (params: DriveList.saveParams) => {
|
||||||
return http.post<ResPage<ResultData>>(ACTIVITY_PORT + `/manage/save`, params);
|
return http.post<ResPage<ResultData>>(ACTIVITY_PORT + `/manage/save`, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 删除活动
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: DriveList.delParams) => {
|
export const deleteItem = (params: DriveList.delParams) => {
|
||||||
return http.post<ResPage<ResultData>>(ACTIVITY_PORT + `/drive/del`, params);
|
return http.post<ResPage<ResultData>>(ACTIVITY_PORT + `/drive/del`, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,21 +3,12 @@ import { ManageList } from "@/api/interface/activity/manage";
|
|||||||
import { ACTIVITY_PORT } from "@/api/config/servicePort";
|
import { ACTIVITY_PORT } from "@/api/config/servicePort";
|
||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 分享链接列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: ManageList.ReqParams) => {
|
export const getList = (params: ManageList.ReqParams) => {
|
||||||
return http.get<ResPage<ManageList.ResList>>(ACTIVITY_PORT + `/manage/list`, params);
|
return http.get<ResPage<ManageList.ResList>>(ACTIVITY_PORT + `/manage/list`, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 设置分享链接
|
|
||||||
*/
|
|
||||||
export const saveData = (params: ManageList.saveParams) => {
|
export const saveData = (params: ManageList.saveParams) => {
|
||||||
return http.post<ResPage<ResultData>>(ACTIVITY_PORT + `/manage/save`, params);
|
return http.post<ResPage<ResultData>>(ACTIVITY_PORT + `/manage/save`, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 删除分享链接
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: ManageList.delParams) => {
|
export const deleteItem = (params: ManageList.delParams) => {
|
||||||
return http.post<ResPage<ResultData>>(ACTIVITY_PORT + `/manage/del`, params);
|
return http.post<ResPage<ResultData>>(ACTIVITY_PORT + `/manage/del`, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,9 +3,6 @@ import { ByList } from "@/api/interface/ad/by";
|
|||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
import { getGuangGaoBaoYangRuZhuListApiUrl } from "@/api/config";
|
import { getGuangGaoBaoYangRuZhuListApiUrl } from "@/api/config";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 广告列表 -- by
|
|
||||||
*/
|
|
||||||
export const ListApi = (params: ByList.ReqParams) => {
|
export const ListApi = (params: ByList.ReqParams) => {
|
||||||
return http.get<ResPage<ByList.ResList>>(getGuangGaoBaoYangRuZhuListApiUrl, params);
|
return http.get<ResPage<ByList.ResList>>(getGuangGaoBaoYangRuZhuListApiUrl, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,9 +3,6 @@ import { ConfigList } from "@/api/interface/ad/config";
|
|||||||
import { getGuangGaoGgpzListApiUrl, getGuangGaoGgpzSaveApiUrl } from "@/api/config";
|
import { getGuangGaoGgpzListApiUrl, getGuangGaoGgpzSaveApiUrl } from "@/api/config";
|
||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 广告配置列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: ConfigList.ReqParams) => {
|
export const getList = (params: ConfigList.ReqParams) => {
|
||||||
return http.get<ResPage<ConfigList.ResList>>(getGuangGaoGgpzListApiUrl, params);
|
return http.get<ResPage<ConfigList.ResList>>(getGuangGaoGgpzListApiUrl, params);
|
||||||
};
|
};
|
||||||
@@ -13,17 +10,6 @@ export const getList = (params: ConfigList.ReqParams) => {
|
|||||||
export const getAllList = () => {
|
export const getAllList = () => {
|
||||||
return http.get<ResPage<ConfigList.ResList>>(getGuangGaoGgpzListApiUrl, { limit: 1000, page: 1 });
|
return http.get<ResPage<ConfigList.ResList>>(getGuangGaoGgpzListApiUrl, { limit: 1000, page: 1 });
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 设置广告配置
|
|
||||||
*/
|
|
||||||
export const saveData = (params: ConfigList.saveParams) => {
|
export const saveData = (params: ConfigList.saveParams) => {
|
||||||
return http.post<ResPage<ResultData>>(getGuangGaoGgpzSaveApiUrl, params);
|
return http.post<ResPage<ResultData>>(getGuangGaoGgpzSaveApiUrl, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
/**
|
|
||||||
* @name 删除广告配置
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: ConfigList.delParams) => {
|
|
||||||
return http.post<ResPage<ResultData>>(getGuangGaoGgpzSaveApiUrl, params);
|
|
||||||
};
|
|
||||||
|
|||||||
@@ -3,9 +3,7 @@ import { GroupList } from "@/api/interface/ad/group";
|
|||||||
import { getGuangGaoMainGroupListApiUrl, getGuangGaoMainGroupSaveApiUrl, getGuangGaoMainGroupDelApiUrl } from "@/api/config";
|
import { getGuangGaoMainGroupListApiUrl, getGuangGaoMainGroupSaveApiUrl, getGuangGaoMainGroupDelApiUrl } from "@/api/config";
|
||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 广告分组列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: GroupList.ReqParams) => {
|
export const getList = (params: GroupList.ReqParams) => {
|
||||||
return http.get<ResPage<GroupList.ResList>>(getGuangGaoMainGroupListApiUrl, params);
|
return http.get<ResPage<GroupList.ResList>>(getGuangGaoMainGroupListApiUrl, params);
|
||||||
};
|
};
|
||||||
@@ -13,24 +11,17 @@ export const getList = (params: GroupList.ReqParams) => {
|
|||||||
export const getAllList = () => {
|
export const getAllList = () => {
|
||||||
return http.get<ResPage<GroupList.ResList>>(getGuangGaoMainGroupListApiUrl, { limit: 1000, page: 1 });
|
return http.get<ResPage<GroupList.ResList>>(getGuangGaoMainGroupListApiUrl, { limit: 1000, page: 1 });
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 设置广告分组
|
|
||||||
*/
|
|
||||||
export const saveData = (params: GroupList.saveParams) => {
|
export const saveData = (params: GroupList.saveParams) => {
|
||||||
return http.post<ResPage<ResultData>>(getGuangGaoMainGroupSaveApiUrl, params);
|
return http.post<ResPage<ResultData>>(getGuangGaoMainGroupSaveApiUrl, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
/**
|
|
||||||
* @name 删除广告分组
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: GroupList.delParams) => {
|
export const deleteItem = (params: GroupList.delParams) => {
|
||||||
return http.post<ResPage<ResultData>>(getGuangGaoMainGroupDelApiUrl, params);
|
return http.post<ResPage<ResultData>>(getGuangGaoMainGroupDelApiUrl, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 广告分组列表--全部数据
|
|
||||||
*/
|
|
||||||
export const adGroupAllListApi = () => {
|
export const adGroupAllListApi = () => {
|
||||||
return http.get(getGuangGaoMainGroupListApiUrl, { page: 1, limit: 365 });
|
return http.get<ResPage<GroupList.ResList>>(getGuangGaoMainGroupListApiUrl, { page: 1, limit: 365 });
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,9 +3,7 @@ import { LfList } from "@/api/interface/ad/lf";
|
|||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
import { getGuangGaoLouFengListApiUrl } from "@/api/config";
|
import { getGuangGaoLouFengListApiUrl } from "@/api/config";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 广告列表 -- lf
|
|
||||||
*/
|
|
||||||
export const ListApi = (params: LfList.ReqParams) => {
|
export const ListApi = (params: LfList.ReqParams) => {
|
||||||
return http.get<ResPage<LfList.ResList>>(getGuangGaoLouFengListApiUrl, params);
|
return http.get<ResPage<LfList.ResList>>(getGuangGaoLouFengListApiUrl, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,42 +3,22 @@ import { adList } from "@/api/interface/ad/list";
|
|||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
import { getGuangGaoMainListApiUrl, getGuangGaoMainSaveApiUrl, getGuangGaoMainDelApiUrl } from "@/api/config";
|
import { getGuangGaoMainListApiUrl, getGuangGaoMainSaveApiUrl, getGuangGaoMainDelApiUrl } from "@/api/config";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 广告列表
|
|
||||||
*/
|
|
||||||
export const ListApi = (params: adList.ReqParams) => {
|
export const ListApi = (params: adList.ReqParams) => {
|
||||||
return http.get<ResPage<adList.List>>(getGuangGaoMainListApiUrl, params);
|
return http.get<ResPage<adList.List>>(getGuangGaoMainListApiUrl, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 新增广告
|
|
||||||
*/
|
|
||||||
export const SaveApi = (params: adList.ReqParams) => {
|
export const SaveApi = (params: adList.ReqParams) => {
|
||||||
return http.post<ResPage<adList.List>>(getGuangGaoMainSaveApiUrl, params);
|
return http.post<ResPage<adList.List>>(getGuangGaoMainSaveApiUrl, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 删除广告
|
|
||||||
*/
|
|
||||||
export const DelApi = (params: adList.delParams) => {
|
export const DelApi = (params: adList.delParams) => {
|
||||||
return http.post<ResPage<adList.List>>(getGuangGaoMainDelApiUrl, params);
|
return http.post<ResPage<adList.List>>(getGuangGaoMainDelApiUrl, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 批量设置广告
|
|
||||||
*/
|
|
||||||
export const batchData = (params: adList.batchParams) => {
|
export const batchData = (params: adList.batchParams) => {
|
||||||
return http.post<ResPage<adList.List>>(getGuangGaoMainSaveApiUrl, params);
|
return http.post<ResPage<adList.List>>(getGuangGaoMainSaveApiUrl, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 批量替换广告内容
|
|
||||||
*/
|
|
||||||
export const batchReplaceData = (params: adList.batchReplaceParams) => {
|
|
||||||
return http.post<ResPage<adList.List>>(`/admin/ad/batch/replace`, params);
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @name 克隆站点广告
|
|
||||||
*/
|
|
||||||
export const batchCloneData = (params: adList.cloneParams) => {
|
|
||||||
return http.post<ResPage<adList.List>>(`/admin/ad/clone`, params);
|
|
||||||
};
|
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
import { ResPage } from "@/api/interface/index";
|
|
||||||
import { adTemplate } from "@/api/interface/ad/list";
|
|
||||||
import http from "@/api";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 广告模板列表
|
|
||||||
*/
|
|
||||||
export const ListApi = (params: adTemplate.ReqParams) => {
|
|
||||||
return http.get<ResPage<adTemplate.List>>(`admin/ad/template/list`, params);
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @name 广告模板列表
|
|
||||||
*/
|
|
||||||
export const ListAllApi = (params: adTemplate.ReqParams) => {
|
|
||||||
return http.get<ResPage<adTemplate.List>>(`admin/ad/template/list`, params);
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @name 广告模板列表--全部数据
|
|
||||||
*/
|
|
||||||
export const adTemAllListApi = () => {
|
|
||||||
return http.get(`admin/ad/template/list`, { page: 1, limit: 365 });
|
|
||||||
};
|
|
||||||
@@ -3,9 +3,7 @@ import { YxList } from "@/api/interface/ad/yx";
|
|||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
import { getGuangGaoYouXiListApiUrl } from "@/api/config";
|
import { getGuangGaoYouXiListApiUrl } from "@/api/config";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 广告列表 -- yx
|
|
||||||
*/
|
|
||||||
export const ListApi = (params: YxList.ReqParams) => {
|
export const ListApi = (params: YxList.ReqParams) => {
|
||||||
return http.get<ResPage<YxList.ResList>>(getGuangGaoYouXiListApiUrl, params);
|
return http.get<ResPage<YxList.ResList>>(getGuangGaoYouXiListApiUrl, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,9 +3,7 @@ import { ZbList } from "@/api/interface/ad/zb";
|
|||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
import { getGuangGaoZhiBoListApiUrl } from "@/api/config";
|
import { getGuangGaoZhiBoListApiUrl } from "@/api/config";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 广告列表 -- zb
|
|
||||||
*/
|
|
||||||
export const ListApi = (params: ZbList.ReqParams) => {
|
export const ListApi = (params: ZbList.ReqParams) => {
|
||||||
return http.get<ResPage<ZbList.ResList>>(getGuangGaoZhiBoListApiUrl, params);
|
return http.get<ResPage<ZbList.ResList>>(getGuangGaoZhiBoListApiUrl, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,9 +3,7 @@ import { ZyList } from "@/api/interface/ad/zy";
|
|||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
import { getGuangGaoGuanFangZiYingListApiUrl } from "@/api/config";
|
import { getGuangGaoGuanFangZiYingListApiUrl } from "@/api/config";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 广告列表 -- zy
|
|
||||||
*/
|
|
||||||
export const ListApi = (params: ZyList.ReqParams) => {
|
export const ListApi = (params: ZyList.ReqParams) => {
|
||||||
return http.get<ResPage<ZyList.ResList>>(getGuangGaoGuanFangZiYingListApiUrl, params);
|
return http.get<ResPage<ZyList.ResList>>(getGuangGaoGuanFangZiYingListApiUrl, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
import { ResPage, ResultData } from "@/api/interface/index";
|
|
||||||
import { AtlasList } from "@/api/interface/atlas/list";
|
|
||||||
import { ATLAS_PORT } from "@/api/config/servicePort";
|
|
||||||
import http from "@/api";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 图册列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: AtlasList.ReqParams) => {
|
|
||||||
return http.get<ResPage<AtlasList.ResList>>(ATLAS_PORT + `/list`, params);
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @name 设置图册
|
|
||||||
*/
|
|
||||||
export const saveData = (params: AtlasList.saveParams) => {
|
|
||||||
return http.post<ResPage<ResultData>>(ATLAS_PORT + `/save`, params);
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @name 删除图册
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: AtlasList.delParams) => {
|
|
||||||
return http.post<ResPage<ResultData>>(ATLAS_PORT + `/del`, params);
|
|
||||||
};
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
import { ResPage, ResultData } from "@/api/interface/index";
|
|
||||||
import { ChannelStatisticsList } from "@/api/interface/channel/statistics";
|
|
||||||
import { CHANNEL_PORT } from "@/api/config/servicePort";
|
|
||||||
import http from "@/api";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 列表
|
|
||||||
*/
|
|
||||||
export const ListApi = (params: ChannelStatisticsList.ReqParams) => {
|
|
||||||
return http.get<ResPage<ChannelStatisticsList.ResList>>(CHANNEL_PORT + `/statisticalcode/list`, params);
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 设置
|
|
||||||
*/
|
|
||||||
export const SaveApi = (params: ChannelStatisticsList.saveParams) => {
|
|
||||||
return http.post<ResPage<ResultData>>(CHANNEL_PORT + `/statisticalcode/save`, params);
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 删除
|
|
||||||
*/
|
|
||||||
export const DelApi = (params: ChannelStatisticsList.delParams) => {
|
|
||||||
return http.post<ResPage<ChannelStatisticsList.ResList>>(CHANNEL_PORT + `/statisticalcode/del`, params);
|
|
||||||
};
|
|
||||||
@@ -3,21 +3,12 @@ import { ContentList } from "@/api/interface/email/content";
|
|||||||
import { EMAIL_PORT } from "@/api/config/servicePort";
|
import { EMAIL_PORT } from "@/api/config/servicePort";
|
||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 邮件事件列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: ContentList.ReqParams) => {
|
export const getList = (params: ContentList.ReqParams) => {
|
||||||
return http.get<ResPage<ContentList.ResList>>(EMAIL_PORT + `/content/list`, params);
|
return http.get<ResPage<ContentList.ResList>>(EMAIL_PORT + `/content/list`, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 设置邮件事件
|
|
||||||
*/
|
|
||||||
export const saveData = (params: ContentList.saveParams) => {
|
export const saveData = (params: ContentList.saveParams) => {
|
||||||
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/content/save`, params);
|
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/content/save`, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 删除邮件事件
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: ContentList.delParams) => {
|
export const deleteItem = (params: ContentList.delParams) => {
|
||||||
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/content/del`, params);
|
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/content/del`, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,24 +3,15 @@ import { EventList } from "@/api/interface/email/event";
|
|||||||
import { EMAIL_PORT } from "@/api/config/servicePort";
|
import { EMAIL_PORT } from "@/api/config/servicePort";
|
||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 邮件事件列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: EventList.ReqParams) => {
|
export const getList = (params: EventList.ReqParams) => {
|
||||||
return http.get<ResPage<EventList.ResList>>(EMAIL_PORT + `/event/list`, params);
|
return http.get<ResPage<EventList.ResList>>(EMAIL_PORT + `/event/list`, params);
|
||||||
};
|
};
|
||||||
export const getAllList = () => {
|
export const getAllList = () => {
|
||||||
return http.get<ResPage<EventList.ResList>>(EMAIL_PORT + `/event/list`, { limit: 365, page: 1 });
|
return http.get<ResPage<EventList.ResList>>(EMAIL_PORT + `/event/list`, { limit: 365, page: 1 });
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 设置邮件事件
|
|
||||||
*/
|
|
||||||
export const saveData = (params: EventList.saveParams) => {
|
export const saveData = (params: EventList.saveParams) => {
|
||||||
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/event/save`, params);
|
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/event/save`, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 删除邮件事件
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: EventList.delParams) => {
|
export const deleteItem = (params: EventList.delParams) => {
|
||||||
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/event/del`, params);
|
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/event/del`, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,22 +3,13 @@ import { AccountList } from "@/api/interface/finance/account/list";
|
|||||||
import { ACCOUNT_PORT } from "@/api/config/servicePort";
|
import { ACCOUNT_PORT } from "@/api/config/servicePort";
|
||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 资金账户列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: AccountList.ReqParams) => {
|
export const getList = (params: AccountList.ReqParams) => {
|
||||||
return http.get<ResPage<AccountList.ResList>>(ACCOUNT_PORT + `/list`, params);
|
return http.get<ResPage<AccountList.ResList>>(ACCOUNT_PORT + `/list`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 设置资金账户
|
|
||||||
*/
|
|
||||||
export const saveData = (params: AccountList.saveParams) => {
|
export const saveData = (params: AccountList.saveParams) => {
|
||||||
return http.post<ResPage<ResultData>>(ACCOUNT_PORT + `/save`, params);
|
return http.post<ResPage<ResultData>>(ACCOUNT_PORT + `/save`, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 删除资金账户
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: AccountList.delParams) => {
|
export const deleteItem = (params: AccountList.delParams) => {
|
||||||
return http.post<ResPage<ResultData>>(ACCOUNT_PORT + `/del`, params);
|
return http.post<ResPage<ResultData>>(ACCOUNT_PORT + `/del`, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,22 +3,13 @@ import { TransactionList } from "@/api/interface/finance/account/transaction";
|
|||||||
import { ACCOUNT_PORT } from "@/api/config/servicePort";
|
import { ACCOUNT_PORT } from "@/api/config/servicePort";
|
||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 资金账户流水列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: TransactionList.ReqParams) => {
|
export const getList = (params: TransactionList.ReqParams) => {
|
||||||
return http.get<ResPage<TransactionList.ResList>>(ACCOUNT_PORT + `/transaction/list`, params);
|
return http.get<ResPage<TransactionList.ResList>>(ACCOUNT_PORT + `/transaction/list`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 设置资金账户流水
|
|
||||||
*/
|
|
||||||
export const saveData = (params: TransactionList.saveParams) => {
|
export const saveData = (params: TransactionList.saveParams) => {
|
||||||
return http.post<ResPage<ResultData>>(ACCOUNT_PORT + `/transaction/save`, params);
|
return http.post<ResPage<ResultData>>(ACCOUNT_PORT + `/transaction/save`, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 删除资金账户流水
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: TransactionList.delParams) => {
|
export const deleteItem = (params: TransactionList.delParams) => {
|
||||||
return http.post<ResPage<ResultData>>(ACCOUNT_PORT + `/transaction/del`, params);
|
return http.post<ResPage<ResultData>>(ACCOUNT_PORT + `/transaction/del`, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,22 +3,13 @@ import { FeedbackList } from "@/api/interface/finance/recharge/feedback";
|
|||||||
import { RECHARGE_PORT } from "@/api/config/servicePort";
|
import { RECHARGE_PORT } from "@/api/config/servicePort";
|
||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 充值反馈列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: FeedbackList.ReqParams) => {
|
export const getList = (params: FeedbackList.ReqParams) => {
|
||||||
return http.get<ResPage<FeedbackList.ResList>>(RECHARGE_PORT + `/feedback/list`, params);
|
return http.get<ResPage<FeedbackList.ResList>>(RECHARGE_PORT + `/feedback/list`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 设置充值反馈
|
|
||||||
*/
|
|
||||||
export const saveData = (params: FeedbackList.saveParams) => {
|
export const saveData = (params: FeedbackList.saveParams) => {
|
||||||
return http.post<ResPage<ResultData>>(RECHARGE_PORT + `/feedback/save`, params);
|
return http.post<ResPage<ResultData>>(RECHARGE_PORT + `/feedback/save`, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 删除充值反馈
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: FeedbackList.delParams) => {
|
export const deleteItem = (params: FeedbackList.delParams) => {
|
||||||
return http.post<ResPage<ResultData>>(RECHARGE_PORT + `/feedback/del`, params);
|
return http.post<ResPage<ResultData>>(RECHARGE_PORT + `/feedback/del`, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,21 +3,12 @@ import { OrderList } from "@/api/interface/finance/recharge/order";
|
|||||||
import { ORDER_PORT } from "@/api/config/servicePort";
|
import { ORDER_PORT } from "@/api/config/servicePort";
|
||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 充值订单列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: OrderList.ReqParams) => {
|
export const getList = (params: OrderList.ReqParams) => {
|
||||||
return http.get<ResPage<OrderList.ResList>>(ORDER_PORT + `/list`, params);
|
return http.get<ResPage<OrderList.ResList>>(ORDER_PORT + `/list`, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 设置充值订单
|
|
||||||
*/
|
|
||||||
export const saveData = (params: OrderList.saveParams) => {
|
export const saveData = (params: OrderList.saveParams) => {
|
||||||
return http.post<ResPage<ResultData>>(ORDER_PORT + `/save`, params);
|
return http.post<ResPage<ResultData>>(ORDER_PORT + `/save`, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 删除充值订单
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: OrderList.delParams) => {
|
export const deleteItem = (params: OrderList.delParams) => {
|
||||||
return http.post<ResPage<ResultData>>(ORDER_PORT + `/del`, params);
|
return http.post<ResPage<ResultData>>(ORDER_PORT + `/del`, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,22 +3,13 @@ import { PackageList } from "@/api/interface/finance/recharge/package";
|
|||||||
import { PACKAGE_PORT } from "@/api/config/servicePort";
|
import { PACKAGE_PORT } from "@/api/config/servicePort";
|
||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 套餐列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: PackageList.ReqParams) => {
|
export const getList = (params: PackageList.ReqParams) => {
|
||||||
return http.get<ResPage<PackageList.ResList>>(PACKAGE_PORT + `/list`, params);
|
return http.get<ResPage<PackageList.ResList>>(PACKAGE_PORT + `/list`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 设置套餐
|
|
||||||
*/
|
|
||||||
export const saveData = (params: PackageList.saveParams) => {
|
export const saveData = (params: PackageList.saveParams) => {
|
||||||
return http.post<ResPage<ResultData>>(PACKAGE_PORT + `/save`, params);
|
return http.post<ResPage<ResultData>>(PACKAGE_PORT + `/save`, params);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* @name 删除套餐
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: PackageList.delParams) => {
|
export const deleteItem = (params: PackageList.delParams) => {
|
||||||
return http.post<ResPage<ResultData>>(PACKAGE_PORT + `/del`, params);
|
return http.post<ResPage<ResultData>>(PACKAGE_PORT + `/del`, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,53 +1,34 @@
|
|||||||
import { Login } from "@/api/interface/index";
|
import { Login } from "@/api/interface/index";
|
||||||
import { USER_PORT } from "@/api/config/servicePort";
|
import { USER_PORT } from "@/api/config/servicePort";
|
||||||
import { loginApiUrl, getSystemUserInfoApiUrl } from "@/api/config";
|
import { loginApiUrl, getSystemUserInfoApiUrl } from "@/api/config";
|
||||||
|
|
||||||
import authMenuList from "@/assets/json/authMenuList.json";
|
import authMenuList from "@/assets/json/authMenuList.json";
|
||||||
import authButtonList from "@/assets/json/authButtonList.json";
|
import authButtonList from "@/assets/json/authButtonList.json";
|
||||||
import http from "@/api";
|
import http from "@/api";
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 登录模块
|
|
||||||
*/
|
|
||||||
// 用户登录 /admin/system/user/login
|
|
||||||
export const loginApi = (params: Login.ReqLoginForm) => {
|
export const loginApi = (params: Login.ReqLoginForm) => {
|
||||||
return http.post<Login.ResLogin>(loginApiUrl, params, { loading: false }); // 正常 post json 请求 ==> application/json
|
return http.post<Login.ResLogin>(loginApiUrl, params, { loading: false });
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取用户信息 /admin/system/user/info
|
|
||||||
export const getUserRoleListApi = () => {
|
export const getUserRoleListApi = () => {
|
||||||
return http.get<Login.ResLogin>(getSystemUserInfoApiUrl, {}, { loading: false }); // 正常 post json 请求 ==> application/json
|
return http.get<Login.ResLogin>(getSystemUserInfoApiUrl, {}, { loading: false });
|
||||||
// return http.get<Menu.MenuOptions[]>(PORT1 + `/menu/list`, {}, { loading: false });
|
|
||||||
// 如果想让菜单变为本地数据,注释上一行代码,并引入本地 authMenuList.json 数据
|
|
||||||
return authMenuList;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取菜单列表
|
|
||||||
export const getAuthMenuListApi3 = () => {
|
export const getAuthMenuListApi3 = () => {
|
||||||
// return http.get<Menu.MenuOptions[]>(PORT1 + `/menu/list`, {}, { loading: false });
|
|
||||||
// 如果想让菜单变为本地数据,注释上一行代码,并引入本地 authMenuList.json 数据
|
|
||||||
return authMenuList;
|
return authMenuList;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取菜单列表
|
|
||||||
export const getAuthMenuListApi = () => {
|
export const getAuthMenuListApi = () => {
|
||||||
// return http.get<Menu.MenuOptions[]>(PORT1 + `/menu/list`, {}, { loading: false });
|
|
||||||
// 如果想让菜单变为本地数据,注释上一行代码,并引入本地 authMenuList.json 数据
|
|
||||||
return authMenuList;
|
return authMenuList;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取按钮权限
|
|
||||||
export const getAuthButtonListApi = () => {
|
export const getAuthButtonListApi = () => {
|
||||||
// return http.get<Login.ResAuthButtons>(PORT1 + `/auth/buttons`, {}, { loading: false });
|
|
||||||
// 如果想让按钮权限变为本地数据,注释上一行代码,并引入本地 authButtonList.json 数据
|
|
||||||
return authButtonList;
|
return authButtonList;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 用户退出登录
|
|
||||||
export const logoutApi = () => {
|
export const logoutApi = () => {
|
||||||
return http.post(USER_PORT + `/logout`);
|
return http.post(USER_PORT + `/logout`);
|
||||||
};
|
};
|
||||||
// 修改密码添加
|
|
||||||
export const updatePwd = params => {
|
export const updatePwd = (params: any) => {
|
||||||
return http.post(USER_PORT + `/pwd`, params);
|
return http.post(USER_PORT + `/pwd`, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
import { ResPage, ResultData } from "@/api/interface/index";
|
|
||||||
import { ChapterList } from "@/api/interface/manga/chapter";
|
|
||||||
import { MANGA_PORT } from "@/api/config/servicePort";
|
|
||||||
import http from "@/api";
|
|
||||||
import { getManHuaZhangJieApiUrl } from "@/api/config";
|
|
||||||
/**
|
|
||||||
* @name 漫画章节列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: ChapterList.ReqParams) => {
|
|
||||||
return http.get<ResPage<ChapterList.ResList>>(getManHuaZhangJieApiUrl, params);
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 设置漫画章节
|
|
||||||
*/
|
|
||||||
export const saveData = (params: ChapterList.saveParams) => {
|
|
||||||
return http.post<ResPage<ResultData>>(MANGA_PORT + `/chapter/save`, params);
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @name 批量设置漫画章节
|
|
||||||
*/
|
|
||||||
export const batchData = (params: ChapterList.batchParams) => {
|
|
||||||
return http.post<ResPage<ResultData>>(MANGA_PORT + `/chapter/vip/set`, params);
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @name 删除漫画章节
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: ChapterList.delParams) => {
|
|
||||||
return http.post<ResPage<ResultData>>(MANGA_PORT + `/chapter/del`, params);
|
|
||||||
};
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
import { ResPage } from "@/api/interface/index";
|
|
||||||
import { fenLeiList } from "@/api/interface/manga/fenlei";
|
|
||||||
import { getManHuaFenleiApiUrl } from "@/api/config";
|
|
||||||
import http from "@/api";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 漫画分类
|
|
||||||
*/
|
|
||||||
export const getList = (params: fenLeiList.ReqParams) => {
|
|
||||||
return http.get<ResPage<fenLeiList.ResList>>(getManHuaFenleiApiUrl, params);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const getAllList = () => {
|
|
||||||
return http.get<ResPage<fenLeiList.ResList>>(getManHuaFenleiApiUrl, { limit: 1000, page: 1 });
|
|
||||||
};
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
import { ResPage, ResultData } from "@/api/interface/index";
|
|
||||||
import { MangaList } from "@/api/interface/manga/list";
|
|
||||||
import { MANGA_PORT } from "@/api/config/servicePort";
|
|
||||||
import http from "@/api";
|
|
||||||
import { getManHuaMainListApiUrl } from "@/api/config";
|
|
||||||
/**
|
|
||||||
* @name 漫画列表
|
|
||||||
*/
|
|
||||||
export const getList = (params: MangaList.ReqParams) => {
|
|
||||||
return http.get<ResPage<MangaList.ResList>>(getManHuaMainListApiUrl, params);
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @name 设置漫画
|
|
||||||
*/
|
|
||||||
export const saveData = (params: MangaList.saveParams) => {
|
|
||||||
return http.post<ResPage<ResultData>>(MANGA_PORT + `/save`, params);
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @name 删除漫画
|
|
||||||
*/
|
|
||||||
export const deleteItem = (params: MangaList.delParams) => {
|
|
||||||
return http.post<ResPage<ResultData>>(MANGA_PORT + `/del`, params);
|
|
||||||
};
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user