This commit is contained in:
make
2025-04-06 21:51:01 +08:00
commit 3792acd4c7
408 changed files with 42349 additions and 0 deletions

79
src/api/config/index.ts Normal file
View File

@@ -0,0 +1,79 @@
// 登录
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 getShipinFenleiApiUrl = "/shipin/fenlei/list";
// 视频列表 /shipin/main/list?page=1&limit=10&key=
export const getShipinMainListApiUrl = "/shipin/main/list";
// 视频列表 -批量设置每日推荐视频
export const getShipinMainMrtjApiUrl = "/shipin/main/mrtj";
export const getShipinMainVipApiUrl = "/shipin/main/vip";
// 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 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";

View File

@@ -0,0 +1,99 @@
// 后端微服务模块前缀
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";

View File

@@ -0,0 +1,47 @@
// ? 暂未使用,目前使用全局 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();
config.signal = controller.signal;
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();
});
pendingMap.clear();
}
}

View File

@@ -0,0 +1,43 @@
import { ElMessage } from "element-plus";
/**
* @description: 校验网络请求状态码
* @param {Number} status
* @return void
*/
export const checkStatus = (status: number) => {
switch (status) {
case 400:
ElMessage.error("请求失败!请您稍后重试");
break;
case 401:
ElMessage.error("登录失效!请您重新登录");
break;
case 403:
ElMessage.error("当前账号无权限访问!");
break;
case 404:
ElMessage.error("你所访问的资源不存在!");
break;
case 405:
ElMessage.error("请求方式错误!请您稍后重试");
break;
case 408:
ElMessage.error("请求超时!请您稍后重试");
break;
case 500:
ElMessage.error("服务异常!");
break;
case 502:
ElMessage.error("网关错误!");
break;
case 503:
ElMessage.error("服务不可用!");
break;
case 504:
ElMessage.error("网关超时!");
break;
default:
ElMessage.error("请求失败!");
}
};

110
src/api/index.ts Normal file
View File

@@ -0,0 +1,110 @@
import axios, { AxiosInstance, AxiosError, AxiosRequestConfig, InternalAxiosRequestConfig, AxiosResponse } from "axios";
import { showFullScreenLoading, tryHideFullScreenLoading } from "@/config/serviceLoading";
import { LOGIN_URL } from "@/config";
import { ElMessage } from "element-plus";
import { ResultData } from "@/api/interface";
import { ResultEnum } from "@/enums/httpEnum";
import { checkStatus } from "./helper/checkStatus";
import { useUserStore } from "@/stores/modules/user";
import router from "@/routers";
export interface CustomAxiosRequestConfig extends InternalAxiosRequestConfig {
noLoading?: boolean;
}
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") {
config.headers.set("admin-token", userStore.token);
}
return config;
},
(error: AxiosError) => {
return Promise.reject(error);
}
);
/**
* @description 响应拦截器
* 服务器换返回信息 -> [拦截统一处理] -> 客户端JS获取到信息
*/
this.service.interceptors.response.use(
(response: AxiosResponse) => {
const { data } = response;
const userStore = useUserStore();
tryHideFullScreenLoading();
// 登陆失效
if (data.code == ResultEnum.OVERDUE) {
userStore.setToken("");
router.replace(LOGIN_URL);
ElMessage.error(data.msg);
return Promise.reject(data);
}
// 全局错误信息拦截(防止下载文件的时候返回数据流,没有 code 直接报错)
if (data.code && data.code !== ResultEnum.SUCCESS) {
ElMessage.error(data.message);
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 });
}
post<T>(url: string, params?: object | string, _object = {}): Promise<ResultData<T>> {
return this.service.post(url, params, _object);
}
put<T>(url: string, params?: object, _object = {}): Promise<ResultData<T>> {
return this.service.put(url, params, _object);
}
delete<T>(url: string, params?: any, _object = {}): Promise<ResultData<T>> {
return this.service.delete(url, { params, ..._object });
}
download(url: string, params?: object, _object = {}): Promise<BlobPart> {
return this.service.post(url, params, { ..._object, responseType: "blob" });
}
}
export default new RequestHttp(config);

View File

