debug
This commit is contained in:
@@ -1,77 +1,53 @@
|
||||
// 登录
|
||||
export const loginApiUrl = "/guest/login";
|
||||
|
||||
// 配置
|
||||
export const getSystemConfigListApiUrl = "/system/config/list";
|
||||
export const getSystemConfigSaveApiUrl = "/system/config/save";
|
||||
|
||||
// 资源端点
|
||||
export const getSystemZyddListApiUrl = "/system/zydd/list";
|
||||
export const getSystemZyddSaveApiUrl = "/system/zydd/save";
|
||||
|
||||
// 计划任务列表
|
||||
export const getSystemPlanListApiUrl = "/system/plan/list";
|
||||
export const getSystemPlanSaveApiUrl = "/system/plan/save";
|
||||
|
||||
// 采集配置列表
|
||||
export const getSystemCjpzListApiUrl = "/system/cjpz/list";
|
||||
export const getSystemCjpzSaveApiUrl = "/system/cjpz/save";
|
||||
|
||||
// 用户信息
|
||||
export const getSystemUserInfoApiUrl = "/system/user/info";
|
||||
// 用户列表
|
||||
export const getSystemUserlistApiUrl = "/system/user/list";
|
||||
|
||||
// 视频分类 /shipin/fenlei/list?page=1&limit=10&key=
|
||||
export const getVideoCategoryApiUrl = "/video/category/list";
|
||||
export const getVideoListApiUrl = "/video/list";
|
||||
// 视频列表 -批量设置每日推荐视频
|
||||
export const getShipinNvYouApiUrl = getVideoListApiUrl;
|
||||
export const getVideoSetLevelApiUrl = "/video/level/set";
|
||||
export const getVideoSetBoxOfficeApiUrl = "/video/boxoffice/set";
|
||||
|
||||
// seo关键词
|
||||
export const getKeyWordListApiUrl = "/system/keyword/list";
|
||||
export const getKeyWordSaveApiUrl = "/system/keyword/save";
|
||||
export const getKeyWordDelApiUrl = "/system/keyword/del";
|
||||
|
||||
// 小说分类
|
||||
export const getXiaoShuoFenleiApiUrl = "/novel/category/list";
|
||||
// 小说章节
|
||||
export const getXiaoZhangJieYouApiUrl = "/xiaoshuo/zhangjie/list";
|
||||
// 小说列表
|
||||
export const getXiaoShuoMainListApiUrl = "/novel/list";
|
||||
|
||||
// 广告分组 /guanggao/main/group/list?page=1&limit=10&key=
|
||||
export const getGuangGaoMainGroupListApiUrl = "/guanggao/main/group/list";
|
||||
// 广告列表 /guanggao/main/list?page=1&limit=10&key=
|
||||
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 getGuangGaoGgpzSaveApiUrl = "/guanggao/ggpz/save";
|
||||
|
||||
// 漫画分类 /manhua/fenlei/list?page=1&limit=10&key=
|
||||
export const getManHuaFenleiApiUrl = "/manhua/fenlei/list";
|
||||
// 漫画章节 /shipin/nvyou/list?page=1&limit=10&key=
|
||||
export const getManHuaZhangJieApiUrl = "/manhua/zhangjie/list";
|
||||
// 漫画列表 /shipin/main/list?page=1&limit=10&key=
|
||||
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";
|
||||
// 删除广告分组 /guanggao/main/group/del 传参form-data 参数 ggfz_id
|
||||
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";
|
||||
// 删除广告 /guanggao/main/group/del 传参form-data 参数 gg_id
|
||||
export const getGuangGaoMainDelApiUrl = "/guanggao/main/del";
|
||||
|
||||
// 参数模板列表
|
||||
export const getTkdargListUrl = "/site/tkdarg/list";
|
||||
|
||||
// 模板列表
|
||||
export const getTemplateListUrl = "/site/template/list";
|
||||
// 替换模板分组列表
|
||||
export const getSubjectFomartGroupList = "/site/subject/fomart/group/list";
|
||||
// 替换模板列表
|
||||
export const getSubjectFomartList = "/site/subject/fomart/list";
|
||||
|
||||
@@ -1,99 +1,46 @@
|
||||
// 后端微服务模块前缀
|
||||
export const PORT1 = "/geeker";
|
||||
export const ADMIN = "/admin";
|
||||
/**
|
||||
* @name 服务端口-系统
|
||||
*/
|
||||
export const SYSTEM_PORT = "/admin/system";
|
||||
export const DOMAIN_PORT = "/admin/domain";
|
||||
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 MSG_PORT = "/admin/msg/task";
|
||||
export const DOWNLOAD_PORT = "/admin/report/down";
|
||||
export const CONFIG_PORT = SYSTEM_PORT + "/config";
|
||||
export const SYS_CONFIG_PORT = SYSTEM_PORT + "/sysconfig";
|
||||
export const RES_SOURCE_PORT = "/admin/resource";
|
||||
|
||||
/**
|
||||
* @name 服务端口-视频
|
||||
*/
|
||||
export const VIDEO_PORT = ADMIN + "/video";
|
||||
/**
|
||||
* @name 服务端口-标签
|
||||
*/
|
||||
export const TAG_PORT = ADMIN + "/tag";
|
||||
/**
|
||||
* @name 服务端口-图册
|
||||
*/
|
||||
export const ATLAS_PORT = ADMIN + "/atlas";
|
||||
|
||||
/**
|
||||
* @name 服务端口-小说
|
||||
*/
|
||||
export const NOVEL_PORT = ADMIN + "/novel";
|
||||
|
||||
/**
|
||||
* @name 服务端口-漫画
|
||||
*/
|
||||
export const MANGA_PORT = ADMIN + "/manga";
|
||||
|
||||
/**
|
||||
* @name 服务端口-TAG
|
||||
*/
|
||||
export const TAB_BATCH_PORT = ADMIN + "/tab";
|
||||
|
||||
/**
|
||||
* @name 服务端口-APP用户列表
|
||||
*/
|
||||
export const MI_USER_PORT = ADMIN + "/miaouser";
|
||||
|
||||
/**
|
||||
* @name 服务端口-视频反馈列表
|
||||
*/
|
||||
export const FEEDBACK_PORT = ADMIN + "/feedback";
|
||||
|
||||
/**
|
||||
* @name 服务端口-搜索词管理
|
||||
*/
|
||||
export const SEARCH_PORT = ADMIN + "/search";
|
||||
/**
|
||||
* @name 服务端口-站点
|
||||
*/
|
||||
|
||||
export const SITE_PORT = ADMIN + "/site";
|
||||
|
||||
/**
|
||||
* @name 服务端口-推广等级
|
||||
*/
|
||||
export const SPREAD_PORT = ADMIN + "/spread";
|
||||
/**
|
||||
* @name 服务端口-分享管理
|
||||
*/
|
||||
|
||||
export const SHARE_PORT = ADMIN + "/share";
|
||||
/**
|
||||
* @name 服务端口-邮箱管理
|
||||
*/
|
||||
|
||||
export const EMAIL_PORT = ADMIN + "/email";
|
||||
/**
|
||||
* @name 服务端口-活动管理
|
||||
*/
|
||||
|
||||
export const ACTIVITY_PORT = ADMIN + "/activity";
|
||||
/**
|
||||
* @name 服务端口-缓存管理
|
||||
*/
|
||||
|
||||
export const CACHE_PORT = SYSTEM_PORT + "/cache";
|
||||
|
||||
/**
|
||||
* @name 服务端口-财务管理
|
||||
*/
|
||||
//金币账户
|
||||
export const FINANCE_PORT = ADMIN + "/finance";
|
||||
export const ACCOUNT_PORT = FINANCE_PORT + "/account";
|
||||
//VIP
|
||||
|
||||
export const RECHARGE_PORT = FINANCE_PORT + "/recharge";
|
||||
export const ORDER_PORT = RECHARGE_PORT + "/order";
|
||||
export const PACKAGE_PORT = RECHARGE_PORT + "/package";
|
||||
|
||||
//渠道
|
||||
export const CHANNEL_PORT = ADMIN + "/channel";
|
||||
|
||||
@@ -1,22 +1,18 @@
|
||||
// ? 暂未使用,目前使用全局 Loading 来控制重复请求
|
||||
|
||||
import { CustomAxiosRequestConfig } from "../index";
|
||||
import qs from "qs";
|
||||
|
||||
// 声明一个 Map 用于存储每个请求的标识 和 取消函数
|
||||
|
||||
let pendingMap = new Map<string, AbortController>();
|
||||
|
||||
// 序列化参数
|
||||
|
||||
export const getPendingUrl = (config: CustomAxiosRequestConfig) =>
|
||||
[config.method, config.url, qs.stringify(config.data), qs.stringify(config.params)].join("&");
|
||||
|
||||
export class AxiosCanceler {
|
||||
/**
|
||||
* @description: 添加请求
|
||||
* @param {Object} config
|
||||
* @return void
|
||||
*/
|
||||
|
||||
addPending(config: CustomAxiosRequestConfig) {
|
||||
// 在请求开始前,对之前的请求做检查取消操作
|
||||
|
||||
this.removePending(config);
|
||||
const url = getPendingUrl(config);
|
||||
const controller = new AbortController();
|
||||
@@ -24,20 +20,15 @@ export class AxiosCanceler {
|
||||
pendingMap.set(url, controller);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 移除请求
|
||||
* @param {Object} config
|
||||
*/
|
||||
|
||||
removePending(config: CustomAxiosRequestConfig) {
|
||||
const url = getPendingUrl(config);
|
||||
// 如果在 pending 中存在当前请求标识,需要取消当前请求
|
||||
|
||||
const controller = pendingMap.get(url);
|
||||
controller && controller.abort();
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 清空所有pending
|
||||
*/
|
||||
|
||||
removeAllPending() {
|
||||
pendingMap.forEach(controller => {
|
||||
controller && controller.abort();
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
import { ElMessage } from "element-plus";
|
||||
|
||||
/**
|
||||
* @description: 校验网络请求状态码
|
||||
* @param {Number} status
|
||||
* @return void
|
||||
*/
|
||||
|
||||
export const checkStatus = (status: number) => {
|
||||
switch (status) {
|
||||
case 400:
|
||||
|
||||
@@ -13,29 +13,25 @@ export interface CustomAxiosRequestConfig extends InternalAxiosRequestConfig {
|
||||
}
|
||||
|
||||
const config = {
|
||||
// 默认地址请求地址,可在 .env.** 文件中修改
|
||||
|
||||
baseURL: import.meta.env.VITE_API_URL as string,
|
||||
// 设置超时时间
|
||||
|
||||
timeout: ResultEnum.TIMEOUT as number
|
||||
// 跨域时候允许携带凭证
|
||||
// withCredentials: true
|
||||
|
||||
|
||||
};
|
||||
|
||||
class RequestHttp {
|
||||
service: AxiosInstance;
|
||||
public constructor(config: AxiosRequestConfig) {
|
||||
// instantiation
|
||||
|
||||
this.service = axios.create(config);
|
||||
|
||||
/**
|
||||
* @description 请求拦截器
|
||||
* 客户端发送请求 -> [请求拦截器] -> 服务器
|
||||
* token校验(JWT) : 接受服务器返回的 token,存储到 vuex/pinia/本地储存当中
|
||||
*/
|
||||
|
||||
this.service.interceptors.request.use(
|
||||
(config: CustomAxiosRequestConfig) => {
|
||||
const userStore = useUserStore();
|
||||
// 当前请求不需要显示 loading,在 api 服务中通过指定的第三个参数: { noLoading: true } 来控制
|
||||
|
||||
|
||||
config.noLoading || showFullScreenLoading();
|
||||
if (config.headers && typeof config.headers.set === "function") {
|
||||
@@ -48,48 +44,44 @@ class RequestHttp {
|
||||
}
|
||||
);
|
||||
|
||||
/**
|
||||
* @description 响应拦截器
|
||||
* 服务器换返回信息 -> [拦截统一处理] -> 客户端JS获取到信息
|
||||
*/
|
||||
|
||||
this.service.interceptors.response.use(
|
||||
(response: AxiosResponse) => {
|
||||
const { data } = response;
|
||||
const userStore = useUserStore();
|
||||
tryHideFullScreenLoading();
|
||||
// 登陆失效
|
||||
const responseMessage = data.message ?? data.msg ?? "请求失败!";
|
||||
|
||||
if (data.code == ResultEnum.OVERDUE) {
|
||||
userStore.setToken("");
|
||||
router.replace(LOGIN_URL);
|
||||
ElMessage.error(data.msg);
|
||||
ElMessage.error(responseMessage);
|
||||
return Promise.reject(data);
|
||||
}
|
||||
// 全局错误信息拦截(防止下载文件的时候返回数据流,没有 code 直接报错)
|
||||
|
||||
if (data.code && data.code !== ResultEnum.SUCCESS) {
|
||||
ElMessage.error(data.message);
|
||||
ElMessage.error(responseMessage);
|
||||
return Promise.reject(data);
|
||||
}
|
||||
// 成功请求(在页面上除非特殊情况,否则不用处理失败逻辑)
|
||||
|
||||
return data;
|
||||
},
|
||||
async (error: AxiosError) => {
|
||||
const { response } = error;
|
||||
tryHideFullScreenLoading();
|
||||
// 请求超时 && 网络错误单独判断,没有 response
|
||||
|
||||
if (error.message.indexOf("timeout") !== -1) ElMessage.error("请求超时!请您稍后重试");
|
||||
if (error.message.indexOf("Network Error") !== -1) ElMessage.error("网络错误!请您稍后重试");
|
||||
// 根据服务器响应的错误状态码,做不同的处理
|
||||
|
||||
if (response) checkStatus(response.status);
|
||||
// 服务器结果都没有返回(可能服务器错误可能客户端断网),断网处理:可以跳转到断网页面
|
||||
|
||||
if (!window.navigator.onLine) router.replace("/500");
|
||||
return Promise.reject(error);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 常用请求方法封装
|
||||
*/
|
||||
|
||||
get<T>(url: string, params?: object, _object = {}): Promise<ResultData<T>> {
|
||||
return this.service.get(url, { params, ..._object });
|
||||
}
|
||||
|
||||
@@ -1,18 +1,14 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace DriveList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
a_id?: number;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
a_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
a_id: number;
|
||||
a_status: any;
|
||||
@@ -24,7 +20,5 @@ export namespace DriveList {
|
||||
description: any;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace ManageList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
a_id?: number;
|
||||
a_code: any;
|
||||
@@ -12,11 +10,9 @@ export namespace ManageList {
|
||||
a_config: any;
|
||||
a_status: any;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
a_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
a_id: number;
|
||||
a_code: any;
|
||||
@@ -27,7 +23,5 @@ export namespace ManageList {
|
||||
a_status: any;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,19 +1,15 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace ByList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
byrz_id?: number;
|
||||
byrz_mingzi: string;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
byrz_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
byrz_id?: number;
|
||||
byrz_mingzi: string;
|
||||
@@ -35,6 +31,5 @@ export namespace ByList {
|
||||
name: any;
|
||||
url: any;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,21 +1,17 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace ConfigList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
ggpz_id?: number;
|
||||
ggpz_code: string;
|
||||
ggpz_val: string;
|
||||
ggpz_description: string;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
ggpz_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
ggpz_id?: number;
|
||||
ggpz_code: string;
|
||||
@@ -23,6 +19,5 @@ export namespace ConfigList {
|
||||
ggpz_description: string;
|
||||
created_at: string;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,26 +1,21 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace GroupList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
ggfz_id?: number;
|
||||
ggfz_name: string;
|
||||
ggfz_code: string;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
ggfz_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
ggfz_id?: number;
|
||||
ggfz_name: string;
|
||||
ggfz_code: any;
|
||||
created_at: string;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,19 +1,15 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace LfList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
lf_id?: number;
|
||||
lf_mingzi: string;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
lf_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
lf_id?: number;
|
||||
lf_mingzi: string;
|
||||
@@ -38,6 +34,5 @@ export namespace LfList {
|
||||
name: any;
|
||||
url: any;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,34 +1,64 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
|
||||
export namespace adList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
ggfz_id?: any;
|
||||
}
|
||||
// 保存接口
|
||||
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 saveParams extends Partial<List> {}
|
||||
export interface delParams {
|
||||
gg_id?: string;
|
||||
a_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
export interface batchParams {
|
||||
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;
|
||||
ggfz_id: any;
|
||||
gg_lei_xing: any;
|
||||
gg_tu_pian: any;
|
||||
gg_wen_zi: any;
|
||||
gg_tiao_zhuan_di_zhi: any;
|
||||
created_at: string;
|
||||
ggfz_id?: any;
|
||||
ggfz_name?: any;
|
||||
gg_lei_xing?: any;
|
||||
gg_tu_pian?: any;
|
||||
gg_wen_zi?: any;
|
||||
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 namespace adList22 {
|
||||
@@ -54,7 +84,6 @@ export namespace adList22 {
|
||||
target_si_id?: any;
|
||||
a_description: any;
|
||||
}
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
page: 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";
|
||||
export namespace YxList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
yx_id?: number;
|
||||
yx_ming_zi: string;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
yx_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
yx_id?: number;
|
||||
yx_ming_zi: any;
|
||||
@@ -22,6 +18,5 @@ export namespace YxList {
|
||||
yx_tu_pian_url: any;
|
||||
created_at: string;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,18 +1,14 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace ZbList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
zb_id?: number;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
zb_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
zb_id?: number;
|
||||
zb_ming_zi: any;
|
||||
@@ -21,6 +17,5 @@ export namespace ZbList {
|
||||
zb_feng_mian: any;
|
||||
created_at: string;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,19 +1,15 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace ZyList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
gfzy_id?: number;
|
||||
gfzy_mingzi: string;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
gfzy_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
gfzy_id?: number;
|
||||
gfzy_mingzi: string;
|
||||
@@ -40,6 +36,5 @@ export namespace ZyList {
|
||||
name: any;
|
||||
url: any;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
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";
|
||||
export namespace ContentList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
ee_code?: string;
|
||||
ee_id?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
ec_id?: number;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
ec_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
ec_id: number;
|
||||
ec_from: any;
|
||||
@@ -27,7 +23,5 @@ export namespace ContentList {
|
||||
ee_id: any;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,18 +1,14 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace EventList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
ee_id?: number;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
ee_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
ee_id: number;
|
||||
ee_code: any;
|
||||
@@ -21,7 +17,5 @@ export namespace EventList {
|
||||
ee_describe: string;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,18 +1,14 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace AccountList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
mu_id?: number;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
mu_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
mu_id: string;
|
||||
uf_balance: any;
|
||||
@@ -23,6 +19,5 @@ export namespace AccountList {
|
||||
expire_vip_day: any;
|
||||
created_at: string;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,20 +1,15 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace TransactionList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
t_type?: any;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
ft_id?: number;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
ft_id?: string;
|
||||
}
|
||||
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
ft_id: number;
|
||||
mu_id: number;
|
||||
@@ -30,6 +25,5 @@ export namespace TransactionList {
|
||||
mu_email: any;
|
||||
created_at: string;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,21 +1,16 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace FeedbackList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
t_type?: any;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
rf_id?: number;
|
||||
rf_state: any;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
rf_id?: string;
|
||||
}
|
||||
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
rf_id: number;
|
||||
vo_id: number;
|
||||
@@ -30,7 +25,5 @@ export namespace FeedbackList {
|
||||
rf_contact: any;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,21 +1,17 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace OrderList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
vo_status?: any;
|
||||
created_at_start?: any;
|
||||
created_at_end?: any;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
vo_id?: number;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
vo_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
vo_id: number;
|
||||
mu_id: string;
|
||||
@@ -33,6 +29,5 @@ export namespace OrderList {
|
||||
mu_email: number;
|
||||
created_at: string;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace PackageList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
t_type?: any;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
vp_id?: number;
|
||||
vp_name: string;
|
||||
@@ -17,12 +15,9 @@ export namespace PackageList {
|
||||
vp_icon: string;
|
||||
package_sort: number;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
vp_id?: string;
|
||||
}
|
||||
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
vp_id: number;
|
||||
vp_name: string;
|
||||
@@ -37,6 +32,5 @@ export namespace PackageList {
|
||||
vp_sort: number;
|
||||
created_at: string;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,15 +1,11 @@
|
||||
// 请求响应参数(不包含data)
|
||||
export interface Result {
|
||||
code: string;
|
||||
message: string;
|
||||
message?: string;
|
||||
msg?: string;
|
||||
}
|
||||
|
||||
// 请求响应参数(包含data)
|
||||
export interface ResultData<T = any> extends Result {
|
||||
data: T;
|
||||
}
|
||||
|
||||
// 分页响应参数
|
||||
export interface ResPage<T> {
|
||||
item: T[];
|
||||
items: T[];
|
||||
@@ -18,42 +14,30 @@ export interface ResPage<T> {
|
||||
limit: number;
|
||||
total_pages: number;
|
||||
}
|
||||
|
||||
// 分页请求参数
|
||||
export interface ReqPage {
|
||||
page: number;
|
||||
limit: number;
|
||||
}
|
||||
// 分页请求参数
|
||||
export interface type {
|
||||
type: any;
|
||||
}
|
||||
|
||||
// 文件上传模块
|
||||
export namespace Upload {
|
||||
export interface ResFileUrl {
|
||||
fileUrl: string;
|
||||
}
|
||||
}
|
||||
// 文件下载模块
|
||||
export namespace Download {
|
||||
export interface ResFileUrl {
|
||||
type: number;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
// 执行任务
|
||||
export namespace Task {
|
||||
export interface ResFileUrl {
|
||||
msg_id: any;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
// 登录模块
|
||||
export namespace Login {
|
||||
export interface ReqLoginForm {
|
||||
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";
|
||||
export namespace fenLeiList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
xsfl_id?: number;
|
||||
xsfl_name: string;
|
||||
xsfl_source_code: string;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
xsfl_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
xsfl_id: any;
|
||||
xsfl_name: any;
|
||||
items: any;
|
||||
xsfl_source_code: string;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace NovelList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
t_type?: number;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
n_id?: number;
|
||||
n_name: string;
|
||||
@@ -18,18 +16,31 @@ export namespace NovelList {
|
||||
n_type: any;
|
||||
n_last_update: string;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
n_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
xsxq_tag: any;
|
||||
xsxq_id: any;
|
||||
items: any;
|
||||
https_cover_url: any;
|
||||
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 {}
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
export namespace LinkList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
sl_id?: number;
|
||||
sl_link: any;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
sl_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
sl_id: number;
|
||||
sl_link: any;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,25 +1,19 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace SpeechList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
ss_id?: number;
|
||||
ss_speech: any;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
ss_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
ss_id: number;
|
||||
ss_speech: any;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
// 保存删除响应接口
|
||||
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";
|
||||
export namespace GroupList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
sfg_id?: number;
|
||||
sfg_name: string;
|
||||
sfg_description: string;
|
||||
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
sfg_id?: string;
|
||||
}
|
||||
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
sfg_id?: number;
|
||||
sfg_name: string;
|
||||
sfg_description: string;
|
||||
}
|
||||
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,28 +1,21 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace SubjectFomartList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
sfg_id?: number | string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
sf_id?: number;
|
||||
sf_name: string;
|
||||
sf_description: string;
|
||||
|
||||
sf_id?: number | string;
|
||||
sf_val: string;
|
||||
sfg_id: number | string;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
sf_id?: string;
|
||||
}
|
||||
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
sf_id?: number;
|
||||
sf_name: string;
|
||||
sf_description: string;
|
||||
sf_id: number;
|
||||
sf_val: string;
|
||||
sfg_id: number;
|
||||
}
|
||||
|
||||
// 保存删除响应接口
|
||||
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";
|
||||
export namespace SpreadList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
rl_id?: number;
|
||||
rl_level: any;
|
||||
rl_commission_percentage: any;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
rl_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
rl_id: number;
|
||||
rl_level: any;
|
||||
rl_commission_percentage: any;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,21 +1,17 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace ReferralList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
re_id?: string;
|
||||
re_level?: string;
|
||||
have_referral_people?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
mu_id?: number;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
mu_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
mu_id: number;
|
||||
mu_username: any;
|
||||
@@ -27,7 +23,5 @@ export namespace ReferralList {
|
||||
rl_commission_percentage: any;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ export namespace adGroup {
|
||||
ag_name: any;
|
||||
ag_description: any;
|
||||
}
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
page: number;
|
||||
limit: number;
|
||||
@@ -46,7 +45,6 @@ export namespace adList {
|
||||
target_si_id?: any;
|
||||
a_description: any;
|
||||
}
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
page: number;
|
||||
limit: number;
|
||||
@@ -85,7 +83,6 @@ export namespace adTemplate {
|
||||
updated_at: string; // 更新时间
|
||||
a_type: any;
|
||||
}
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
page: number;
|
||||
limit: number;
|
||||
|
||||
@@ -1,32 +1,25 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace adminUserList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
au_name: number; // Y 用户名
|
||||
ar_id: number; // Y 角色ID
|
||||
au_name: string; // Y 用户名
|
||||
au_status: number | string; // Y 0=启用,1=禁用
|
||||
au_id?: number; // N 用户id[提交修改,不提交新增]
|
||||
au_pwd: string; // N 用户密码
|
||||
c_id: number; // N 公司id[超级管理员/总公司,设置用户,必须传送c_id也就是公司]
|
||||
au_pwd?: string; // N 用户密码
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
au_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
au_id: number; // Y 用户id
|
||||
au_name: string; // Y 用户名
|
||||
ar_id: number; // Y 角色ID
|
||||
c_id: number; // Y 公司ID
|
||||
created_at: string; // Y 添加时间
|
||||
updated_at: string; // Y 更新时间
|
||||
au_pwd: string; //
|
||||
au_status: number; // Y 0=启用,1=禁用
|
||||
created_at: string; // Y 添加时间
|
||||
updated_at: string | null; // Y 更新时间
|
||||
deleted_at: string | null;
|
||||
au_pwd: string;
|
||||
}
|
||||
|
||||
// 保存删除响应接口
|
||||
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,22 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace ConfigList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
sc_id?: number;
|
||||
sc_code: string;
|
||||
sc_val: string;
|
||||
sc_description: string;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
sc_id: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
sc_id: number;
|
||||
sc_code: string;
|
||||
sc_val: string;
|
||||
sc_description: string;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
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";
|
||||
export namespace GatherList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
cjpz_id: any;
|
||||
cjpz_val: string;
|
||||
cjpz_code: string;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
cjpz_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
cjpz_id: number;
|
||||
cjpz_val: string;
|
||||
@@ -22,6 +18,5 @@ export namespace GatherList {
|
||||
cjpz_description: string;
|
||||
created_at: string;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
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";
|
||||
export namespace taskPlan {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
pt_enable: number; // Y 任务开关,0=关闭,1=开启
|
||||
pt_limit: number; // Y 任务频率,单位:秒
|
||||
pt_id?: number; // Y ID
|
||||
pt_name: any;
|
||||
pt_name?: any;
|
||||
pt_code?: any;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
pt_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
pt_id: number; // Y id
|
||||
pt_enable: any; // Y 任务开关,0=关闭,1=开启
|
||||
pt_limit?: any | undefined; // Y 任务频率
|
||||
created_at: any; // Y 创建时间
|
||||
pt_name: any;
|
||||
pt_code?: any;
|
||||
pt_last_exec: any;
|
||||
}
|
||||
// map接口
|
||||
export interface ResMap {
|
||||
p_id: number;
|
||||
p_name: string;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ interface AdminRoleNode {
|
||||
an_pid: number;
|
||||
an_name: string;
|
||||
an_code: string;
|
||||
//children?: AdminRoleNode[];
|
||||
children?: AdminRoleNode[] | undefined;
|
||||
}
|
||||
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";
|
||||
export namespace fenLeiList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
fl_id?: number;
|
||||
fl_mingzi: string;
|
||||
fl_leixing: any;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
fl_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
fl_id: any;
|
||||
fl_mingzi: any;
|
||||
@@ -23,6 +19,5 @@ export namespace fenLeiList {
|
||||
fl_pid: any;
|
||||
children: any;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
export interface ResData extends ResultData {}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace VideoList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
sp_is_vip?: string;
|
||||
fl_id?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
sp_id?: number;
|
||||
sp_name: string;
|
||||
@@ -17,11 +15,9 @@ export namespace VideoList {
|
||||
v_wonderful_site_id: any;
|
||||
v_recommend_site_id: any;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
sp_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
sp_id: any;
|
||||
sp_name: string;
|
||||
@@ -30,12 +26,56 @@ export namespace VideoList {
|
||||
sp_fengmian: any;
|
||||
sp_biaoqian: any;
|
||||
sp_is_vip: any;
|
||||
sp_tui_jian_shi_jian?: any;
|
||||
sp_fengmian_url: any;
|
||||
sp_shichang: any;
|
||||
sp_source_code: any;
|
||||
created_at: 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 {}
|
||||
}
|
||||
|
||||
@@ -1,24 +1,19 @@
|
||||
import { ReqPage, ResultData } from "@/api/interface/index";
|
||||
export namespace nvYouList {
|
||||
// 查询接口
|
||||
export interface ReqParams extends ReqPage {
|
||||
key?: string;
|
||||
}
|
||||
// 保存接口
|
||||
export interface saveParams {
|
||||
ny_id?: number;
|
||||
}
|
||||
// 删除接口
|
||||
export interface delParams {
|
||||
ny_id?: string;
|
||||
}
|
||||
// 列表接口响应
|
||||
export interface ResList {
|
||||
ny_id: any;
|
||||
ny_cover_url: any;
|
||||
ny_pinyin: any;
|
||||
ny_name: any;
|
||||
}
|
||||
// 保存删除响应接口
|
||||
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 http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 活动列表
|
||||
*/
|
||||
export const getList = (params: DriveList.ReqParams) => {
|
||||
return http.get<ResPage<DriveList.ResList>>(ACTIVITY_PORT + `/drive/list`, params);
|
||||
};
|
||||
/**
|
||||
* @name 设置活动
|
||||
*/
|
||||
export const saveData = (params: DriveList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(ACTIVITY_PORT + `/manage/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除活动
|
||||
*/
|
||||
export const deleteItem = (params: DriveList.delParams) => {
|
||||
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 http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 分享链接列表
|
||||
*/
|
||||
export const getList = (params: ManageList.ReqParams) => {
|
||||
return http.get<ResPage<ManageList.ResList>>(ACTIVITY_PORT + `/manage/list`, params);
|
||||
};
|
||||
/**
|
||||
* @name 设置分享链接
|
||||
*/
|
||||
export const saveData = (params: ManageList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(ACTIVITY_PORT + `/manage/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除分享链接
|
||||
*/
|
||||
export const deleteItem = (params: ManageList.delParams) => {
|
||||
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 { getGuangGaoBaoYangRuZhuListApiUrl } from "@/api/config";
|
||||
|
||||
/**
|
||||
* @name 广告列表 -- by
|
||||
*/
|
||||
export const ListApi = (params: ByList.ReqParams) => {
|
||||
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 http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 广告配置列表
|
||||
*/
|
||||
export const getList = (params: ConfigList.ReqParams) => {
|
||||
return http.get<ResPage<ConfigList.ResList>>(getGuangGaoGgpzListApiUrl, params);
|
||||
};
|
||||
@@ -13,17 +10,6 @@ export const getList = (params: ConfigList.ReqParams) => {
|
||||
export const getAllList = () => {
|
||||
return http.get<ResPage<ConfigList.ResList>>(getGuangGaoGgpzListApiUrl, { limit: 1000, page: 1 });
|
||||
};
|
||||
/**
|
||||
* @name 设置广告配置
|
||||
*/
|
||||
export const saveData = (params: ConfigList.saveParams) => {
|
||||
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 http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 广告分组列表
|
||||
*/
|
||||
|
||||
export const getList = (params: GroupList.ReqParams) => {
|
||||
return http.get<ResPage<GroupList.ResList>>(getGuangGaoMainGroupListApiUrl, params);
|
||||
};
|
||||
@@ -13,24 +11,17 @@ export const getList = (params: GroupList.ReqParams) => {
|
||||
export const getAllList = () => {
|
||||
return http.get<ResPage<GroupList.ResList>>(getGuangGaoMainGroupListApiUrl, { limit: 1000, page: 1 });
|
||||
};
|
||||
/**
|
||||
* @name 设置广告分组
|
||||
*/
|
||||
|
||||
export const saveData = (params: GroupList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(getGuangGaoMainGroupSaveApiUrl, params);
|
||||
};
|
||||
|
||||
/**
|
||||
/**
|
||||
* @name 删除广告分组
|
||||
*/
|
||||
|
||||
export const deleteItem = (params: GroupList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>(getGuangGaoMainGroupDelApiUrl, params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 广告分组列表--全部数据
|
||||
*/
|
||||
|
||||
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 { getGuangGaoLouFengListApiUrl } from "@/api/config";
|
||||
|
||||
/**
|
||||
* @name 广告列表 -- lf
|
||||
*/
|
||||
|
||||
export const ListApi = (params: LfList.ReqParams) => {
|
||||
return http.get<ResPage<LfList.ResList>>(getGuangGaoLouFengListApiUrl, params);
|
||||
};
|
||||
|
||||
@@ -3,42 +3,22 @@ import { adList } from "@/api/interface/ad/list";
|
||||
import http from "@/api";
|
||||
import { getGuangGaoMainListApiUrl, getGuangGaoMainSaveApiUrl, getGuangGaoMainDelApiUrl } from "@/api/config";
|
||||
|
||||
/**
|
||||
* @name 广告列表
|
||||
*/
|
||||
|
||||
export const ListApi = (params: adList.ReqParams) => {
|
||||
return http.get<ResPage<adList.List>>(getGuangGaoMainListApiUrl, params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 新增广告
|
||||
*/
|
||||
|
||||
export const SaveApi = (params: adList.ReqParams) => {
|
||||
return http.post<ResPage<adList.List>>(getGuangGaoMainSaveApiUrl, params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 删除广告
|
||||
*/
|
||||
|
||||
export const DelApi = (params: adList.delParams) => {
|
||||
return http.post<ResPage<adList.List>>(getGuangGaoMainDelApiUrl, params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 批量设置广告
|
||||
*/
|
||||
|
||||
export const batchData = (params: adList.batchParams) => {
|
||||
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 { getGuangGaoYouXiListApiUrl } from "@/api/config";
|
||||
|
||||
/**
|
||||
* @name 广告列表 -- yx
|
||||
*/
|
||||
|
||||
export const ListApi = (params: YxList.ReqParams) => {
|
||||
return http.get<ResPage<YxList.ResList>>(getGuangGaoYouXiListApiUrl, params);
|
||||
};
|
||||
|
||||
@@ -3,9 +3,7 @@ import { ZbList } from "@/api/interface/ad/zb";
|
||||
import http from "@/api";
|
||||
import { getGuangGaoZhiBoListApiUrl } from "@/api/config";
|
||||
|
||||
/**
|
||||
* @name 广告列表 -- zb
|
||||
*/
|
||||
|
||||
export const ListApi = (params: ZbList.ReqParams) => {
|
||||
return http.get<ResPage<ZbList.ResList>>(getGuangGaoZhiBoListApiUrl, params);
|
||||
};
|
||||
|
||||
@@ -3,9 +3,7 @@ import { ZyList } from "@/api/interface/ad/zy";
|
||||
import http from "@/api";
|
||||
import { getGuangGaoGuanFangZiYingListApiUrl } from "@/api/config";
|
||||
|
||||
/**
|
||||
* @name 广告列表 -- zy
|
||||
*/
|
||||
|
||||
export const ListApi = (params: ZyList.ReqParams) => {
|
||||
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 http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 邮件事件列表
|
||||
*/
|
||||
export const getList = (params: ContentList.ReqParams) => {
|
||||
return http.get<ResPage<ContentList.ResList>>(EMAIL_PORT + `/content/list`, params);
|
||||
};
|
||||
/**
|
||||
* @name 设置邮件事件
|
||||
*/
|
||||
export const saveData = (params: ContentList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/content/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除邮件事件
|
||||
*/
|
||||
export const deleteItem = (params: ContentList.delParams) => {
|
||||
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 http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 邮件事件列表
|
||||
*/
|
||||
export const getList = (params: EventList.ReqParams) => {
|
||||
return http.get<ResPage<EventList.ResList>>(EMAIL_PORT + `/event/list`, params);
|
||||
};
|
||||
export const getAllList = () => {
|
||||
return http.get<ResPage<EventList.ResList>>(EMAIL_PORT + `/event/list`, { limit: 365, page: 1 });
|
||||
};
|
||||
/**
|
||||
* @name 设置邮件事件
|
||||
*/
|
||||
export const saveData = (params: EventList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/event/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除邮件事件
|
||||
*/
|
||||
export const deleteItem = (params: EventList.delParams) => {
|
||||
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 http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 资金账户列表
|
||||
*/
|
||||
export const getList = (params: AccountList.ReqParams) => {
|
||||
return http.get<ResPage<AccountList.ResList>>(ACCOUNT_PORT + `/list`, params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 设置资金账户
|
||||
*/
|
||||
export const saveData = (params: AccountList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(ACCOUNT_PORT + `/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除资金账户
|
||||
*/
|
||||
export const deleteItem = (params: AccountList.delParams) => {
|
||||
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 http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 资金账户流水列表
|
||||
*/
|
||||
export const getList = (params: TransactionList.ReqParams) => {
|
||||
return http.get<ResPage<TransactionList.ResList>>(ACCOUNT_PORT + `/transaction/list`, params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 设置资金账户流水
|
||||
*/
|
||||
export const saveData = (params: TransactionList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(ACCOUNT_PORT + `/transaction/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除资金账户流水
|
||||
*/
|
||||
export const deleteItem = (params: TransactionList.delParams) => {
|
||||
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 http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 充值反馈列表
|
||||
*/
|
||||
export const getList = (params: FeedbackList.ReqParams) => {
|
||||
return http.get<ResPage<FeedbackList.ResList>>(RECHARGE_PORT + `/feedback/list`, params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 设置充值反馈
|
||||
*/
|
||||
export const saveData = (params: FeedbackList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(RECHARGE_PORT + `/feedback/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除充值反馈
|
||||
*/
|
||||
export const deleteItem = (params: FeedbackList.delParams) => {
|
||||
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 http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 充值订单列表
|
||||
*/
|
||||
export const getList = (params: OrderList.ReqParams) => {
|
||||
return http.get<ResPage<OrderList.ResList>>(ORDER_PORT + `/list`, params);
|
||||
};
|
||||
/**
|
||||
* @name 设置充值订单
|
||||
*/
|
||||
export const saveData = (params: OrderList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(ORDER_PORT + `/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除充值订单
|
||||
*/
|
||||
export const deleteItem = (params: OrderList.delParams) => {
|
||||
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 http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 套餐列表
|
||||
*/
|
||||
export const getList = (params: PackageList.ReqParams) => {
|
||||
return http.get<ResPage<PackageList.ResList>>(PACKAGE_PORT + `/list`, params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 设置套餐
|
||||
*/
|
||||
export const saveData = (params: PackageList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(PACKAGE_PORT + `/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除套餐
|
||||
*/
|
||||
export const deleteItem = (params: PackageList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>(PACKAGE_PORT + `/del`, params);
|
||||
};
|
||||
|
||||
@@ -1,53 +1,34 @@
|
||||
import { Login } from "@/api/interface/index";
|
||||
import { USER_PORT } from "@/api/config/servicePort";
|
||||
import { loginApiUrl, getSystemUserInfoApiUrl } from "@/api/config";
|
||||
|
||||
import authMenuList from "@/assets/json/authMenuList.json";
|
||||
import authButtonList from "@/assets/json/authButtonList.json";
|
||||
import http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 登录模块
|
||||
*/
|
||||
// 用户登录 /admin/system/user/login
|
||||
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 = () => {
|
||||
return http.get<Login.ResLogin>(getSystemUserInfoApiUrl, {}, { loading: false }); // 正常 post json 请求 ==> application/json
|
||||
// return http.get<Menu.MenuOptions[]>(PORT1 + `/menu/list`, {}, { loading: false });
|
||||
// 如果想让菜单变为本地数据,注释上一行代码,并引入本地 authMenuList.json 数据
|
||||
return authMenuList;
|
||||
return http.get<Login.ResLogin>(getSystemUserInfoApiUrl, {}, { loading: false });
|
||||
};
|
||||
|
||||
// 获取菜单列表
|
||||
export const getAuthMenuListApi3 = () => {
|
||||
// return http.get<Menu.MenuOptions[]>(PORT1 + `/menu/list`, {}, { loading: false });
|
||||
// 如果想让菜单变为本地数据,注释上一行代码,并引入本地 authMenuList.json 数据
|
||||
return authMenuList;
|
||||
};
|
||||
|
||||
// 获取菜单列表
|
||||
export const getAuthMenuListApi = () => {
|
||||
// return http.get<Menu.MenuOptions[]>(PORT1 + `/menu/list`, {}, { loading: false });
|
||||
// 如果想让菜单变为本地数据,注释上一行代码,并引入本地 authMenuList.json 数据
|
||||
return authMenuList;
|
||||
};
|
||||
|
||||
// 获取按钮权限
|
||||
export const getAuthButtonListApi = () => {
|
||||
// return http.get<Login.ResAuthButtons>(PORT1 + `/auth/buttons`, {}, { loading: false });
|
||||
// 如果想让按钮权限变为本地数据,注释上一行代码,并引入本地 authButtonList.json 数据
|
||||
return authButtonList;
|
||||
};
|
||||
|
||||
// 用户退出登录
|
||||
export const logoutApi = () => {
|
||||
return http.post(USER_PORT + `/logout`);
|
||||
};
|
||||
// 修改密码添加
|
||||
export const updatePwd = params => {
|
||||
|
||||
export const updatePwd = (params: any) => {
|
||||
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);
|
||||
};
|
||||
@@ -8,16 +8,10 @@ import { Download, ResultData, ResPage, Task } from "@/api/interface/index";
|
||||
|
||||
import http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 表格模板下载
|
||||
*/
|
||||
export const dTemPlatDownLoad = (params: Download.ResFileUrl) => {
|
||||
return http.get<ResPage<ResultData>>(`/admin/domain/resource/template/download`, params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 异步任务执行进度消息
|
||||
*/
|
||||
export const manageCheck = (params: Task.ResFileUrl) => {
|
||||
return http.get<ResPage<ResultData>>(`/admin/system/msg/task/list`, params, { noLoading: true });
|
||||
};
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
import { ResPage, ResultData } from "@/api/interface/index";
|
||||
import { MiUserList } from "@/api/interface/miUser/list";
|
||||
import { MI_USER_PORT } from "@/api/config/servicePort";
|
||||
import http from "@/api";
|
||||
|
||||
/**
|
||||
* @name APP用户列表
|
||||
*/
|
||||
export const getList = (params: MiUserList.ReqParams) => {
|
||||
return http.get<ResPage<MiUserList.ResList>>(MI_USER_PORT + `/list`, params);
|
||||
};
|
||||
/**
|
||||
* @name 设置APP用户
|
||||
*/
|
||||
export const saveData = (params: MiUserList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(MI_USER_PORT + `/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除APP用户
|
||||
*/
|
||||
export const deleteItem = (params: MiUserList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>(MI_USER_PORT + `/del`, params);
|
||||
};
|
||||
@@ -1,25 +0,0 @@
|
||||
import { ResPage, ResultData } from "@/api/interface/index";
|
||||
import { ChapterList } from "@/api/interface/novel/chapter";
|
||||
import { NOVEL_PORT } from "@/api/config/servicePort";
|
||||
import { getXiaoZhangJieYouApiUrl } from "@/api/config";
|
||||
import http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 小说章节列表
|
||||
*/
|
||||
export const getList = (params: ChapterList.ReqParams) => {
|
||||
return http.get<ResPage<ChapterList.ResList>>(getXiaoZhangJieYouApiUrl, params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 设置小说章节
|
||||
*/
|
||||
export const saveData = (params: ChapterList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(NOVEL_PORT + `/chapter/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除小说章节
|
||||
*/
|
||||
export const deleteItem = (params: ChapterList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>(NOVEL_PORT + `/chapter/del`, params);
|
||||
};
|
||||
@@ -3,9 +3,6 @@ import { fenLeiList } from "@/api/interface/novel/fenlei";
|
||||
import { getXiaoShuoFenleiApiUrl } from "@/api/config";
|
||||
import http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 小说分类
|
||||
*/
|
||||
export const getList = (params: fenLeiList.ReqParams) => {
|
||||
return http.get<ResPage<fenLeiList.ResList>>(getXiaoShuoFenleiApiUrl, params);
|
||||
};
|
||||
|
||||
@@ -4,28 +4,16 @@ import { NOVEL_PORT } from "@/api/config/servicePort";
|
||||
import { getXiaoShuoMainListApiUrl } from "@/api/config";
|
||||
import http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 小说列表
|
||||
*/
|
||||
export const getList = (params: NovelList.ReqParams) => {
|
||||
return http.get<ResPage<NovelList.ResList>>(getXiaoShuoMainListApiUrl, params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 设置小说
|
||||
*/
|
||||
export const saveData = (params: NovelList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(NOVEL_PORT + `/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除小说
|
||||
*/
|
||||
export const deleteItem = (params: NovelList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>(NOVEL_PORT + `/del`, params);
|
||||
};
|
||||
/**
|
||||
* @name 批量设置 推荐等级
|
||||
*/
|
||||
export const levelSet = (params: NovelList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>(`/novel/level/set`, params);
|
||||
};
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
import { ResPage, ResultData } from "@/api/interface/index";
|
||||
import { SearchGroupList } from "@/api/interface/searchGroup/list";
|
||||
import { SEARCH_PORT } from "@/api/config/servicePort";
|
||||
import http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 搜索分组列表
|
||||
*/
|
||||
export const getList = (params: SearchGroupList.ReqParams) => {
|
||||
return http.get<ResPage<SearchGroupList.ResList>>(SEARCH_PORT + `/group/list`, params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 搜索分组列表
|
||||
*/
|
||||
export const getAllList = () => {
|
||||
return http.get<ResPage<SearchGroupList.ResList>>(SEARCH_PORT + `/group/list`, { limit: 1000, page: 1 });
|
||||
};
|
||||
/**
|
||||
* @name 设置搜索分组
|
||||
*/
|
||||
export const saveData = (params: SearchGroupList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(SEARCH_PORT + `/group/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除搜索分组
|
||||
*/
|
||||
export const deleteItem = (params: SearchGroupList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>(SEARCH_PORT + `/group/del`, params);
|
||||
};
|
||||
@@ -1,23 +0,0 @@
|
||||
import { ResPage, ResultData } from "@/api/interface/index";
|
||||
import { SearchKeyList } from "@/api/interface/searchKey/list";
|
||||
import { getKeyWordListApiUrl, getKeyWordSaveApiUrl, getKeyWordDelApiUrl } from "@/api/config";
|
||||
import http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 搜索词列表
|
||||
*/
|
||||
export const getList = (params: SearchKeyList.ReqParams) => {
|
||||
return http.get<ResPage<SearchKeyList.ResList>>(getKeyWordListApiUrl, params);
|
||||
};
|
||||
/**
|
||||
* @name 设置搜索词
|
||||
*/
|
||||
export const saveData = (params: SearchKeyList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(getKeyWordSaveApiUrl, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除搜索词
|
||||
*/
|
||||
export const deleteItem = (params: SearchKeyList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>(getKeyWordDelApiUrl, params);
|
||||
};
|
||||
@@ -3,21 +3,12 @@ import { LinkList } from "@/api/interface/share/link";
|
||||
import { SHARE_PORT } from "@/api/config/servicePort";
|
||||
import http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 分享链接列表
|
||||
*/
|
||||
export const getList = (params: LinkList.ReqParams) => {
|
||||
return http.get<ResPage<LinkList.ResList>>(SHARE_PORT + `/link/list`, params);
|
||||
};
|
||||
/**
|
||||
* @name 设置分享链接
|
||||
*/
|
||||
export const saveData = (params: LinkList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(SHARE_PORT + `/link/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除分享链接
|
||||
*/
|
||||
export const deleteItem = (params: LinkList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>(SHARE_PORT + `/link/del`, params);
|
||||
};
|
||||
|
||||
@@ -3,21 +3,12 @@ import { SpeechList } from "@/api/interface/share/speech";
|
||||
import { SHARE_PORT } from "@/api/config/servicePort";
|
||||
import http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 分享话术列表
|
||||
*/
|
||||
export const getList = (params: SpeechList.ReqParams) => {
|
||||
return http.get<ResPage<SpeechList.ResList>>(SHARE_PORT + `/speech/list`, params);
|
||||
};
|
||||
/**
|
||||
* @name 设置分享话术
|
||||
*/
|
||||
export const saveData = (params: SpeechList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>(SHARE_PORT + `/speech/save`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除分享话术
|
||||
*/
|
||||
export const deleteItem = (params: SpeechList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>(SHARE_PORT + `/speech/del`, params);
|
||||
};
|
||||
|
||||
@@ -3,59 +3,445 @@ import { SiteList } from "@/api/interface/site/list";
|
||||
import { SITE_PORT } from "@/api/config/servicePort";
|
||||
import http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 站点列表
|
||||
*/
|
||||
const normalizeLegacySiteItem = (item: SiteList.ResList): SiteList.ResList => ({
|
||||
...item,
|
||||
si_id: item.si_id ?? item.d_id,
|
||||
si_name: item.si_name ?? item.d_name,
|
||||
si_code: item.si_code ?? item.d_domain,
|
||||
si_url: item.si_url ?? item.d_domain,
|
||||
si_logo: item.si_logo ?? item.d_img_logo,
|
||||
si_website_bulletin: item.si_website_bulletin ?? item.d_description,
|
||||
si_statistical_code: item.si_statistical_code ?? item.d_statis
|
||||
});
|
||||
|
||||
const normalizeLegacySitePage = (data: ResPage<SiteList.ResList>): ResPage<SiteList.ResList> => {
|
||||
const normalizedItems = (data.items ?? data.item ?? []).map(normalizeLegacySiteItem);
|
||||
return {
|
||||
...data,
|
||||
items: normalizedItems,
|
||||
item: normalizedItems,
|
||||
total_pages: data.total_pages ?? Math.max(1, Math.ceil((data.total ?? normalizedItems.length) / (data.limit || 1)))
|
||||
};
|
||||
};
|
||||
|
||||
export const getList = (params: SiteList.ReqParams) => {
|
||||
return http.get<ResPage<SiteList.ResList>>(`/site/domain/list`, params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 站点列表
|
||||
*/
|
||||
export const getAllList = () => {
|
||||
return http.get<ResPage<SiteList.ResList>>(SITE_PORT + `/list`, { limit: 365, page: 1 });
|
||||
export const getDomainImportTemplate = () => {
|
||||
return http.get<SiteList.DomainImportTemplateData>(`/site/domain/import/template`);
|
||||
};
|
||||
|
||||
export const getDomainSupplyTemplate = () => {
|
||||
return http.get<SiteList.DomainSupplyTemplateData>(`/site/domain/supply/template`);
|
||||
};
|
||||
|
||||
export const runDomainSupplyBatch = (params: SiteList.DomainSupplyRunParams) => {
|
||||
const formData = new FormData();
|
||||
formData.append("excel_file", params.excel_file);
|
||||
formData.append("run_bootstrap", params.run_bootstrap ? "1" : "0");
|
||||
formData.append("bootstrap_run", params.bootstrap_run ?? "off");
|
||||
formData.append("force", params.force ? "1" : "0");
|
||||
return http.post<SiteList.DomainSupplyRunData & ResultData>(`/site/domain/supply/run`, formData);
|
||||
};
|
||||
|
||||
export const submitDomainSeoCopyAiGenerate = (params: SiteList.DomainSeoCopyAiSubmitParams) => {
|
||||
return http.post<SiteList.DomainSeoCopyAiSubmitData & ResultData>(`/site/domain/seo-copy/ai/submit`, params);
|
||||
};
|
||||
|
||||
export const optimizeDomainSeoCopyAiGenerate = (params: SiteList.DomainSeoCopyAiOptimizeParams) => {
|
||||
return http.post<SiteList.DomainSeoCopyAiOptimizeData & ResultData>(`/site/domain/seo-copy/ai/optimize`, params);
|
||||
};
|
||||
|
||||
export const getDomainSeoCopyAiProviderStatus = () => {
|
||||
return http.get<SiteList.DomainSeoCopyAiProviderStatusData>(`/site/domain/seo-copy/provider/status`);
|
||||
};
|
||||
|
||||
export const getDomainSeoCopyGenerationHistory = (params: { host?: string; limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainSeoCopyGenerationHistoryData>(`/site/domain/seo-copy/history`, params);
|
||||
};
|
||||
|
||||
export const getDomainSeoCopyGenerationHistoryDetail = (params: { host: string; job_id: string }) => {
|
||||
return http.get<SiteList.DomainSeoCopyGenerationHistoryDetailData>(`/site/domain/seo-copy/history/detail`, params);
|
||||
};
|
||||
|
||||
export const getDomainSeoCopyPublishedPreview = (params: { host: string }) => {
|
||||
return http.get<SiteList.DomainSeoCopyPublishedPreviewData>(`/site/domain/seo-copy/published/preview`, params);
|
||||
};
|
||||
|
||||
export const rollbackDomainSeoCopyHistory = (params: { host: string; job_id: string }) => {
|
||||
return http.post<SiteList.DomainSeoCopyHistoryRollbackData & ResultData>(`/site/domain/seo-copy/history/rollback`, params);
|
||||
};
|
||||
|
||||
export const getDomainSupplyRunSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainSupplyRunSummaryData>(`/site/domain/supply/run/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainSpiderMdSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainSpiderMdSummaryData>(`/site/domain/spider-md/summary`, params);
|
||||
};
|
||||
|
||||
export const runDomainSpiderMdGenerate = (params: SiteList.DomainSpiderMdRunParams = {}) => {
|
||||
return http.post<SiteList.DomainSpiderMdRunData & ResultData>(`/site/domain/spider-md/run`, params);
|
||||
};
|
||||
|
||||
export const getDomainSpiderCrawlWorkbenchSummary = (params: { run_limit?: number; anomaly_limit?: number; host?: string; window_hours?: number; bot_scope?: string; selected_bots?: string } = {}) => {
|
||||
return http.get<SiteList.DomainSpiderCrawlWorkbenchSummaryData>(`/site/domain/spider-crawl/workbench/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportRunSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportRunSummaryData>(`/site/domain/import/run/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportFailedQueue = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportFailedQueueData>(`/site/domain/import/failed/queue`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportRerunSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportRerunSummaryData>(`/site/domain/import/rerun/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportRemediationSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportRemediationSummaryData>(`/site/domain/import/remediation/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportSelfHealingSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportSelfHealingSummaryData>(`/site/domain/import/self-healing/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportHealthWorkbench = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportHealthWorkbenchData>(`/site/domain/import/health/workbench`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportManualAttentionQueue = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportManualAttentionQueueData>(`/site/domain/import/manual-attention/queue`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportManualAttentionHandleSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportManualAttentionHandleSummaryData>(`/site/domain/import/manual-attention/handle/summary`, params);
|
||||
};
|
||||
|
||||
export const runDomainImportManualAttentionHandle = (params: SiteList.DomainImportManualAttentionHandleRunParams) => {
|
||||
return http.post<SiteList.DomainImportManualAttentionHandleRunData & ResultData>(`/site/domain/import/manual-attention/handle/run`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportHealthWorkbenchSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportHealthWorkbenchSummaryData>(`/site/domain/import/health/workbench/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportHealthWorkbenchTrend = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportHealthWorkbenchTrendData>(`/site/domain/import/health/workbench/trend`, params);
|
||||
};
|
||||
|
||||
export const runDomainImportHealthWorkbenchSummary = (params: { limit?: number } = {}) => {
|
||||
return http.post<SiteList.DomainImportHealthWorkbenchRunData & ResultData>(`/site/domain/import/health/workbench/run`, params, {
|
||||
timeout: 10 * 60 * 1000
|
||||
});
|
||||
};
|
||||
|
||||
export const getDomainImportAsyncJobStatus = (params: { job_id: string; lines?: number }) => {
|
||||
return http.get<SiteList.DomainImportAsyncJobStatusData>(`/site/domain/import/task/status`, params);
|
||||
};
|
||||
|
||||
export const runDomainImportFailedQueue = (params: SiteList.DomainImportFailedQueueRunParams = {}) => {
|
||||
return http.post<SiteList.DomainImportFailedQueueRunData & ResultData>(`/site/domain/import/failed/queue/run`, params, {
|
||||
timeout: 10 * 60 * 1000
|
||||
});
|
||||
};
|
||||
|
||||
export const runDomainImportFailureRemediation = (params: SiteList.DomainImportFailureRemediationRunParams = {}) => {
|
||||
return http.post<SiteList.DomainImportFailureRemediationRunData & ResultData>(`/site/domain/import/remediation/run`, params, {
|
||||
timeout: 10 * 60 * 1000
|
||||
});
|
||||
};
|
||||
|
||||
export const runDomainImportSelfHealing = () => {
|
||||
return http.post<SiteList.DomainImportSelfHealingRunData & ResultData>(`/site/domain/import/self-healing/run`, {}, {
|
||||
timeout: 10 * 60 * 1000
|
||||
});
|
||||
};
|
||||
|
||||
export const getDomainImportHealthTrend = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportHealthTrendData>(`/site/domain/import/health/trend`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoSummaryData>(`/site/domain/external/seo/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoFailedQueue = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoFailedQueueData>(`/site/domain/external/seo/failed/queue`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoTrendSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoTrendData>(`/site/domain/external/seo/trend/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoProviderStatus = () => {
|
||||
return http.get<SiteList.DomainExternalSeoProviderStatusData>(`/site/domain/external/seo/provider/status`);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoCollectorStatus = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoCollectorStatusData>(`/site/domain/external/seo/collector/status`, params);
|
||||
};
|
||||
|
||||
export const uploadDomainExternalSeoProviderCredential = (params: FormData) => {
|
||||
return http.post<SiteList.DomainExternalSeoProviderCredentialUploadData & ResultData>(`/site/domain/external/seo/provider/credential/upload`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoSearchConsolePropertyMapTemplate = () => {
|
||||
return http.get<SiteList.DomainExternalSeoSearchConsolePropertyMapTemplateData>(`/site/domain/external/seo/search-console/property-map/template`);
|
||||
};
|
||||
|
||||
export const uploadDomainExternalSeoSearchConsolePropertyMap = (params: FormData) => {
|
||||
return http.post<SiteList.DomainExternalSeoSearchConsolePropertyMapUploadData & ResultData>(`/site/domain/external/seo/search-console/property-map/upload`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoSearchConsoleProviderPlan = (params: { days?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoSearchConsoleProviderPlanData>(`/site/domain/external/seo/search-console/provider/plan`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoSearchConsoleFetchSummary = (params: { days?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoSearchConsoleFetchData>(`/site/domain/external/seo/search-console/fetch/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoBaiduProviderPlan = () => {
|
||||
return http.get<SiteList.DomainExternalSeoBaiduProviderPlanData>(`/site/domain/external/seo/baidu/provider/plan`);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoBaiduPushSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoBaiduPushSummaryData>(`/site/domain/external/seo/baidu/push/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoBaiduPushAttentionQueue = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoBaiduPushAttentionQueueData>(`/site/domain/external/seo/baidu/push/attention`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoBaiduPushTrendSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoBaiduPushTrendData>(`/site/domain/external/seo/baidu/push/trend`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoBaiduPushTaskStatus = () => {
|
||||
return http.get<SiteList.DomainExternalSeoBaiduPushTaskStatusData>(`/site/domain/external/seo/baidu/push/task/status`);
|
||||
};
|
||||
|
||||
export const saveDomainExternalSeoBaiduPushTaskStatus = (params: { pt_enable: number; pt_limit: number }) => {
|
||||
return http.post<SiteList.DomainExternalSeoBaiduPushTaskStatusData>(`/site/domain/external/seo/baidu/push/task/status/save`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoBaiduFeedbackSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoBaiduFeedbackSummaryData>(`/site/domain/external/seo/baidu/feedback/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoSiteQueryProbeSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoSiteQueryProbeData>(`/site/domain/external/seo/site-query/probe/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoAizhanKeywordProbeSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoAizhanKeywordProbeData>(`/site/domain/external/seo/aizhan/keyword/probe/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoAizhanKeywordAttentionQueue = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoAizhanKeywordAttentionQueueData>(`/site/domain/external/seo/aizhan/keyword/attention`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoAizhanKeywordTrendSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoAizhanKeywordTrendData>(`/site/domain/external/seo/aizhan/keyword/trend`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoCollectHosts = (params: { limit?: number; include_wildcard?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoCollectHostsData>(`/site/domain/external/seo/collect/hosts`, params);
|
||||
};
|
||||
|
||||
export const saveDomainExternalSeoSnapshots = (params: Record<string, unknown>) => {
|
||||
return http.post<SiteList.DomainExternalSeoSnapshotSaveData>(`/site/domain/external/seo/snapshots/save`, params);
|
||||
};
|
||||
|
||||
export const validateDomainExternalSeoSnapshots = (params: Record<string, unknown>) => {
|
||||
return http.post<SiteList.DomainExternalSeoSnapshotValidateData>(`/site/domain/external/seo/snapshots/validate`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoSnapshotChecklist = () => {
|
||||
return http.get<SiteList.DomainExternalSeoSnapshotChecklistData>(`/site/domain/external/seo/snapshots/checklist`);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoSnapshotValidateRuns = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoSnapshotValidateRunData>(`/site/domain/external/seo/snapshots/validate/runs`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoIntegrationOverview = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoIntegrationOverviewData>(`/site/domain/external/seo/integration/overview`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoSnapshotRuns = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoSnapshotRunData>(`/site/domain/external/seo/snapshots/runs`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoSnapshotTrend = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoSnapshotTrendData>(`/site/domain/external/seo/snapshots/trend`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoSnapshotSummary = (params: { days?: number; limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoSnapshotSummaryData>(`/site/domain/external/seo/snapshots/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoKeywordMovementSummary = (params: { days?: number; limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoKeywordMovementSummaryData>(`/site/domain/external/seo/keyword/movement`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoIndexMovementSummary = (params: { days?: number; limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoIndexMovementSummaryData>(`/site/domain/external/seo/index/movement`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoOptimizationSuggestions = (params: { days?: number; limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoOptimizationSuggestionData>(`/site/domain/external/seo/optimization/suggestions`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoCnOverview = (params: { days?: number; limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoCnOverviewData>(`/site/domain/external/seo/cn/overview`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportExternalSeoClosure = (params: { days?: number; limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportExternalSeoClosureData>(`/site/domain/import/external-seo/closure`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportExternalSeoClosureActionSummary = (params: { limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportExternalSeoClosureActionSummaryData>(`/site/domain/import/external-seo/closure/action/summary`, params);
|
||||
};
|
||||
|
||||
export const runDomainImportExternalSeoClosureAction = (params: SiteList.DomainImportExternalSeoClosureActionRunParams) => {
|
||||
return http.post<SiteList.DomainImportExternalSeoClosureActionRunData & ResultData>(`/site/domain/import/external-seo/closure/action/run`, params);
|
||||
};
|
||||
|
||||
export const updateDomainImportExternalSeoClosureActionStatus = (params: SiteList.DomainImportExternalSeoClosureActionStatusParams) => {
|
||||
return http.post<SiteList.DomainImportExternalSeoClosureActionRunData & ResultData>(`/site/domain/import/external-seo/closure/action/status`, params);
|
||||
};
|
||||
|
||||
export const refreshDomainImportExternalSeoClosureActionResult = (params: { run_id?: string }) => {
|
||||
return http.post<SiteList.DomainImportExternalSeoClosureActionRunData & ResultData>(`/site/domain/import/external-seo/closure/action/refresh`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportExternalSeoClosureToday = (params: { days?: number; limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportExternalSeoClosureTodayData>(`/site/domain/import/external-seo/closure/today`, params);
|
||||
};
|
||||
|
||||
export const getDomainImportExternalSeoClosureHostHistory = (params: { host?: string; limit?: number } = {}) => {
|
||||
return http.get<SiteList.DomainImportExternalSeoClosureHostHistoryData>(`/site/domain/import/external-seo/closure/host/history`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoRealSummary = (params: { days?: number } = {}) => {
|
||||
return http.get<SiteList.DomainExternalSeoRealSummaryData>(`/site/domain/external/seo/real/summary`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoManualImportTemplate = () => {
|
||||
return http.get<SiteList.DomainExternalSeoManualImportTemplateData>(`/site/domain/external/seo/manual/template`);
|
||||
};
|
||||
|
||||
export const uploadDomainExternalSeoManualImport = (params: FormData) => {
|
||||
return http.post<SiteList.DomainExternalSeoManualImportUploadData & ResultData>(`/site/domain/external/seo/manual/upload`, params);
|
||||
};
|
||||
|
||||
export const getDomainExternalSeoManualImportRuns = () => {
|
||||
return http.get<SiteList.DomainExternalSeoManualImportRunData>(`/site/domain/external/seo/manual/runs`);
|
||||
};
|
||||
|
||||
export const getDomainAllList = (params: SiteList.ReqParams = { limit: 1000, page: 1 }) => {
|
||||
const query = {
|
||||
...params,
|
||||
limit: params.limit ?? 1000,
|
||||
page: params.page ?? 1
|
||||
};
|
||||
|
||||
return http.get<ResPage<SiteList.ResList>>(`/site/domain/list`, query).then(async res => {
|
||||
const normalizedFirstPage = normalizeLegacySitePage(res.data);
|
||||
const totalPages = normalizedFirstPage.total_pages ?? 1;
|
||||
const aggregatedItems = [...(normalizedFirstPage.items ?? [])];
|
||||
|
||||
for (let currentPage = (query.page ?? 1) + 1; currentPage <= totalPages; currentPage += 1) {
|
||||
const pageRes = await http.get<ResPage<SiteList.ResList>>(`/site/domain/list`, {
|
||||
...query,
|
||||
page: currentPage
|
||||
});
|
||||
const normalizedPage = normalizeLegacySitePage(pageRes.data);
|
||||
aggregatedItems.push(...(normalizedPage.items ?? []));
|
||||
}
|
||||
|
||||
return {
|
||||
...res,
|
||||
data: {
|
||||
...normalizedFirstPage,
|
||||
items: aggregatedItems,
|
||||
item: aggregatedItems,
|
||||
total: normalizedFirstPage.total ?? aggregatedItems.length,
|
||||
current_page: query.page ?? 1,
|
||||
total_pages: totalPages
|
||||
}
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
export const getAllList = () => {
|
||||
return http
|
||||
.get<ResPage<SiteList.ResList>>(`/site/domain/list`, { limit: 1000, page: 1 })
|
||||
.then(res => ({
|
||||
...res,
|
||||
data: normalizeLegacySitePage(res.data)
|
||||
}));
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 设置域名站点
|
||||
*/
|
||||
export const saveData = (params: SiteList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>('/site/domain/save', params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 上传域名站点
|
||||
*/
|
||||
export const uploadExcel = (params: SiteList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>('/site/domain/upload', params);
|
||||
export const applyDomainStrategyProfileBatch = (params: SiteList.BatchStrategyApplyParams) => {
|
||||
return http.post<ResultData & { updated_count?: number; strategy_profile?: SiteList.SeoStrategyProfile; updated_domains?: Array<{ d_id?: number; d_domain?: string; strategy_profile?: SiteList.SeoStrategyProfile }> }>('/site/domain/strategy/apply', params);
|
||||
};
|
||||
|
||||
export const getBootstrapEnvTemplateList = () => {
|
||||
return http.get<SiteList.BootstrapEnvTemplateListData>("/site/bootstrap/env/template/list");
|
||||
};
|
||||
|
||||
export const getBootstrapOpsSummary = () => {
|
||||
return http.get<SiteList.BootstrapOpsSummary>("/site/bootstrap/ops/summary");
|
||||
};
|
||||
|
||||
export const getBootstrapWorkbenchSummary = () => {
|
||||
return http.get<SiteList.BootstrapAdminWorkbenchSummary>("/site/bootstrap/workbench/summary");
|
||||
};
|
||||
|
||||
export const previewBootstrapEnvTemplate = (params: SiteList.BootstrapEnvTemplateActionParams) => {
|
||||
return http.post<SiteList.BootstrapEnvTemplateActionData>("/site/bootstrap/env/template/preview", params);
|
||||
};
|
||||
|
||||
export const applyBootstrapEnvTemplate = (params: SiteList.BootstrapEnvTemplateActionParams) => {
|
||||
return http.post<SiteList.BootstrapEnvTemplateActionData>("/site/bootstrap/env/template/apply", params);
|
||||
};
|
||||
|
||||
export const previewBootstrapEnvHistoryRestore = (params: SiteList.BootstrapEnvHistoryRestoreParams) => {
|
||||
return http.post<SiteList.BootstrapEnvTemplateActionData>("/site/bootstrap/env/template/history/restore/preview", params);
|
||||
};
|
||||
|
||||
export const applyBootstrapEnvHistoryRestore = (params: SiteList.BootstrapEnvHistoryRestoreParams) => {
|
||||
return http.post<SiteList.BootstrapEnvTemplateActionData>("/site/bootstrap/env/template/history/restore/apply", params);
|
||||
};
|
||||
|
||||
export const uploadExcel = (params: SiteList.saveParams) => {
|
||||
return http.post<SiteList.DomainUploadSummary & ResultData>('/site/domain/upload', params, {
|
||||
timeout: 10 * 60 * 1000
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 缓存清理
|
||||
*/
|
||||
export const cacheFlush = (params: SiteList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>('/system/cache/flush', params);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
|
||||
|
||||
* @name 部署项目
|
||||
*/
|
||||
export const buildItem = (params: SiteList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>(SITE_PORT + `/deploy/site`, params);
|
||||
};
|
||||
/**
|
||||
* @name 部署引导页
|
||||
*/
|
||||
export const landingItem = (params: SiteList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>(SITE_PORT + `/deploy/landing/page`, params);
|
||||
};
|
||||
/**
|
||||
* @name 删除站点
|
||||
*/
|
||||
export const deleteItem = (params: SiteList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>(SITE_PORT + `/del`, params);
|
||||
};
|
||||
|
||||
@@ -3,9 +3,6 @@ import { GroupList } from "@/api/interface/site/subject/fomart/group";
|
||||
import { getSubjectFomartGroupList } from "@/api/config";
|
||||
import http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 替换模板分组列表
|
||||
*/
|
||||
export const getList = (params: GroupList.ReqParams) => {
|
||||
return http.get<ResPage<GroupList.ResList>>(getSubjectFomartGroupList, params);
|
||||
};
|
||||
@@ -17,16 +14,10 @@ export const getSubjectFomartGroup = () => {
|
||||
return http.get<ResPage<GroupList.ResList>>(getSubjectFomartGroupList, { limit: 1000, page: 1 });
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 设置
|
||||
*/
|
||||
export const saveData = (params: GroupList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>('/site/subject/fomart/group/save', params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 删除
|
||||
*/
|
||||
export const deleteItem = (params: GroupList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>('/site/subject/fomart/group/del', params);
|
||||
};
|
||||
|
||||
@@ -3,9 +3,6 @@ import { SubjectFomartList } from "@/api/interface/site/subject/fomart/list";
|
||||
import { getSubjectFomartList } from "@/api/config";
|
||||
import http from "@/api";
|
||||
|
||||
/**
|
||||
* @name 模板列表
|
||||
*/
|
||||
export const getList = (params: SubjectFomartList.ReqParams) => {
|
||||
return http.get<ResPage<SubjectFomartList.ResList>>(getSubjectFomartList, params);
|
||||
};
|
||||
@@ -14,16 +11,10 @@ export const getAllList = () => {
|
||||
return http.get<ResPage<SubjectFomartList.ResList>>(getSubjectFomartList, { limit: 1000, page: 1 });
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 设置
|
||||
*/
|
||||
export const saveData = (params: SubjectFomartList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>('/site/subject/fomart/save', params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 删除
|
||||
*/
|
||||
export const deleteItem = (params: SubjectFomartList.delParams) => {
|
||||
return http.post<ResPage<ResultData>>('/site/subject/fomart/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