@@ -0,0 +1,30 @@
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;
code: any;
name: any;
config: any;
free_vip_day: any;
value: any;
description: any;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,33 @@
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;
a_name: any;
a_config: any;
a_status: any;
}
// 删除接口
export interface delParams {
a_id?: string;
}
// 列表接口响应
export interface ResList {
a_id: number;
a_code: any;
a_name: any;
a_config: any;
description: any;
value: any;
a_status: any;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,40 @@
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;
byrz_nianling: any;
byrz_juli: any;
byrz_dianhua: any;
byrz_shijian: any;
byrz_jieshao: any;
byrz_jieshao_01: any;
byrz_jieshao_02: any;
byrz_diqu: any;
byrz_dizhi: any;
byrz_type: any;
byrz_cover: any;
byrz_cover_url: any;
byrz_img_url: any;
byrz_source_code: any;
created_at: string;
name: any;
url: any;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,28 @@
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;
ggpz_val: string;
ggpz_description: string;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,26 @@
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 {}
}

View File

@@ -0,0 +1,43 @@
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;
lf_avatar: any;
lf_avatar_url: any;
lf_nianling: any;
lf_shengao: any;
lf_tizhong: any;
lf_xiongwei: any;
lf_juli: any;
lf_dianhua: any;
lf_shijian: any;
lf_xiangmu: any;
lf_jieshao: any;
lf_diqu: any;
lf_dizhi: any;
lf_type: any;
lf_cover: any;
lf_cover_url: any;
lf_source_code: any;
created_at: string;
name: any;
url: any;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,102 @@
import { ReqPage, ResultData } from "@/api/interface/index";
export namespace adList {
// 查询接口
export interface ReqParams extends ReqPage {
key?: string;
}
// 保存接口
export interface saveParams {
gg_id?: number;
ggfz_id: any;
gg_lei_xing: any;
gg_tu_pian: any;
gg_wen_zi: any;
gg_tiao_zhuan_di_zhi: any;
}
// 删除接口
export interface delParams {
gg_id?: string;
}
// 列表接口响应
export interface ResList {
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;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}
export namespace adList22 {
export interface List {
a_id: any; // 广告 ID
ag_id: string; // 广告分组 ID
at_content: any; // 广告分组 ID
a_title: string; // 广告标题
a_content: any; // 广告内容
a_status: any; // 是否显示:0=不显示,1=显示
created_at?: string; // 添加时间
updated_at?: string; // 更新时间
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 ReqParams extends ReqPage {
page: number;
limit: number;
key?: string;
}
export interface delParams {
a_id?: string;
}
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 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;
}
}

View File

@@ -0,0 +1,27 @@
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;
yx_tu_pian: any;
yx_lei_xing: any;
yx_tu_pian_url: any;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,26 @@
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;
zb_dan_mu: any;
zb_feng_mian_url: any;
zb_feng_mian: any;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,45 @@
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;
gfzy_avatar: any;
gfzy_img: any;
gfzy_nianling: any;
gfzy_shengao: any;
gfzy_tizhong: any;
gfzy_xiongwei: any;
gfzy_juli: any;
gfzy_dianhua: any;
gfzy_shijian: any;
gfzy_xiangmu: any;
gfzy_jieshao: any;
gfzy_diqu: any;
gfzy_dizhi: any;
gfzy_type: any;
gfzy_cover: any;
gfzy_cover_url: any;
gfzy_img_url: any;
gfzy_source_code: any;
gfzy_xingbie: any;
created_at: string;
name: any;
url: any;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,47 @@
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 {}
}

View File

@@ -0,0 +1,29 @@
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 {}
}

View File

@@ -0,0 +1,33 @@
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;
ec_html: any;
ec_subject: any;
ec_text: any;
ec_to: any;
ec_date: any;
ee_code: any;
ee_id: any;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,27 @@
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;
ee_accept_email: any;
ee_content: string;
ee_describe: string;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,28 @@
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;
mu_nickname: any;
mu_username: number;
mu_email: any;
mu_is_vip: any;
expire_vip_day: any;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,35 @@
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;
ft_order_no: string;
tp_purpose_code: any;
ft_operation: any;
ft_amount: any;
ft_remaining_balance: any;
ft_description: string;
tp_purpose: any;
mu_nickname: any;
mu_username: any;
mu_email: any;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,36 @@
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;
rf_type: any;
rf_screenshot_detail: any;
rf_state: any;
vo_order_no: string;
vp_id: any;
vp_name: any;
rf_pay_time: any;
rf_description: string;
rf_contact: any;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,38 @@
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;
vp_name: string;
vo_status: any;
vo_price: any;
vo_vip_day: number;
vo_order_no: number;
vo_out_order_no: string;
vo_out_channel_code: number;
vo_out_business_type: number;
vo_success_at: number;
mu_nickname: number;
mu_username: number;
mu_email: number;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,42 @@
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;
vp_vip_day: any;
vp_status: any;
vp_tag_price: number;
vp_real_price: number;
vp_best_describe: string;
vp_icon: string;
package_sort: number;
}
// 删除接口
export interface delParams {
vp_id?: string;
}
// 列表接口响应
export interface ResList {
vp_id: number;
vp_name: string;
vp_vip_day: any;
vp_status: any;
vp_tag_price: number;
vp_real_price: number;
vp_best_describe: string;
vp_icon_detail: string;
vp_icon: any;
package_sort: any;
vp_sort: number;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

114
src/api/interface/index.ts Normal file
View File

@@ -0,0 +1,114 @@
// 请求响应参数不包含data
export interface Result {
code: string;
message: string;
}
// 请求响应参数包含data
export interface ResultData<T = any> extends Result {
data: T;
}
// 分页响应参数
export interface ResPage<T> {
item: T[];
items: T[];
page: number;
total: number;
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;
au_pwd: string;
}
export interface ResLogin {
admin_token: string;
}
export interface ResAuthButtons {
[key: string]: string[];
}
}
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 {}
}

View File

@@ -0,0 +1,43 @@
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 {}
}

View File

@@ -0,0 +1,25 @@
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 {}
}

View File

@@ -0,0 +1,35 @@
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 {}
}

View File

@@ -0,0 +1,47 @@
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 {}
}

View File

@@ -0,0 +1,30 @@
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 {}
}

View File

@@ -0,0 +1,26 @@
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 {}
}

View File

@@ -0,0 +1,35 @@
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;
n_author: string;
n_cover: any;
n_tags: any;
n_source_id: any;
n_at_status: any;
n_slide_status: any;
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;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,26 @@
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 {}
}

View File

@@ -0,0 +1,28 @@
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 {}
}

View File

@@ -0,0 +1,25 @@
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 {}
}

View File

@@ -0,0 +1,25 @@
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 {}
}

View File

@@ -0,0 +1,66 @@
import { ReqPage, ResultData } from "@/api/interface/index";
export namespace SiteList {
// 查询接口
export interface ReqParams extends ReqPage {
key?: string;
t_type?: any;
}
// 保存接口
export interface saveParams {
si_id?: number;
si_code: string;
si_status: any;
si_name: any;
si_url: any;
si_cinema: any;
si_email: any;
si_retrieve_email: any;
si_website_bulletin: any;
si_customer_service: any;
si_retrieve_page: any;
si_logo_url: any;
si_logo: any;
si_route_url: any;
si_statistical_code: any;
si_guide_statistical_code: any;
si_group_chat_address: any;
si_cdn_url: any;
si_template: any;
si_jenkins_url: any;
}
// 删除接口
export interface delParams {
si_id?: string;
}
export interface buildParams {
si_jenkins_url?: string;
}
// 列表接口响应
export interface ResList {
si_id: number;
si_code: string;
si_status: any;
si_name: any;
si_url: any;
si_cinema: any;
si_email: any;
si_retrieve_email: any;
si_website_bulletin: any;
si_customer_service: any;
si_retrieve_page: any;
si_group_chat_address: any;
si_logo_url: any;
si_statistical_code: any;
si_guide_statistical_code: any;
si_logo: any;
si_route_url: any;
created_at: string;
si_cdn_url: any;
si_template: any;
si_deploy_site_jenkins: any;
si_deploy_landing_jenkins: any;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,28 @@
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 {}
}

View File

@@ -0,0 +1,28 @@
import { ReqPage, ResultData } from "@/api/interface/index";
export namespace SubjectFomartList {
// 查询接口
export interface ReqParams extends ReqPage {
key?: string;
}
// 保存接口
export interface saveParams {
sf_id?: number;
sf_name: string;
sf_description: string;
}
// 删除接口
export interface delParams {
sf_id?: string;
}
// 列表接口响应
export interface ResList {
sf_id?: number;
sf_name: string;
sf_description: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,27 @@
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 {}
}

View File

@@ -0,0 +1,33 @@
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;
mu_nickname: any;
rl_level: any;
re_referral_num: any;
re_recharge_amount: any;
re_commission_amount: any;
rl_commission_percentage: any;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,94 @@
import { ReqPage } from "@/api/interface/index";
export namespace adGroup {
export interface List {
ag_id: number; // 广告分组 id
at_id: number; // 广告模板
ag_code: string; // 广告分组编码
ag_name: string; // 广告分组名
created_at: string; // 添加时间
updated_at: string; // 更新时间
ag_description: string; // 更新时间
}
export interface saveParams {
ag_id: number;
ag_name: any;
ag_description: any;
}
// 查询接口
export interface ReqParams extends ReqPage {
page: number;
limit: number;
key?: string;
}
}
export namespace adList {
export interface List {
a_id: any; // 广告 ID
ag_id: string; // 广告分组 ID
at_content: any; // 广告分组 ID
a_title: string; // 广告标题
a_content: any; // 广告内容
a_status: any; // 是否显示:0=不显示,1=显示
created_at?: string; // 添加时间
updated_at?: string; // 更新时间
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 ReqParams extends ReqPage {
page: number;
limit: number;
key?: string;
}
export interface delParams {
a_id?: string;
}
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 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;
}
}

View File

@@ -0,0 +1,32 @@
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_id?: number; // N 用户id[提交修改,不提交新增]
au_pwd: string; // N 用户密码
c_id: number; // N 公司id[超级管理员/总公司设置用户必须传送c_id也就是公司]
}
// 删除接口
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; //
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,31 @@
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 {}
}

View File

@@ -0,0 +1,23 @@
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 {}
}

View File

@@ -0,0 +1,33 @@
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 {}
}

View File

@@ -0,0 +1,41 @@
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 {}
}

View File

@@ -0,0 +1,27 @@
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 {}
}

View File

@@ -0,0 +1,24 @@
// 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;
}
}

View File

@@ -0,0 +1,23 @@
// 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;
}
}

View File

@@ -0,0 +1,27 @@
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;
cjpz_code: any;
cjpz_description: string;
created_at: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,21 @@
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 {}
}

View File

@@ -0,0 +1,36 @@
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 {}
}

View File

@@ -0,0 +1,30 @@
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 {}
}

View File

@@ -0,0 +1,32 @@
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 {}
}

View File

@@ -0,0 +1,34 @@
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;
}
// 删除接口
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_last_exec: any;
}
// map接口
export interface ResMap {
p_id: number;
p_name: string;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,30 @@
interface AdminRoleNode {
an_id: number;
an_pid: number;
an_name: string;
an_code: string;
//children?: AdminRoleNode[];
children?: AdminRoleNode[] | undefined;
}
export interface AdminRole {
admin_role_node: AdminRoleNode;
an_id: number;
ar_id: number;
an_name: string;
}
export interface WebRoute {
path: string;
name: string;
component?: string;
meta: {
an_id?: number;
icon: string;
title: string;
isLink: string;
isHide: boolean;
isFull: boolean;
isAffix: boolean;
isKeepAlive: boolean;
};
children?: WebRoute[];
}

View File

@@ -0,0 +1,44 @@
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 {}
}

View File

@@ -0,0 +1,40 @@
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 {}
}

View File

@@ -0,0 +1,28 @@
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;
items: any;
fl_leixing: any;
fl_pid: any;
children: any;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,41 @@
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;
sp_fengmian: any;
}
export interface batchParams {
sp_id?: any;
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;
fl_id: any;
sp_fangwen: any;
sp_fengmian: any;
sp_biaoqian: any;
sp_is_vip: any;
sp_fengmian_url: any;
sp_shichang: any;
sp_source_code: any;
created_at: any;
message: any;
}
// 保存删除响应接口
export interface ResData extends ResultData {}
}

View File

@@ -0,0 +1,24 @@
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 {}
}

View File

@@ -0,0 +1,34 @@
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 {}
}

View File

@@ -0,0 +1,23 @@
import { ResPage, ResultData } from "@/api/interface/index";
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);
};

View File

@@ -0,0 +1,23 @@
import { ResPage, ResultData } from "@/api/interface/index";
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);
};

11
src/api/modules/ad/by.ts Normal file
View File

@@ -0,0 +1,11 @@
import { ResPage } from "@/api/interface/index";
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);
};

View File

@@ -0,0 +1,29 @@
import { ResPage, ResultData } from "@/api/interface/index";
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);
};
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);
};

View File

@@ -0,0 +1,36 @@
import { ResPage, ResultData } from "@/api/interface/index";
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);
};
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 });
};

11
src/api/modules/ad/lf.ts Normal file
View File

@@ -0,0 +1,11 @@
import { ResPage } from "@/api/interface/index";
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);
};

View File

@@ -0,0 +1,44 @@
import { ResPage } from "@/api/interface/index";
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);
};

View File

@@ -0,0 +1,22 @@
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 });
};

11
src/api/modules/ad/yx.ts Normal file
View File

@@ -0,0 +1,11 @@
import { ResPage } from "@/api/interface/index";
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);
};

11
src/api/modules/ad/zb.ts Normal file
View File

@@ -0,0 +1,11 @@
import { ResPage } from "@/api/interface/index";
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);
};

11
src/api/modules/ad/zy.ts Normal file
View File

@@ -0,0 +1,11 @@
import { ResPage } from "@/api/interface/index";
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);
};

View File

@@ -0,0 +1,23 @@
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);
};

View File

@@ -0,0 +1,25 @@
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);
};

View File

@@ -0,0 +1,23 @@
import { ResPage, ResultData } from "@/api/interface/index";
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);
};

View File

@@ -0,0 +1,26 @@
import { ResPage, ResultData } from "@/api/interface/index";
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);
};

View File

@@ -0,0 +1,24 @@
import { ResPage, ResultData } from "@/api/interface/index";
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);
};

View File

@@ -0,0 +1,24 @@
import { ResPage, ResultData } from "@/api/interface/index";
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);
};

View File

@@ -0,0 +1,24 @@
import { ResPage, ResultData } from "@/api/interface/index";
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);
};

View File

@@ -0,0 +1,23 @@
import { ResPage, ResultData } from "@/api/interface/index";
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);
};

View File

@@ -0,0 +1,24 @@
import { ResPage, ResultData } from "@/api/interface/index";
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);
};

53
src/api/modules/login.ts Normal file
View File

@@ -0,0 +1,53 @@
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
};
// 获取用户信息 /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;
};
// 获取菜单列表
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 => {
return http.post(USER_PORT + `/pwd`, params);
};

View File

@@ -0,0 +1,30 @@
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);
};

View File

@@ -0,0 +1,15 @@
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 });
};

View File

@@ -0,0 +1,24 @@
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);
};

23
src/api/modules/map.ts Normal file
View File

@@ -0,0 +1,23 @@
import {
SYSTEM_PORT,
DOMAIN_PORT,
} from "@/api/config/servicePort";
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 });
};

View File

@@ -0,0 +1,23 @@
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);
};

View File

@@ -0,0 +1,25 @@
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);
};

View File

@@ -0,0 +1,15 @@
import { ResPage } from "@/api/interface/index";
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);
};
export const getAllList = () => {
return http.get<ResPage<fenLeiList.ResList>>(getXiaoShuoFenleiApiUrl, { limit: 1000, page: 1 });
};

View File

@@ -0,0 +1,31 @@
import { ResPage, ResultData } from "@/api/interface/index";
import { NovelList } from "@/api/interface/novel/list";
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);
};

View File

@@ -0,0 +1,30 @@
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);
};

View File

@@ -0,0 +1,23 @@
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);
};

View File

@@ -0,0 +1,23 @@
import { ResPage, ResultData } from "@/api/interface/index";
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);
};

View File

@@ -0,0 +1,23 @@
import { ResPage, ResultData } from "@/api/interface/index";
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);
};

View File

@@ -0,0 +1,53 @@
import { ResPage, ResultData } from "@/api/interface/index";
import { SiteList } from "@/api/interface/site/list";
import { SITE_PORT } from "@/api/config/servicePort";
import http from "@/api";
/**
* @name 站点列表
*/
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 });
};
/**
* @name 设置域名站点
*/
export const saveData = (params: SiteList.saveParams) => {
return http.post<ResPage<ResultData>>('/site/domain/save', params);
};
/**
* @name 上传域名站点
*/
export const uploadData = (params: SiteList.saveParams) => {
return http.post<ResPage<ResultData>>('/site/domain/upload', 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);
};

View File

@@ -0,0 +1,32 @@
import { ResPage,ResultData } from "@/api/interface/index";
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);
};
export const getAllList = () => {
return http.get<ResPage<GroupList.ResList>>(getSubjectFomartGroupList, { limit: 1000, page: 1 });
};
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);
};

View File

@@ -0,0 +1,29 @@
import { ResPage ,ResultData} from "@/api/interface/index";
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);
};
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);
};

View File

@@ -0,0 +1,41 @@
import { ResPage } from "@/api/interface/index";
import { SiteList } from "@/api/interface/site/list";
import { getTemplateListUrl } from "@/api/config";
import http from "@/api";
/**
* @name 模板列表
*/
export const getList = (params: SiteList.ReqParams) => {
return http.get<ResPage<SiteList.ResList>>(getTemplateListUrl, params);
// return http.get<ResPage<fenLeiList.ResList>>(getTkdargListUrl, { limit: 1000, page: 1 });
};
export const getAllList = () => {
return http.get<ResPage<SiteList.ResList>>(getTemplateListUrl, { limit: 1000, page: 1 });
};
/**
* @name 设置站点
*/
export const saveData = (params: SiteList.saveParams) => {
return http.post<ResPage<ResultData>>(SITE_PORT + `/save`, 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);
};

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