Compare commits

..

18 Commits

Author SHA1 Message Date
096e78da4c feat(ai): 更新 AI 服务配置和 API 网关设置
- 移除 AI_API_URL 配置项,统一使用直接 OpenAI 兼容网关地址
- 添加强制调用托管 OpenAI 兼容网关的配置选项
- 更新 BaseURL 初始值逻辑,支持 OpenAI 和 Ollama 两种提供商
- 修改 API 密钥认证错误提示信息,增加本地代理配置说明
- 更新模型加载和聊天请求的 API 调用基础 URL 配置
- 添加 OpenAI API 网关 Nginx 代理配置文件
- 配置 HTTPS 重定向和 SSL 安全设置
- 设置 CORS 跨域资源共享策略,支持 websoft.top 域名访问
2026-02-28 00:17:20 +08:00
2afd831d11 fix(config): 统一使用代理地址避免混合内容问题
- 移除生产环境中的硬编码HTTP API地址
- 统一使用/proxy路径进行API调用
- 避免HTTPS站点调用HTTP资源的混合内容安全问题
- 确保开发和生产环境的一致性配置
2026-02-27 23:58:19 +08:00
fb5e218b43 fix(ai): 修复AI服务提供商配置逻辑
- 修复baseURL初始化逻辑,确保Ollama原生API正确设置
- 恢复被注释的服务提供商选择下拉框组件
- 恢复被注释的BaseURL输入框组件
- 保持OpenAI API密钥输入框仅在OpenAI模式下显示
2026-02-27 23:36:17 +08:00
b272ad09ce refactor(proxy): 统一代理路径配置从 /ollama-proxy 到 /proxy
- 将 nginx 反向代理路径从 /ollama-proxy 修改为 /proxy
- 更新 .env.development 和 .env.example 中的 VITE_OLLAMA_API_URL 配置
- 修改 src/config/setting.ts 中的默认代理路径配置
- 更新 vite.config.ts 中的代理配置路径映射
- 优化代码格式化和多行语句的换行处理
- 调整打包配置中的文件命名逻辑格式
2026-02-27 22:59:04 +08:00
b40326c3a9 feat(ai): 添加 AI 助手功能支持多模型对话
- 集成 OpenAI 兼容网关和 Ollama 原生 API 接口
- 新增 AI 测试页面支持流式对话和模型切换
- 配置开发环境同源反向代理解决浏览器 CORS 问题
- 添加环境变量配置支持 AI API 和 Ollama 接口设置
- 实现聊天历史记录、中断请求和参数调节功能
- 提供 Nginx 反向代理配置文档用于生产环境部署
2026-02-27 22:15:41 +08:00
acec6570e1 refactor(setting): 优化系统设置组件的数据处理逻辑
- 将 updateSetting 替换为 updateSettingByKey 方法调用
- 统一设置表单中的 settingKey 字段值
- 重构 watch 数据监听逻辑,增强数据类型检查
- 改进表单初始化和数据回显流程
- 添加对 content 字段的 JSON 解析错误处理
- 标准化各设置组件的表单数据结构
- 优化数组和对象数据的查找匹配逻辑
2026-02-27 18:36:15 +08:00
f96d4d8530 feat(dealer): 添加经销商申请管理功能
- 新增经销商申请页面,支持申请列表展示和分页查询
- 添加搜索组件,支持按客户名称、联系电话、审核状态等条件筛选
- 实现申请状态管理,包括跟进中、已签约、已取消三种状态
- 开发编辑弹窗功能,支持新增和修改申请信息
- 添加审核功能,支持批量通过和单个驳回操作
- 集成跟进记录管理,可查看历史记录并添加新的跟进内容
- 完善表单验证,包含必填字段校验和格式验证
- 优化模型定义,在相关实体中增加头像、昵称、真实姓名等字段
- 调整商品模型,将isShow字段从数字类型改为布尔类型
- 新增分销佣金相关字段,支持固定金额和百分比两种分佣类型
2026-01-28 22:37:37 +08:00
b9d2648e6f fix(register): 优化经销商注册流程中的邀请关系绑定逻辑
- 引入用户状态管理store以获取用户信息
- 重构邀请关系绑定逻辑,支持异步重试机制
- 使用Promise缓存防止重复请求
- 从localStorage和用户状态中获取tenantId和userId
- 在注册成功后主动获取用户信息确保数据完整
- 注释掉开发环境API配置以避免冲突
2026-01-22 14:26:09 +08:00
49c8d40e75 feat(register): 完善经销商注册功能并优化邀请机制
- 将登录方法替换为注册方法,实现完整的用户注册流程
- 添加短信验证码发送失败的错误处理和提示
- 实现邀请推荐关系绑定功能,支持注册后自动建立推荐关系
- 优化URL参数解析,支持tenantId和inviter参数的灵活获取
- 添加倒计时清理逻辑,防止内存泄漏
- 更新表单验证规则,移除不必要的字段验证
- 在邀请链接中添加tenantId参数,确保未登录用户能正确识别租户
- 添加注册成功后的自动登录和推荐关系建立流程
2026-01-22 11:29:15 +08:00
585b2e95fa refactor(cms): 移除多处组件中的语言参数传递逻辑
- 注释掉了 select-data.vue 中的 lang 参数设置
- 注释掉了 cmsAd/index.vue 中的 lang 参数设置
- 注释掉了 cmsArticle/index.vue 中的 lang 参数设置
- 注释掉了 cmsNavigation/index.vue 中的两处 lang 参数条件判断逻辑
- 统一移除了语言环境值的语言参数传递功能
2026-01-21 16:27:26 +08:00
4f33d67d98 feat(ad): 添加广告位备份恢复功能
- 在搜索组件中增加备份和恢复按钮
- 实现广告位数据导出为Excel文件功能
- 创建Import组件实现Excel文件导入恢复功能
- 修复表格row-key从cmsAdId改为adId
- 添加导出加载状态控制避免重复操作
- 实现按当前搜索条件导出指定数据
- 支持通过Excel文件批量恢复广告位数据
- 导入时自动识别更新或新增操作
- 添加文件格式和大小验证
- 实现导入进度提示和错误处理
2026-01-21 16:16:14 +08:00
6c01151af1 remove(credit): 删除信用模块相关API接口和数据模型
- 删除失信被执行人相关API接口和服务方法
- 删除司法大数据相关API接口和服务方法
- 删除企业信息相关API接口和服务方法
- 删除竞争对手相关API接口和服务方法
- 删除法院公告相关API接口和服务方法
- 删除开庭公告相关API接口和服务方法
- 删除客户信息相关API接口和服务方法
- 清理信用模块相关的数据传输对象定义
- 移除所有信用模块的增删改查和导入导出功能
- 删除分页查询和列表查询的相关实现
2026-01-21 00:29:01 +08:00
82ac209505 style(api): 统一代码风格并修复语法问题
- 统一import语句的空格格式
- 修复分号缺失问题
- 调整函数参数换行格式以符合规范
- 删除多余空行保持代码整洁
- 修复字符串拼接的换行格式问题
2026-01-21 00:26:14 +08:00
7a37f66081 style(sdy): 格式化代码以符合团队样式指南
- 标准化组件标签的闭合方式和缩进
- 统一导入语句的空格和换行格式
- 调整对象属性的换行和对齐方式
- 规范条件渲染表达式的格式
- 优化长逻辑行的换行和可读性
- 统一箭头函数和三元运算符的格式
2026-01-13 16:55:38 +08:00
ea8c799b19 feat(credit): 企业详情页面增加子表数据导入功能
- 为18个信用相关API的导入方法添加companyId参数支持
- 在企业详情页面的各个子表tab中添加导入和刷新按钮
- 创建credit-company-related-import组件实现统一的导入弹窗
- 新增taxpayerCode字段到用户信息模型中
- 移除企业详情页面中冗余的描述项注释代码
- 实现基于企业ID或纳税人识别号的数据加载缓存机制
- 添加导入模板下载功能和文件类型验证
2026-01-05 16:36:12 +08:00
41f273193e feat(credit): 企业详情页面增加子表数据导入功能
- 为18个信用相关API的导入方法添加companyId参数支持
- 在企业详情页面的各个子表tab中添加导入和刷新按钮
- 创建credit-company-related-import组件实现统一的导入弹窗
- 新增taxpayerCode字段到用户信息模型中
- 移除企业详情页面中冗余的描述项注释代码
- 实现基于企业ID或纳税人识别号的数据加载缓存机制
- 添加导入模板下载功能和文件类型验证
2026-01-05 13:03:15 +08:00
b494a7d951 feat(credit): 企业详情页面增加子表数据导入功能
- 为18个信用相关API的导入方法添加companyId参数支持
- 在企业详情页面的各个子表tab中添加导入和刷新按钮
- 创建credit-company-related-import组件实现统一的导入弹窗
- 新增taxpayerCode字段到用户信息模型中
- 移除企业详情页面中冗余的描述项注释代码
- 实现基于企业ID或纳税人识别号的数据加载缓存机制
- 添加导入模板下载功能和文件类型验证
2026-01-05 12:44:16 +08:00
74b06dbc17 feat(credit): 企业详情页面增加子表数据导入功能
- 为18个信用相关API的导入方法添加companyId参数支持
- 在企业详情页面的各个子表tab中添加导入和刷新按钮
- 创建credit-company-related-import组件实现统一的导入弹窗
- 新增taxpayerCode字段到用户信息模型中
- 移除企业详情页面中冗余的描述项注释代码
- 实现基于企业ID或纳税人识别号的数据加载缓存机制
- 添加导入模板下载功能和文件类型验证
2026-01-05 12:17:59 +08:00
696 changed files with 53145 additions and 59368 deletions

View File

@@ -4,3 +4,13 @@ VITE_APP_NAME=后台管理(开发环境)
#VITE_API_URL=https://cms-api.s209.websoft.top/api
# AI 网关(开发环境建议走同源反代,避免浏览器 CORS
VITE_AI_API_URL=/ai-proxy
# Ollama 原生接口(开发环境建议走同源反代,避免浏览器 CORS
VITE_OLLAMA_API_URL=/proxy
# 如果 AI 网关启用了鉴权401 Not authenticated填入你的 Key仅供本机 dev server 使用)
# 不要加 VITE_ 前缀,避免被打包进前端
# AI_API_KEY=your_ai_api_key

View File

@@ -6,6 +6,19 @@ VITE_API_URL=https://your-api.com/api
VITE_SERVER_API_URL=https://your-server.com/api
VITE_DOMAIN=https://your-domain.com
VITE_FILE_SERVER=https://your-file-server.com
# AI 网关(OpenAI兼容)
# - 开发环境推荐走同源反代VITE_AI_API_URL=/ai-proxy配合 vite.config.ts
# - 生产环境可直连(需 AI 服务允许 CORS或在 Nginx 里配置 /ai-proxy 反代
VITE_AI_API_URL=https://ai-api.websoft.top/api/v1
# Ollama 原生接口(默认端口 11434
# - 开发环境推荐走同源反代VITE_OLLAMA_API_URL=/proxy配合 vite.config.ts
# - 生产环境不要直接用 http会混合内容被拦截建议 Nginx 反代成同源 https
VITE_OLLAMA_API_URL=http://47.119.165.234:11434
# 仅用于本地开发反代注入vite.config.ts 会读取并注入到 /ai-proxy 请求头)
# 不要加 VITE_ 前缀,避免被打包到前端产物里
AI_API_KEY=your_ai_api_key
# 租户配置
VITE_TENANT_ID=your_tenant_id

76
docs/AI_PROXY_NGINX.md Normal file
View File

@@ -0,0 +1,76 @@
# AI /ai-proxy Nginx 反代示例
前端页面 `src/views/ai/index.vue` 默认在开发环境使用 `AI_API_URL=/ai-proxy`,通过同源反代解决浏览器 CORS。
## 1) Vite 开发环境
项目已在 `vite.config.ts` 配置(默认目标可通过 `AI_PROXY_TARGET` 调整):
- `/ai-proxy/*` -> `https://ai-api.websoft.top/api/v1/*`
配合 `.env.development`
```bash
VITE_AI_API_URL=/ai-proxy
```
## 2) 生产环境Nginx 反代)
如果你的生产站点是 Nginx 托管静态文件,建议也加一条同源反代:
```nginx
location /ai-proxy/ {
proxy_pass https://ai-api.websoft.top/api/v1/;
proxy_http_version 1.1;
proxy_set_header Host ai-api.websoft.top;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# SSE/流式输出建议关闭缓存与缓冲
proxy_buffering off;
proxy_cache off;
# 如果你的 AI 网关开启了鉴权401 Not authenticated可以在反代层固定注入
# proxy_set_header Authorization "Bearer YOUR_AI_API_KEY";
}
```
然后把生产环境的 `VITE_AI_API_URL` 配置为:
```bash
VITE_AI_API_URL=/ai-proxy
```
## 2.1) Ollama 原生接口Nginx 反代)
如果你要直接用原生 Ollama`http://<host>:11434`),生产环境同样建议走同源反代(避免 CORS + https 混合内容):
```nginx
location /proxy/ {
proxy_pass http://47.119.165.234:11434/;
proxy_http_version 1.1;
proxy_set_header Host 47.119.165.234;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_cache off;
}
```
然后把 `VITE_OLLAMA_API_URL` 配置为:
```bash
VITE_OLLAMA_API_URL=/proxy
```
## 3) 关于 API Key
不建议把 Key 放在浏览器里。
推荐做法:
- Key 放在你自己的后端(或 Nginx里统一注入 / 鉴权;
- 前端只请求同源 `/ai-proxy/*`

52
proxy.conf Normal file
View File

@@ -0,0 +1,52 @@
server {
listen 80 ;
listen 443 ssl ;
server_name ai-api.websoft.top;
index index.php index.html index.htm default.php default.htm default.html;
access_log /www/sites/ai-api.websoft.top/log/access.log main;
error_log /www/sites/ai-api.websoft.top/log/error.log;
location ~ ^/(\.user.ini|\.htaccess|\.git|\.env|\.svn|\.project|LICENSE|README.md) {
return 404;
}
location ^~ /.well-known/acme-challenge {
allow all;
root /usr/share/nginx/html;
}
if ( $uri ~ "^/\.well-known/.*\.(php|jsp|py|js|css|lua|ts|go|zip|tar\.gz|rar|7z|sql|bak)$" ) {
return 403;
}
http2 on;
if ($scheme = http) {
return 301 https://$host$request_uri;
}
ssl_certificate /www/sites/ai-api.websoft.top/ssl/fullchain.pem;
ssl_certificate_key /www/sites/ai-api.websoft.top/ssl/privkey.pem;
ssl_protocols TLSv1.3 TLSv1.2;
ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:!aNULL:!eNULL:!EXPORT:!DSS:!DES:!RC4:!3DES:!MD5:!PSK:!KRB5:!SRP:!CAMELLIA:!SEED;
ssl_prefer_server_ciphers off;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
error_page 497 https://$host$request_uri;
proxy_set_header X-Forwarded-Proto https;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
# CORS: allow any *.websoft.top (and websoft.top) Origin; echo Origin for credentialed requests.
# Keep wildcard for non-websoft origins without credentials.
set $cors_origin "*";
set $cors_credentials "false";
if ($http_origin ~* '^https?://([a-z0-9-]+\.)*websoft\.top(?::[0-9]+)?$') {
set $cors_origin $http_origin;
set $cors_credentials "true";
}
add_header Access-Control-Allow-Origin $cors_origin always;
add_header Access-Control-Allow-Credentials $cors_credentials always;
add_header Access-Control-Allow-Methods "GET,POST,PUT,PATCH,DELETE,OPTIONS" always;
add_header Access-Control-Allow-Headers "$http_access_control_request_headers" always;
add_header Vary "Origin" always;
if ($request_method = OPTIONS) {
add_header Content-Length 0;
add_header Content-Type text/plain;
return 204;
}
include /www/sites/ai-api.websoft.top/proxy/*.conf;
}

35
proxy_.conf Normal file
View File

@@ -0,0 +1,35 @@
server {
listen 80 ;
listen 443 ssl ;
server_name ai-api.websoft.top;
index index.php index.html index.htm default.php default.htm default.html;
access_log /www/sites/ai-api.websoft.top/log/access.log main;
error_log /www/sites/ai-api.websoft.top/log/error.log;
location ~ ^/(\.user.ini|\.htaccess|\.git|\.env|\.svn|\.project|LICENSE|README.md) {
return 404;
}
location ^~ /.well-known/acme-challenge {
allow all;
root /usr/share/nginx/html;
}
if ( $uri ~ "^/\.well-known/.*\.(php|jsp|py|js|css|lua|ts|go|zip|tar\.gz|rar|7z|sql|bak)$" ) {
return 403;
}
http2 on;
if ($scheme = http) {
return 301 https://$host$request_uri;
}
ssl_certificate /www/sites/ai-api.websoft.top/ssl/fullchain.pem;
ssl_certificate_key /www/sites/ai-api.websoft.top/ssl/privkey.pem;
ssl_protocols TLSv1.3 TLSv1.2;
ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:!aNULL:!eNULL:!EXPORT:!DSS:!DES:!RC4:!3DES:!MD5:!PSK:!KRB5:!SRP:!CAMELLIA:!SEED;
ssl_prefer_server_ciphers off;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
error_page 497 https://$host$request_uri;
proxy_set_header X-Forwarded-Proto https;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
add_header Access-Control-Allow-Origin "*" always;
include /www/sites/ai-api.websoft.top/proxy/*.conf;
}

146
src/api/ai/ollama.ts Normal file
View File

@@ -0,0 +1,146 @@
import { OLLAMA_API_URL } from '@/config/setting';
export type OllamaRole = 'system' | 'user' | 'assistant' | 'tool';
export interface OllamaChatMessage {
role: OllamaRole;
content: string;
}
export interface OllamaModelTag {
name: string;
modified_at?: string;
size?: number;
digest?: string;
details?: any;
}
export interface OllamaTagsResponse {
models: OllamaModelTag[];
}
export interface OllamaChatRequest {
model: string;
messages: OllamaChatMessage[];
stream?: boolean;
options?: {
temperature?: number;
top_p?: number;
num_predict?: number;
};
}
export interface OllamaChatResponseChunk {
model?: string;
created_at?: string;
message?: { role: OllamaRole; content: string };
done?: boolean;
error?: string;
}
function normalizeBaseURL(baseURL: string) {
return baseURL.replace(/\/+$/, '');
}
export async function listOllamaModels(opts?: { baseURL?: string }) {
const baseURL = normalizeBaseURL(opts?.baseURL ?? OLLAMA_API_URL);
const res = await fetch(`${baseURL}/api/tags`, { method: 'GET' });
if (!res.ok) {
const text = await res.text().catch(() => '');
throw new Error(
`listOllamaModels failed: ${res.status} ${res.statusText}${text ? ` - ${text}` : ''}`
);
}
return (await res.json()) as OllamaTagsResponse;
}
export async function ollamaChat(
body: OllamaChatRequest,
opts?: { baseURL?: string; signal?: AbortSignal }
) {
const baseURL = normalizeBaseURL(opts?.baseURL ?? OLLAMA_API_URL);
const res = await fetch(`${baseURL}/api/chat`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ ...body, stream: false }),
signal: opts?.signal
});
if (!res.ok) {
const text = await res.text().catch(() => '');
throw new Error(
`ollamaChat failed: ${res.status} ${res.statusText}${text ? ` - ${text}` : ''}`
);
}
return (await res.json()) as OllamaChatResponseChunk;
}
/**
* Ollama native streaming is newline-delimited JSON objects, not SSE.
*/
export async function ollamaChatStream(
body: Omit<OllamaChatRequest, 'stream'>,
opts: {
baseURL?: string;
signal?: AbortSignal;
onDelta: (text: string) => void;
onDone?: () => void;
}
) {
const baseURL = normalizeBaseURL(opts.baseURL ?? OLLAMA_API_URL);
const res = await fetch(`${baseURL}/api/chat`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ ...body, stream: true }),
signal: opts.signal
});
if (!res.ok || !res.body) {
const text = await res.text().catch(() => '');
throw new Error(
`ollamaChatStream failed: ${res.status} ${res.statusText}${text ? ` - ${text}` : ''}`
);
}
const reader = res.body.getReader();
const decoder = new TextDecoder('utf-8');
let buffer = '';
while (true) {
const { value, done } = await reader.read();
if (done) break;
buffer += decoder.decode(value, { stream: true });
let idx = buffer.indexOf('\n');
while (idx !== -1) {
const line = buffer.slice(0, idx).trim();
buffer = buffer.slice(idx + 1);
idx = buffer.indexOf('\n');
if (!line) continue;
let json: OllamaChatResponseChunk;
try {
json = JSON.parse(line);
} catch {
continue;
}
if (json.error) {
throw new Error(json.error);
}
const delta = json.message?.content;
if (delta) {
opts.onDelta(delta);
}
if (json.done) {
opts.onDone?.();
return;
}
}
}
opts.onDone?.();
}

173
src/api/ai/openai.ts Normal file
View File

@@ -0,0 +1,173 @@
import { AI_API_URL } from '@/config/setting';
export type OpenAIRole = 'system' | 'user' | 'assistant' | 'tool';
export interface OpenAIChatMessage {
role: OpenAIRole;
content: string;
name?: string;
}
export interface OpenAIModel {
id: string;
object: string;
created?: number;
owned_by?: string;
name?: string;
}
export interface OpenAIListModelsResponse {
data: OpenAIModel[];
}
export interface OpenAIChatCompletionRequest {
model: string;
messages: OpenAIChatMessage[];
temperature?: number;
top_p?: number;
max_tokens?: number;
stream?: boolean;
}
export interface OpenAIChatCompletionChoice {
index: number;
message?: { role: OpenAIRole; content: string };
delta?: { role?: OpenAIRole; content?: string };
finish_reason?: string | null;
}
export interface OpenAIChatCompletionResponse {
id?: string;
object?: string;
created?: number;
model?: string;
choices: OpenAIChatCompletionChoice[];
}
function getHeaders(apiKey?: string) {
const headers: Record<string, string> = {
'Content-Type': 'application/json'
};
if (apiKey) {
const trimmed = apiKey.trim();
// Accept either raw token or "Bearer xxx".
headers.Authorization = /^bearer\s+/i.test(trimmed)
? trimmed
: `Bearer ${trimmed}`;
}
return headers;
}
function normalizeBaseURL(baseURL: string) {
return baseURL.replace(/\/+$/, '');
}
export async function listModels(opts?: { apiKey?: string; baseURL?: string }) {
const baseURL = normalizeBaseURL(opts?.baseURL ?? AI_API_URL);
const res = await fetch(`${baseURL}/models`, {
method: 'GET',
headers: getHeaders(opts?.apiKey)
});
if (!res.ok) {
const text = await res.text().catch(() => '');
throw new Error(
`listModels failed: ${res.status} ${res.statusText}${text ? ` - ${text}` : ''}`
);
}
return (await res.json()) as OpenAIListModelsResponse;
}
export async function chatCompletions(
body: OpenAIChatCompletionRequest,
opts?: { apiKey?: string; baseURL?: string; signal?: AbortSignal }
) {
const baseURL = normalizeBaseURL(opts?.baseURL ?? AI_API_URL);
const res = await fetch(`${baseURL}/chat/completions`, {
method: 'POST',
headers: getHeaders(opts?.apiKey),
body: JSON.stringify(body),
signal: opts?.signal
});
if (!res.ok) {
const text = await res.text().catch(() => '');
throw new Error(
`chatCompletions failed: ${res.status} ${res.statusText}${text ? ` - ${text}` : ''}`
);
}
return (await res.json()) as OpenAIChatCompletionResponse;
}
/**
* Stream OpenAI-compatible SSE (`stream: true`) and emit incremental tokens.
* Most gateways (Open-WebUI / LiteLLM / Ollama OpenAI proxy) follow:
* data: { choices: [{ delta: { content: "..." } }] }
* data: [DONE]
*/
export async function chatCompletionsStream(
body: Omit<OpenAIChatCompletionRequest, 'stream'>,
opts: {
apiKey?: string;
baseURL?: string;
signal?: AbortSignal;
onDelta: (text: string) => void;
onDone?: () => void;
}
) {
const baseURL = normalizeBaseURL(opts.baseURL ?? AI_API_URL);
const res = await fetch(`${baseURL}/chat/completions`, {
method: 'POST',
headers: getHeaders(opts.apiKey),
body: JSON.stringify({ ...body, stream: true }),
signal: opts.signal
});
if (!res.ok || !res.body) {
const text = await res.text().catch(() => '');
throw new Error(
`chatCompletionsStream failed: ${res.status} ${res.statusText}${text ? ` - ${text}` : ''}`
);
}
const reader = res.body.getReader();
const decoder = new TextDecoder('utf-8');
let buffer = '';
while (true) {
const { value, done } = await reader.read();
if (done) break;
buffer += decoder.decode(value, { stream: true });
// SSE events are separated by blank lines.
let idx = buffer.indexOf('\n\n');
while (idx !== -1) {
const rawEvent = buffer.slice(0, idx);
buffer = buffer.slice(idx + 2);
idx = buffer.indexOf('\n\n');
const lines = rawEvent
.split('\n')
.map((l) => l.trim())
.filter(Boolean);
for (const line of lines) {
if (!line.startsWith('data:')) continue;
const data = line.slice(5).trim();
if (!data) continue;
if (data === '[DONE]') {
opts.onDone?.();
return;
}
try {
const json = JSON.parse(data) as OpenAIChatCompletionResponse;
const delta = json.choices?.[0]?.delta?.content;
if (delta) {
opts.onDelta(delta);
}
} catch {
// Ignore malformed chunks
}
}
}
}
opts.onDone?.();
}

View File

@@ -1,7 +1,7 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import { MODULES_API_URL } from '@/config/setting';
import {ShopOrder, ShopOrderParam} from "@/api/shop/shopOrder/model";
import { ShopOrder, ShopOrderParam } from '@/api/shop/shopOrder/model';
/**
* 分页查询百色中学-捐款记录
@@ -19,7 +19,6 @@ export async function pageBszxOrder(params: ShopOrderParam) {
return Promise.reject(new Error(res.data.message));
}
/**
* 统计订单总金额(只统计有效订单)
*/

View File

@@ -2,7 +2,7 @@ import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { BszxPay, BszxPayParam } from './model';
import { MODULES_API_URL } from '@/config/setting';
import {ShopOrder} from "@/api/shop/shopOrder/model";
import { ShopOrder } from '@/api/shop/shopOrder/model';
/**
* 分页查询百色中学-捐款记录

View File

@@ -2,7 +2,7 @@ import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { BszxPayRanking, BszxPayRankingParam } from './model';
import { MODULES_API_URL } from '@/config/setting';
import {BszxClass, BszxClassParam} from "@/api/bszx/bszxClass/model";
import { BszxClass, BszxClassParam } from '@/api/bszx/bszxClass/model';
/**
* 分页查询百色中学-捐款排行
@@ -62,8 +62,6 @@ export async function ranking2(params?: BszxClassParam) {
return Promise.reject(new Error(res.data.message));
}
/**
* 添加百色中学-捐款排行
*/

View File

@@ -78,7 +78,9 @@ export async function removeClinicAppointment(id?: number) {
/**
* 批量删除挂号
*/
export async function removeBatchClinicAppointment(data: (number | undefined)[]) {
export async function removeBatchClinicAppointment(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/clinic/clinic-appointment/batch',
{

View File

@@ -78,7 +78,9 @@ export async function removeClinicDoctorApply(id?: number) {
/**
* 批量删除医生入驻申请
*/
export async function removeBatchClinicDoctorApply(data: (number | undefined)[]) {
export async function removeBatchClinicDoctorApply(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/clinic/clinic-doctor-apply/batch',
{

View File

@@ -1,17 +1,21 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { ClinicDoctorMedicalRecord, ClinicDoctorMedicalRecordParam } from './model';
import type {
ClinicDoctorMedicalRecord,
ClinicDoctorMedicalRecordParam
} from './model';
/**
* 分页查询医疗记录
*/
export async function pageClinicDoctorMedicalRecord(params: ClinicDoctorMedicalRecordParam) {
const res = await request.get<ApiResult<PageResult<ClinicDoctorMedicalRecord>>>(
'/clinic/clinic-doctor-medical-record/page',
{
export async function pageClinicDoctorMedicalRecord(
params: ClinicDoctorMedicalRecordParam
) {
const res = await request.get<
ApiResult<PageResult<ClinicDoctorMedicalRecord>>
>('/clinic/clinic-doctor-medical-record/page', {
params
}
);
});
if (res.data.code === 0) {
return res.data.data;
}
@@ -21,7 +25,9 @@ export async function pageClinicDoctorMedicalRecord(params: ClinicDoctorMedicalR
/**
* 查询医疗记录列表
*/
export async function listClinicDoctorMedicalRecord(params?: ClinicDoctorMedicalRecordParam) {
export async function listClinicDoctorMedicalRecord(
params?: ClinicDoctorMedicalRecordParam
) {
const res = await request.get<ApiResult<ClinicDoctorMedicalRecord[]>>(
'/clinic/clinic-doctor-medical-record',
{
@@ -37,7 +43,9 @@ export async function listClinicDoctorMedicalRecord(params?: ClinicDoctorMedical
/**
* 添加医疗记录
*/
export async function addClinicDoctorMedicalRecord(data: ClinicDoctorMedicalRecord) {
export async function addClinicDoctorMedicalRecord(
data: ClinicDoctorMedicalRecord
) {
const res = await request.post<ApiResult<unknown>>(
'/clinic/clinic-doctor-medical-record',
data
@@ -51,7 +59,9 @@ export async function addClinicDoctorMedicalRecord(data: ClinicDoctorMedicalReco
/**
* 修改医疗记录
*/
export async function updateClinicDoctorMedicalRecord(data: ClinicDoctorMedicalRecord) {
export async function updateClinicDoctorMedicalRecord(
data: ClinicDoctorMedicalRecord
) {
const res = await request.put<ApiResult<unknown>>(
'/clinic/clinic-doctor-medical-record',
data
@@ -78,7 +88,9 @@ export async function removeClinicDoctorMedicalRecord(id?: number) {
/**
* 批量删除医疗记录
*/
export async function removeBatchClinicDoctorMedicalRecord(data: (number | undefined)[]) {
export async function removeBatchClinicDoctorMedicalRecord(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/clinic/clinic-doctor-medical-record/batch',
{

View File

@@ -78,7 +78,9 @@ export async function removeClinicDoctorUser(id?: number) {
/**
* 批量删除分销商用户记录表
*/
export async function removeBatchClinicDoctorUser(data: (number | undefined)[]) {
export async function removeBatchClinicDoctorUser(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/clinic/clinic-doctor-user/batch',
{

View File

@@ -5,7 +5,9 @@ import type { ClinicMedicalHistory, ClinicMedicalHistoryParam } from './model';
/**
* 分页查询病例
*/
export async function pageClinicMedicalHistory(params: ClinicMedicalHistoryParam) {
export async function pageClinicMedicalHistory(
params: ClinicMedicalHistoryParam
) {
const res = await request.get<ApiResult<PageResult<ClinicMedicalHistory>>>(
'/clinic/clinic-medical-history/page',
{
@@ -21,7 +23,9 @@ export async function pageClinicMedicalHistory(params: ClinicMedicalHistoryParam
/**
* 查询病例列表
*/
export async function listClinicMedicalHistory(params?: ClinicMedicalHistoryParam) {
export async function listClinicMedicalHistory(
params?: ClinicMedicalHistoryParam
) {
const res = await request.get<ApiResult<ClinicMedicalHistory[]>>(
'/clinic/clinic-medical-history',
{
@@ -78,7 +82,9 @@ export async function removeClinicMedicalHistory(id?: number) {
/**
* 批量删除病例
*/
export async function removeBatchClinicMedicalHistory(data: (number | undefined)[]) {
export async function removeBatchClinicMedicalHistory(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/clinic/clinic-medical-history/batch',
{

View File

@@ -5,7 +5,9 @@ import type { ClinicMedicineInout, ClinicMedicineInoutParam } from './model';
/**
* 分页查询出入库
*/
export async function pageClinicMedicineInout(params: ClinicMedicineInoutParam) {
export async function pageClinicMedicineInout(
params: ClinicMedicineInoutParam
) {
const res = await request.get<ApiResult<PageResult<ClinicMedicineInout>>>(
'/clinic/clinic-medicine-inout/page',
{
@@ -21,7 +23,9 @@ export async function pageClinicMedicineInout(params: ClinicMedicineInoutParam)
/**
* 查询出入库列表
*/
export async function listClinicMedicineInout(params?: ClinicMedicineInoutParam) {
export async function listClinicMedicineInout(
params?: ClinicMedicineInoutParam
) {
const res = await request.get<ApiResult<ClinicMedicineInout[]>>(
'/clinic/clinic-medicine-inout',
{
@@ -78,7 +82,9 @@ export async function removeClinicMedicineInout(id?: number) {
/**
* 批量删除出入库
*/
export async function removeBatchClinicMedicineInout(data: (number | undefined)[]) {
export async function removeBatchClinicMedicineInout(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/clinic/clinic-medicine-inout/batch',
{

View File

@@ -5,7 +5,9 @@ import type { ClinicMedicineStock, ClinicMedicineStockParam } from './model';
/**
* 分页查询药品库存
*/
export async function pageClinicMedicineStock(params: ClinicMedicineStockParam) {
export async function pageClinicMedicineStock(
params: ClinicMedicineStockParam
) {
const res = await request.get<ApiResult<PageResult<ClinicMedicineStock>>>(
'/clinic/clinic-medicine-stock/page',
{
@@ -21,7 +23,9 @@ export async function pageClinicMedicineStock(params: ClinicMedicineStockParam)
/**
* 查询药品库存列表
*/
export async function listClinicMedicineStock(params?: ClinicMedicineStockParam) {
export async function listClinicMedicineStock(
params?: ClinicMedicineStockParam
) {
const res = await request.get<ApiResult<ClinicMedicineStock[]>>(
'/clinic/clinic-medicine-stock',
{
@@ -78,7 +82,9 @@ export async function removeClinicMedicineStock(id?: number) {
/**
* 批量删除药品库存
*/
export async function removeBatchClinicMedicineStock(data: (number | undefined)[]) {
export async function removeBatchClinicMedicineStock(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/clinic/clinic-medicine-stock/batch',
{

View File

@@ -78,7 +78,9 @@ export async function removeClinicPatientUser(id?: number) {
/**
* 批量删除患者
*/
export async function removeBatchClinicPatientUser(data: (number | undefined)[]) {
export async function removeBatchClinicPatientUser(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/clinic/clinic-patient-user/batch',
{

View File

@@ -84,7 +84,9 @@ export async function removeClinicPrescription(id?: number) {
* 批量删除处方主表
*/
export async function removeBatchClinicPrescription(data: (number | undefined)[]) {
export async function removeBatchClinicPrescription(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/clinic/clinic-prescription/batch',
{

View File

@@ -1,12 +1,17 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { ClinicPrescriptionItem, ClinicPrescriptionItemParam } from './model';
import type {
ClinicPrescriptionItem,
ClinicPrescriptionItemParam
} from './model';
/**
* 分页查询处方明细表
*/
export async function pageClinicPrescriptionItem(params: ClinicPrescriptionItemParam) {
export async function pageClinicPrescriptionItem(
params: ClinicPrescriptionItemParam
) {
const res = await request.get<ApiResult<PageResult<ClinicPrescriptionItem>>>(
'/clinic/clinic-prescription-item/page',
{
@@ -23,7 +28,9 @@ export async function pageClinicPrescriptionItem(params: ClinicPrescriptionItemP
* 查询处方明细表
列表
*/
export async function listClinicPrescriptionItem(params?: ClinicPrescriptionItemParam) {
export async function listClinicPrescriptionItem(
params?: ClinicPrescriptionItemParam
) {
const res = await request.get<ApiResult<ClinicPrescriptionItem[]>>(
'/clinic/clinic-prescription-item',
{
@@ -55,7 +62,9 @@ export async function addClinicPrescriptionItem(data: ClinicPrescriptionItem) {
* 修改处方明细表
*/
export async function updateClinicPrescriptionItem(data: ClinicPrescriptionItem) {
export async function updateClinicPrescriptionItem(
data: ClinicPrescriptionItem
) {
const res = await request.put<ApiResult<unknown>>(
'/clinic/clinic-prescription-item',
data
@@ -84,7 +93,9 @@ export async function removeClinicPrescriptionItem(id?: number) {
* 批量删除处方明细表
*/
export async function removeBatchClinicPrescriptionItem(data: (number | undefined)[]) {
export async function removeBatchClinicPrescriptionItem(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/clinic/clinic-prescription-item/batch',
{

View File

@@ -78,7 +78,9 @@ export async function removeClinicVisitRecord(id?: number) {
/**
* 批量删除病例
*/
export async function removeBatchClinicVisitRecord(data: (number | undefined)[]) {
export async function removeBatchClinicVisitRecord(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/clinic/clinic-visit-record/batch',
{

View File

@@ -22,12 +22,9 @@ export async function pageCmsArticle(params: CmsArticleParam) {
* 查询文章列表
*/
export async function listCmsArticle(params?: CmsArticleParam) {
const res = await request.get<ApiResult<CmsArticle[]>>(
'/cms/cms-article',
{
const res = await request.get<ApiResult<CmsArticle[]>>('/cms/cms-article', {
params
}
);
});
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
@@ -38,10 +35,7 @@ export async function listCmsArticle(params?: CmsArticleParam) {
* 添加文章
*/
export async function addCmsArticle(data: CmsArticle) {
const res = await request.post<ApiResult<unknown>>(
'/cms/cms-article',
data
);
const res = await request.post<ApiResult<unknown>>('/cms/cms-article', data);
if (res.data.code === 0) {
return res.data.message;
}
@@ -52,10 +46,7 @@ export async function addCmsArticle(data: CmsArticle) {
* 修改文章
*/
export async function updateCmsArticle(data: CmsArticle) {
const res = await request.put<ApiResult<unknown>>(
'/cms/cms-article',
data
);
const res = await request.put<ApiResult<unknown>>('/cms/cms-article', data);
if (res.data.code === 0) {
return res.data.message;
}
@@ -141,7 +132,6 @@ export async function getCount(params: CmsArticleParam) {
return Promise.reject(new Error(res.data.message));
}
/**
* 文章批量导入
*/

View File

@@ -79,7 +79,9 @@ export async function removeCmsArticleComment(id?: number) {
/**
* 批量删除文章评论表
*/
export async function removeBatchCmsArticleComment(data: (number | undefined)[]) {
export async function removeBatchCmsArticleComment(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/cms/cms-article-comment/batch',
{

View File

@@ -79,7 +79,9 @@ export async function removeCmsArticleContent(id?: number) {
/**
* 批量删除文章记录表
*/
export async function removeBatchCmsArticleContent(data: (number | undefined)[]) {
export async function removeBatchCmsArticleContent(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/cms/cms-article-content/batch',
{

View File

@@ -135,7 +135,6 @@ export async function resolvable(id: number) {
return Promise.reject(new Error(res.data.message));
}
/**
* 根据授权主域名
*/
@@ -144,7 +143,9 @@ export async function getAuthorizedDomain() {
return false;
}
const res = await request.get<ApiResult<CmsDomain>>(
SERVER_API_URL + '/cms/cms-domain/getAuthorizedDomain/' + localStorage.getItem('WebsiteId')
SERVER_API_URL +
'/cms/cms-domain/getAuthorizedDomain/' +
localStorage.getItem('WebsiteId')
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;

View File

@@ -120,7 +120,6 @@ export async function getCmsNavigation(id: number) {
return Promise.reject(new Error(res.data.message));
}
/**
* 根据code查询导航
*/

View File

@@ -1,6 +1,6 @@
import type { PageParam } from '@/api';
import {CmsWebsiteSetting} from "@/api/cms/cmsWebsiteSetting/model";
import {CmsNavigation} from "@/api/cms/cmsNavigation/model";
import { CmsWebsiteSetting } from '@/api/cms/cmsWebsiteSetting/model';
import { CmsNavigation } from '@/api/cms/cmsNavigation/model';
/**
* 网站信息记录表
@@ -43,7 +43,7 @@ export interface CmsWebsite {
// 应用类型 0应用 1插件
plugin?: boolean;
// 默认编辑器
editor?: number,
editor?: number;
// 服务到期时间
expirationTime?: string;
// 模版ID

View File

@@ -79,7 +79,9 @@ export async function removeCmsWebsiteSetting(id?: number) {
/**
* 批量删除网站设置
*/
export async function removeBatchCmsWebsiteSetting(data: (number | undefined)[]) {
export async function removeBatchCmsWebsiteSetting(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/cms/cms-website-setting/batch',
{

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditBreachOfTrust, CreditBreachOfTrustParam } from './model';
/**
* 分页查询失信被执行人
*/
export async function pageCreditBreachOfTrust(params: CreditBreachOfTrustParam) {
const res = await request.get<ApiResult<PageResult<CreditBreachOfTrust>>>(
'/credit/credit-breach-of-trust/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询失信被执行人列表
*/
export async function listCreditBreachOfTrust(params?: CreditBreachOfTrustParam) {
const res = await request.get<ApiResult<CreditBreachOfTrust[]>>(
'/credit/credit-breach-of-trust',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加失信被执行人
*/
export async function addCreditBreachOfTrust(data: CreditBreachOfTrust) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-breach-of-trust',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改失信被执行人
*/
export async function updateCreditBreachOfTrust(data: CreditBreachOfTrust) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-breach-of-trust',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除失信被执行人
*/
export async function removeCreditBreachOfTrust(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-breach-of-trust/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除失信被执行人
*/
export async function removeBatchCreditBreachOfTrust(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-breach-of-trust/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询失信被执行人
*/
export async function getCreditBreachOfTrust(id: number) {
const res = await request.get<ApiResult<CreditBreachOfTrust>>(
'/credit/credit-breach-of-trust/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入失信被执行人
*/
export async function importCreditBreachOfTrust(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-breach-of-trust/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,57 +0,0 @@
import type { PageParam } from '@/api';
/**
* 失信被执行人
*/
export interface CreditBreachOfTrust {
// ID
id?: number;
// 数据类型
dataType?: string;
// 原告/上诉人
plaintiffAppellant?: string;
// 被告/被上诉人
appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人
otherPartiesThirdParty?: string;
// 发生时间
occurrenceTime?: string;
// 案号
caseNumber?: string;
// 案由
causeOfAction?: string;
// 涉案金额
involvedAmount?: string;
// 法院
courtName?: string;
// 数据状态
dataStatus?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 失信被执行人搜索条件
*/
export interface CreditBreachOfTrustParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditCaseFiling, CreditCaseFilingParam } from './model';
/**
* 分页查询司法大数据
*/
export async function pageCreditCaseFiling(params: CreditCaseFilingParam) {
const res = await request.get<ApiResult<PageResult<CreditCaseFiling>>>(
'/credit/credit-case-filing/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询司法大数据列表
*/
export async function listCreditCaseFiling(params?: CreditCaseFilingParam) {
const res = await request.get<ApiResult<CreditCaseFiling[]>>(
'/credit/credit-case-filing',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加司法大数据
*/
export async function addCreditCaseFiling(data: CreditCaseFiling) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-case-filing',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改司法大数据
*/
export async function updateCreditCaseFiling(data: CreditCaseFiling) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-case-filing',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除司法大数据
*/
export async function removeCreditCaseFiling(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-case-filing/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除司法大数据
*/
export async function removeBatchCreditCaseFiling(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-case-filing/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询司法大数据
*/
export async function getCreditCaseFiling(id: number) {
const res = await request.get<ApiResult<CreditCaseFiling>>(
'/credit/credit-case-filing/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入司法大数据
*/
export async function importCreditCaseFiling(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-case-filing/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,57 +0,0 @@
import type { PageParam } from '@/api';
/**
* 司法大数据
*/
export interface CreditCaseFiling {
// ID
id?: number;
// 数据类型
dataType?: string;
// 原告/上诉人
plaintiffAppellant?: string;
// 被告/被上诉人
appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人
otherPartiesThirdParty?: string;
// 发生时间
occurrenceTime?: string;
// 案号
caseNumber?: string;
// 案由
causeOfAction?: string;
// 涉案金额
involvedAmount?: string;
// 法院
courtName?: string;
// 数据状态
dataStatus?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 司法大数据搜索条件
*/
export interface CreditCaseFilingParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,142 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditCompany, CreditCompanyParam } from './model';
/**
* 分页查询企业
*/
export async function pageCreditCompany(params: CreditCompanyParam) {
const res = await request.get<ApiResult<PageResult<CreditCompany>>>(
'/credit/credit-company/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询企业列表
*/
export async function listCreditCompany(params?: CreditCompanyParam) {
const res = await request.get<ApiResult<CreditCompany[]>>(
'/credit/credit-company',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加企业
*/
export async function addCreditCompany(data: CreditCompany) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-company',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改企业
*/
export async function updateCreditCompany(data: CreditCompany) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-company',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除企业
*/
export async function removeCreditCompany(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-company/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除企业
*/
export async function removeBatchCreditCompany(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-company/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询企业
*/
export async function getCreditCompany(id: number) {
const res = await request.get<ApiResult<CreditCompany>>(
'/credit/credit-company/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入企业
*/
export async function importCreditCompany(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-company/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据企业匹配名称查询关联信息
*/
export async function getCompanyRelatedInfo(params: CreditCompanyParam) {
const res = await request.get<ApiResult<CreditCompany>>(
'/credit/credit-company/related',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,137 +0,0 @@
import type { PageParam } from '@/api';
/**
* 企业
*/
export interface CreditCompany {
// ID
id?: number;
// 原文件导入名称
name?: string;
// 系统匹配企业名称
matchName?: string;
// 统一社会信用代码
code?: string;
// 链接地址
url?: string;
// 类型
type?: number;
// 上级id, 0是顶级
parentId?: number;
// 登记状态
registrationStatus?: string;
// 法定代表人
legalPerson?: string;
// 注册资本
registeredCapital?: string;
// 实缴资本
paidinCapital?: string;
// 成立日期
establishDate?: string;
// 企业地址
address?: string;
// 电话
tel?: string;
// 更多电话
moreTel?: string;
// 邮箱
email?: string;
// 更多邮箱
moreEmail?: string;
// 所在国家
country?: string;
// 所属省份
province?: string;
// 所属城市
city?: string;
// 所属区县
region?: string;
// 企业(机构)类型
institutionType?: string;
// 纳税人识别号
taxpayerCode?: string;
// 注册号
registrationNumber?: string;
// 组织机构代码
organizationalCode?: string;
// 参保人数
numberOfInsuredPersons?: string;
// 参保人数所属年报
annualReport?: string;
// 营业期限
businessTerm?: string;
// 国标行业门类
nationalStandardIndustryCategories?: string;
// 国标行业大类
nationalStandardIndustryCategories2?: string;
// 国标行业中类
nationalStandardIndustryCategories3?: string;
// 国标行业小类
nationalStandardIndustryCategories4?: string;
// 企查查行业门类
nationalStandardIndustryCategories5?: string;
// 企查查行业大类
nationalStandardIndustryCategories6?: string;
// 企查查行业中类
nationalStandardIndustryCategories7?: string;
// 企查查行业小类
nationalStandardIndustryCategories8?: string;
// 企业规模
companySize?: string;
// 曾用名
formerName?: string;
// 英文名
englishName?: string;
// 官网
domain?: string;
// 通信地址
mailingAddress?: string;
// 企业简介
companyProfile?: string;
// 经营范围
natureOfBusiness?: string;
// 登记机关
registrationAuthority?: string;
// 纳税人资质
taxpayerQualification?: string;
// 最新年报年份
latestAnnualReportYear?: string;
// 最新年报营业收入
latestAnnualReportOnOperatingRevenue?: string;
// 企查分
enterpriseScoreCheck?: string;
// 信用等级
creditRating?: string;
// 科创分
cechnologyScore?: string;
// 科创等级
cechnologyLevel?: string;
// 是否小微企业
smallEnterprise?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 企业搜索条件
*/
export interface CreditCompanyParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditCompetitor, CreditCompetitorParam } from './model';
/**
* 分页查询竞争对手
*/
export async function pageCreditCompetitor(params: CreditCompetitorParam) {
const res = await request.get<ApiResult<PageResult<CreditCompetitor>>>(
'/credit/credit-competitor/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询竞争对手列表
*/
export async function listCreditCompetitor(params?: CreditCompetitorParam) {
const res = await request.get<ApiResult<CreditCompetitor[]>>(
'/credit/credit-competitor',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加竞争对手
*/
export async function addCreditCompetitor(data: CreditCompetitor) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-competitor',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改竞争对手
*/
export async function updateCreditCompetitor(data: CreditCompetitor) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-competitor',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除竞争对手
*/
export async function removeCreditCompetitor(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-competitor/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除竞争对手
*/
export async function removeBatchCreditCompetitor(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-competitor/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询竞争对手
*/
export async function getCreditCompetitor(id: number) {
const res = await request.get<ApiResult<CreditCompetitor>>(
'/credit/credit-competitor/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入竞争对手
*/
export async function importCreditCompetitor(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-competitor/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,51 +0,0 @@
import type { PageParam } from '@/api';
/**
* 竞争对手
*/
export interface CreditCompetitor {
// 序号
id?: number;
// 企业名称
companyName?: string;
// 法定代表人
legalRepresentative?: string;
// 注册资本
registeredCapital?: string;
// 成立日期
establishmentDate?: string;
// 登记状态
registrationStatus?: string;
// 所属行业
industry?: string;
// 所属省份
province?: string;
// 链接地址
url?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 竞争对手搜索条件
*/
export interface CreditCompetitorParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditCourtAnnouncement, CreditCourtAnnouncementParam } from './model';
/**
* 分页查询法院公告司法大数据
*/
export async function pageCreditCourtAnnouncement(params: CreditCourtAnnouncementParam) {
const res = await request.get<ApiResult<PageResult<CreditCourtAnnouncement>>>(
'/credit/credit-court-announcement/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询法院公告司法大数据列表
*/
export async function listCreditCourtAnnouncement(params?: CreditCourtAnnouncementParam) {
const res = await request.get<ApiResult<CreditCourtAnnouncement[]>>(
'/credit/credit-court-announcement',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加法院公告司法大数据
*/
export async function addCreditCourtAnnouncement(data: CreditCourtAnnouncement) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-court-announcement',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改法院公告司法大数据
*/
export async function updateCreditCourtAnnouncement(data: CreditCourtAnnouncement) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-court-announcement',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除法院公告司法大数据
*/
export async function removeCreditCourtAnnouncement(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-court-announcement/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除法院公告司法大数据
*/
export async function removeBatchCreditCourtAnnouncement(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-court-announcement/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询法院公告司法大数据
*/
export async function getCreditCourtAnnouncement(id: number) {
const res = await request.get<ApiResult<CreditCourtAnnouncement>>(
'/credit/credit-court-announcement/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入法院公告司法大数据
*/
export async function importCreditCourtAnnouncement(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-court-announcement/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,57 +0,0 @@
import type { PageParam } from '@/api';
/**
* 法院公告司法大数据
*/
export interface CreditCourtAnnouncement {
// ID
id?: number;
// 数据类型
dataType?: string;
// 原告/上诉人
plaintiffAppellant?: string;
// 被告/被上诉人
appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人
otherPartiesThirdParty?: string;
// 发生时间
occurrenceTime?: string;
// 案号
caseNumber?: string;
// 案由
causeOfAction?: string;
// 涉案金额
involvedAmount?: string;
// 法院
courtName?: string;
// 数据状态
dataStatus?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 法院公告司法大数据搜索条件
*/
export interface CreditCourtAnnouncementParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditCourtSession, CreditCourtSessionParam } from './model';
/**
* 分页查询开庭公告司法大数据
*/
export async function pageCreditCourtSession(params: CreditCourtSessionParam) {
const res = await request.get<ApiResult<PageResult<CreditCourtSession>>>(
'/credit/credit-court-session/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询开庭公告司法大数据列表
*/
export async function listCreditCourtSession(params?: CreditCourtSessionParam) {
const res = await request.get<ApiResult<CreditCourtSession[]>>(
'/credit/credit-court-session',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加开庭公告司法大数据
*/
export async function addCreditCourtSession(data: CreditCourtSession) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-court-session',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改开庭公告司法大数据
*/
export async function updateCreditCourtSession(data: CreditCourtSession) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-court-session',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除开庭公告司法大数据
*/
export async function removeCreditCourtSession(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-court-session/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除开庭公告司法大数据
*/
export async function removeBatchCreditCourtSession(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-court-session/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询开庭公告司法大数据
*/
export async function getCreditCourtSession(id: number) {
const res = await request.get<ApiResult<CreditCourtSession>>(
'/credit/credit-court-session/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入开庭公告司法大数据
*/
export async function importCreditCourtSession(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-court-session/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,57 +0,0 @@
import type { PageParam } from '@/api';
/**
* 开庭公告司法大数据
*/
export interface CreditCourtSession {
// ID
id?: number;
// 数据类型
dataType?: string;
// 原告/上诉人
plaintiffAppellant?: string;
// 被告/被上诉人
appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人
otherPartiesThirdParty?: string;
// 发生时间
occurrenceTime?: string;
// 案号
caseNumber?: string;
// 案由
causeOfAction?: string;
// 涉案金额
involvedAmount?: string;
// 法院
courtName?: string;
// 数据状态
dataStatus?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 开庭公告司法大数据搜索条件
*/
export interface CreditCourtSessionParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditCustomer, CreditCustomerParam } from './model';
/**
* 分页查询客户
*/
export async function pageCreditCustomer(params: CreditCustomerParam) {
const res = await request.get<ApiResult<PageResult<CreditCustomer>>>(
'/credit/credit-customer/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询客户列表
*/
export async function listCreditCustomer(params?: CreditCustomerParam) {
const res = await request.get<ApiResult<CreditCustomer[]>>(
'/credit/credit-customer',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加客户
*/
export async function addCreditCustomer(data: CreditCustomer) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-customer',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改客户
*/
export async function updateCreditCustomer(data: CreditCustomer) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-customer',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除客户
*/
export async function removeCreditCustomer(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-customer/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除客户
*/
export async function removeBatchCreditCustomer(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-customer/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询客户
*/
export async function getCreditCustomer(id: number) {
const res = await request.get<ApiResult<CreditCustomer>>(
'/credit/credit-customer/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入客户
*/
export async function importCreditCustomer(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-customer/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,47 +0,0 @@
import type { PageParam } from '@/api';
/**
* 客户
*/
export interface CreditCustomer {
// ID
id?: number;
// 客户
name?: string;
// 状态
statusTxt?: string;
// 销售金额(万元)
price?: string;
// 公开日期
publicDate?: string;
// 数据来源
dataSource?: string;
// 链接地址
url?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 客户搜索条件
*/
export interface CreditCustomerParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditDeliveryNotice, CreditDeliveryNoticeParam } from './model';
/**
* 分页查询送达公告司法大数据
*/
export async function pageCreditDeliveryNotice(params: CreditDeliveryNoticeParam) {
const res = await request.get<ApiResult<PageResult<CreditDeliveryNotice>>>(
'/credit/credit-delivery-notice/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询送达公告司法大数据列表
*/
export async function listCreditDeliveryNotice(params?: CreditDeliveryNoticeParam) {
const res = await request.get<ApiResult<CreditDeliveryNotice[]>>(
'/credit/credit-delivery-notice',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加送达公告司法大数据
*/
export async function addCreditDeliveryNotice(data: CreditDeliveryNotice) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-delivery-notice',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改送达公告司法大数据
*/
export async function updateCreditDeliveryNotice(data: CreditDeliveryNotice) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-delivery-notice',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除送达公告司法大数据
*/
export async function removeCreditDeliveryNotice(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-delivery-notice/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除送达公告司法大数据
*/
export async function removeBatchCreditDeliveryNotice(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-delivery-notice/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询送达公告司法大数据
*/
export async function getCreditDeliveryNotice(id: number) {
const res = await request.get<ApiResult<CreditDeliveryNotice>>(
'/credit/credit-delivery-notice/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入送达公告司法大数据
*/
export async function importCreditDeliveryNotice(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-delivery-notice/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,57 +0,0 @@
import type { PageParam } from '@/api';
/**
* 送达公告司法大数据
*/
export interface CreditDeliveryNotice {
// ID
id?: number;
// 数据类型
dataType?: string;
// 原告/上诉人
plaintiffAppellant?: string;
// 被告/被上诉人
appellee?: string;
// 其他当事人/第三人
otherPartiesThirdParty?: string;
// 发生时间
occurrenceTime?: string;
// 案号
caseNumber?: string;
// 案由
causeOfAction?: string;
// 涉案金额
involvedAmount?: string;
// 法院
courtName?: string;
// 数据状态
dataStatus?: string;
// 链接地址
url?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 送达公告司法大数据搜索条件
*/
export interface CreditDeliveryNoticeParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditExternal, CreditExternalParam } from './model';
/**
* 分页查询对外投资
*/
export async function pageCreditExternal(params: CreditExternalParam) {
const res = await request.get<ApiResult<PageResult<CreditExternal>>>(
'/credit/credit-external/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询对外投资列表
*/
export async function listCreditExternal(params?: CreditExternalParam) {
const res = await request.get<ApiResult<CreditExternal[]>>(
'/credit/credit-external',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加对外投资
*/
export async function addCreditExternal(data: CreditExternal) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-external',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改对外投资
*/
export async function updateCreditExternal(data: CreditExternal) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-external',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除对外投资
*/
export async function removeCreditExternal(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-external/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除对外投资
*/
export async function removeBatchCreditExternal(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-external/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询对外投资
*/
export async function getCreditExternal(id: number) {
const res = await request.get<ApiResult<CreditExternal>>(
'/credit/credit-external/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入对外投资
*/
export async function importCreditExternal(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-external/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,65 +0,0 @@
import type { PageParam } from '@/api';
/**
* 对外投资
*/
export interface CreditExternal {
// ID
id?: number;
// 被投资企业名称
name?: string;
// 企业状态(如存续、注销等)
statusTxt?: string;
// 法定代表人姓名
legalRepresentative?: string;
// 注册资本(金额)
registeredCapital?: string;
// 成立日期
establishmentDate?: string;
// 持股比例
shareholdingRatio?: string;
// 认缴出资额
subscribedInvestmentAmount?: string;
// 认缴出资日期
subscribedInvestmentDate?: string;
// 间接持股比例
indirectShareholdingRatio?: string;
// 投资日期
investmentDate?: string;
// 所属地区
region?: string;
// 所属行业
industry?: string;
// 投资数量
investmentCount?: number;
// 关联产品/机构
relatedProductsInstitutions?: string;
// 链接地址
url?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 对外投资搜索条件
*/
export interface CreditExternalParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditFinalVersion, CreditFinalVersionParam } from './model';
/**
* 分页查询终本案件
*/
export async function pageCreditFinalVersion(params: CreditFinalVersionParam) {
const res = await request.get<ApiResult<PageResult<CreditFinalVersion>>>(
'/credit/credit-final-version/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询终本案件列表
*/
export async function listCreditFinalVersion(params?: CreditFinalVersionParam) {
const res = await request.get<ApiResult<CreditFinalVersion[]>>(
'/credit/credit-final-version',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加终本案件
*/
export async function addCreditFinalVersion(data: CreditFinalVersion) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-final-version',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改终本案件
*/
export async function updateCreditFinalVersion(data: CreditFinalVersion) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-final-version',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除终本案件
*/
export async function removeCreditFinalVersion(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-final-version/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除终本案件
*/
export async function removeBatchCreditFinalVersion(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-final-version/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询终本案件
*/
export async function getCreditFinalVersion(id: number) {
const res = await request.get<ApiResult<CreditFinalVersion>>(
'/credit/credit-final-version/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入终本案件
*/
export async function importCreditFinalVersion(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-final-version/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,57 +0,0 @@
import type { PageParam } from '@/api';
/**
* 终本案件
*/
export interface CreditFinalVersion {
// ID
id?: number;
// 数据类型
dataType?: string;
// 原告/上诉人
plaintiffAppellant?: string;
// 被告/被上诉人
appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人
otherPartiesThirdParty?: string;
// 发生时间
occurrenceTime?: string;
// 案号
caseNumber?: string;
// 案由
causeOfAction?: string;
// 涉案金额
involvedAmount?: string;
// 法院
courtName?: string;
// 数据状态
dataStatus?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 终本案件搜索条件
*/
export interface CreditFinalVersionParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditGqdj, CreditGqdjParam } from './model';
/**
* 分页查询股权冻结
*/
export async function pageCreditGqdj(params: CreditGqdjParam) {
const res = await request.get<ApiResult<PageResult<CreditGqdj>>>(
'/credit/credit-gqdj/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询股权冻结列表
*/
export async function listCreditGqdj(params?: CreditGqdjParam) {
const res = await request.get<ApiResult<CreditGqdj[]>>(
'/credit/credit-gqdj',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加股权冻结
*/
export async function addCreditGqdj(data: CreditGqdj) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-gqdj',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改股权冻结
*/
export async function updateCreditGqdj(data: CreditGqdj) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-gqdj',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除股权冻结
*/
export async function removeCreditGqdj(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-gqdj/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除股权冻结
*/
export async function removeBatchCreditGqdj(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-gqdj/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询股权冻结
*/
export async function getCreditGqdj(id: number) {
const res = await request.get<ApiResult<CreditGqdj>>(
'/credit/credit-gqdj/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入股权冻结
*/
export async function importCreditGqdj(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-gqdj/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,57 +0,0 @@
import type { PageParam } from '@/api';
/**
* 股权冻结
*/
export interface CreditGqdj {
// ID
id?: number;
// 数据类型
dataType?: string;
// 原告/上诉人
plaintiffAppellant?: string;
// 被告/被上诉人
appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人
otherPartiesThirdParty?: string;
// 发生时间
occurrenceTime?: string;
// 案号
caseNumber?: string;
// 案由
causeOfAction?: string;
// 涉案金额
involvedAmount?: string;
// 法院
courtName?: string;
// 数据状态
dataStatus?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 股权冻结搜索条件
*/
export interface CreditGqdjParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditJudgmentDebtor, CreditJudgmentDebtorParam } from './model';
/**
* 分页查询被执行人
*/
export async function pageCreditJudgmentDebtor(params: CreditJudgmentDebtorParam) {
const res = await request.get<ApiResult<PageResult<CreditJudgmentDebtor>>>(
'/credit/credit-judgment-debtor/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询被执行人列表
*/
export async function listCreditJudgmentDebtor(params?: CreditJudgmentDebtorParam) {
const res = await request.get<ApiResult<CreditJudgmentDebtor[]>>(
'/credit/credit-judgment-debtor',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加被执行人
*/
export async function addCreditJudgmentDebtor(data: CreditJudgmentDebtor) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-judgment-debtor',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改被执行人
*/
export async function updateCreditJudgmentDebtor(data: CreditJudgmentDebtor) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-judgment-debtor',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除被执行人
*/
export async function removeCreditJudgmentDebtor(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-judgment-debtor/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除被执行人
*/
export async function removeBatchCreditJudgmentDebtor(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-judgment-debtor/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询被执行人
*/
export async function getCreditJudgmentDebtor(id: number) {
const res = await request.get<ApiResult<CreditJudgmentDebtor>>(
'/credit/credit-judgment-debtor/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入被执行人
*/
export async function importCreditJudgmentDebtor(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-judgment-debtor/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,51 +0,0 @@
import type { PageParam } from '@/api';
/**
* 被执行人
*/
export interface CreditJudgmentDebtor {
// ID
id?: number;
// 案号
caseNumber?: string;
// 被执行人名称
name?: string;
// 证件号/组织机构代码
code?: string;
// 链接地址
url?: string;
// 立案日期
occurrenceTime?: string;
// 执行标的(元)
amount?: string;
// 法院
courtName?: string;
// 数据状态
dataStatus?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 被执行人搜索条件
*/
export interface CreditJudgmentDebtorParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditJudicialDocument, CreditJudicialDocumentParam } from './model';
/**
* 分页查询裁判文书司法大数据
*/
export async function pageCreditJudicialDocument(params: CreditJudicialDocumentParam) {
const res = await request.get<ApiResult<PageResult<CreditJudicialDocument>>>(
'/credit/credit-judicial-document/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询裁判文书司法大数据列表
*/
export async function listCreditJudicialDocument(params?: CreditJudicialDocumentParam) {
const res = await request.get<ApiResult<CreditJudicialDocument[]>>(
'/credit/credit-judicial-document',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加裁判文书司法大数据
*/
export async function addCreditJudicialDocument(data: CreditJudicialDocument) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-judicial-document',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改裁判文书司法大数据
*/
export async function updateCreditJudicialDocument(data: CreditJudicialDocument) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-judicial-document',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除裁判文书司法大数据
*/
export async function removeCreditJudicialDocument(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-judicial-document/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除裁判文书司法大数据
*/
export async function removeBatchCreditJudicialDocument(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-judicial-document/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询裁判文书司法大数据
*/
export async function getCreditJudicialDocument(id: number) {
const res = await request.get<ApiResult<CreditJudicialDocument>>(
'/credit/credit-judicial-document/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入裁判文书司法大数据
*/
export async function importCreditJudicialDocument(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-judicial-document/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,57 +0,0 @@
import type { PageParam } from '@/api';
/**
* 裁判文书司法大数据
*/
export interface CreditJudicialDocument {
// ID
id?: number;
// 数据类型
dataType?: string;
// 原告/上诉人
plaintiffAppellant?: string;
// 被告/被上诉人
appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人
otherPartiesThirdParty?: string;
// 发生时间
occurrenceTime?: string;
// 案号
caseNumber?: string;
// 案由
causeOfAction?: string;
// 涉案金额
involvedAmount?: string;
// 法院
courtName?: string;
// 数据状态
dataStatus?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 裁判文书司法大数据搜索条件
*/
export interface CreditJudicialDocumentParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditJudiciary, CreditJudiciaryParam } from './model';
/**
* 分页查询司法案件
*/
export async function pageCreditJudiciary(params: CreditJudiciaryParam) {
const res = await request.get<ApiResult<PageResult<CreditJudiciary>>>(
'/credit/credit-judiciary/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询司法案件列表
*/
export async function listCreditJudiciary(params?: CreditJudiciaryParam) {
const res = await request.get<ApiResult<CreditJudiciary[]>>(
'/credit/credit-judiciary',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加司法案件
*/
export async function addCreditJudiciary(data: CreditJudiciary) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-judiciary',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改司法案件
*/
export async function updateCreditJudiciary(data: CreditJudiciary) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-judiciary',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除司法案件
*/
export async function removeCreditJudiciary(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-judiciary/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除司法案件
*/
export async function removeBatchCreditJudiciary(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-judiciary/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询司法案件
*/
export async function getCreditJudiciary(id: number) {
const res = await request.get<ApiResult<CreditJudiciary>>(
'/credit/credit-judiciary/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入司法案件
*/
export async function importCreditJudiciaries(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-judiciary/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,71 +0,0 @@
import type { PageParam } from '@/api';
/**
* 司法案件
*/
export interface CreditJudiciary {
// ID
id?: number;
// 案件名称
name?: string;
// 案号
code?: string;
// 链接地址
url?: string;
// 类型, 0普通用户, 1招投标
type?: number;
// 案由
reason?: string;
// 上级id, 0是顶级
parentId?: number;
// 案件类型
infoType?: string;
// 所在国家
country?: string;
// 所在省份
province?: string;
// 所在城市
city?: string;
// 所在辖区
region?: string;
// 街道地址
address?: string;
// 案件进程
caseProgress?: string;
// 案件身份
caseIdentity?: string;
// 法院
court?: string;
// 进程日期
processDate?: string;
// 案件金额(元)
caseAmount?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 到期时间
expirationTime?: string;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 司法案件搜索条件
*/
export interface CreditJudiciaryParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditMediation, CreditMediationParam } from './model';
/**
* 分页查询诉前调解司法大数据
*/
export async function pageCreditMediation(params: CreditMediationParam) {
const res = await request.get<ApiResult<PageResult<CreditMediation>>>(
'/credit/credit-mediation/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询诉前调解司法大数据列表
*/
export async function listCreditMediation(params?: CreditMediationParam) {
const res = await request.get<ApiResult<CreditMediation[]>>(
'/credit/credit-mediation',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加诉前调解司法大数据
*/
export async function addCreditMediation(data: CreditMediation) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-mediation',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改诉前调解司法大数据
*/
export async function updateCreditMediation(data: CreditMediation) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-mediation',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除诉前调解司法大数据
*/
export async function removeCreditMediation(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-mediation/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除诉前调解司法大数据
*/
export async function removeBatchCreditMediation(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-mediation/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询诉前调解司法大数据
*/
export async function getCreditMediation(id: number) {
const res = await request.get<ApiResult<CreditMediation>>(
'/credit/credit-mediation/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入诉前调解司法大数据
*/
export async function importCreditMediation(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-mediation/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,57 +0,0 @@
import type { PageParam } from '@/api';
/**
* 诉前调解司法大数据
*/
export interface CreditMediation {
// ID
id?: number;
// 数据类型
dataType?: string;
// 原告/上诉人
plaintiffAppellant?: string;
// 被告/被上诉人
appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人
otherPartiesThirdParty?: string;
// 发生时间
occurrenceTime?: string;
// 案号
caseNumber?: string;
// 案由
causeOfAction?: string;
// 涉案金额
involvedAmount?: string;
// 法院
courtName?: string;
// 数据状态
dataStatus?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 诉前调解司法大数据搜索条件
*/
export interface CreditMediationParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditProject, CreditProjectParam } from './model';
/**
* 分页查询招投标
*/
export async function pageCreditProject(params: CreditProjectParam) {
const res = await request.get<ApiResult<PageResult<CreditProject>>>(
'/credit/credit-project/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询招投标列表
*/
export async function listCreditProject(params?: CreditProjectParam) {
const res = await request.get<ApiResult<CreditProject[]>>(
'/credit/credit-project',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加招投标
*/
export async function addCreditProject(data: CreditProject) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-project',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改招投标
*/
export async function updateCreditProject(data: CreditProject) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-project',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除招投标
*/
export async function removeCreditProject(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-project/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除招投标
*/
export async function removeBatchCreditProject(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-project/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询招投标
*/
export async function getCreditProject(id: number) {
const res = await request.get<ApiResult<CreditProject>>(
'/credit/credit-project/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入招投标
*/
export async function importCreditProject(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-project/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,69 +0,0 @@
import type { PageParam } from '@/api';
/**
* 招投标
*/
export interface CreditProject {
// ID
id?: number;
// 项目名称
name?: string;
// 唯一标识
code?: string;
// 链接地址
url?: string;
// 类型, 0普通用户, 1招投标
type?: number;
// 企业角色
role?: string;
// 上级id, 0是顶级
parentId?: number;
// 信息类型
infoType?: string;
// 所在国家
country?: string;
// 所在省份
province?: string;
// 所在城市
city?: string;
// 所在辖区
region?: string;
// 街道地址
address?: string;
// 招采单位名称
procurementName?: string;
// 中标单位名称
winningName?: string;
// 中标金额
winningPrice?: string;
// 发布日期
releaseDate?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 到期时间
expirationTime?: string;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 招投标搜索条件
*/
export interface CreditProjectParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditRiskRelation, CreditRiskRelationParam } from './model';
/**
* 分页查询风险关系表
*/
export async function pageCreditRiskRelation(params: CreditRiskRelationParam) {
const res = await request.get<ApiResult<PageResult<CreditRiskRelation>>>(
'/credit/credit-risk-relation/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询风险关系表列表
*/
export async function listCreditRiskRelation(params?: CreditRiskRelationParam) {
const res = await request.get<ApiResult<CreditRiskRelation[]>>(
'/credit/credit-risk-relation',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加风险关系表
*/
export async function addCreditRiskRelation(data: CreditRiskRelation) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-risk-relation',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改风险关系表
*/
export async function updateCreditRiskRelation(data: CreditRiskRelation) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-risk-relation',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除风险关系表
*/
export async function removeCreditRiskRelation(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-risk-relation/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除风险关系表
*/
export async function removeBatchCreditRiskRelation(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-risk-relation/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询风险关系表
*/
export async function getCreditRiskRelation(id: number) {
const res = await request.get<ApiResult<CreditRiskRelation>>(
'/credit/credit-risk-relation/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入风险关系表
*/
export async function importCreditRiskRelation(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-risk-relation/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,49 +0,0 @@
import type { PageParam } from '@/api';
/**
* 风险关系表
*/
export interface CreditRiskRelation {
// 序号
id?: number;
// 主体名称
mainBodyName?: string;
// 登记状态
registrationStatus?: string;
// 注册资本
registeredCapital?: string;
// 省份地区
provinceRegion?: string;
// 关联关系
associatedRelation?: string;
// 风险关系
riskRelation?: string;
// 链接地址
url?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 风险关系表搜索条件
*/
export interface CreditRiskRelationParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditSupplier, CreditSupplierParam } from './model';
/**
* 分页查询供应商
*/
export async function pageCreditSupplier(params: CreditSupplierParam) {
const res = await request.get<ApiResult<PageResult<CreditSupplier>>>(
'/credit/credit-supplier/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询供应商列表
*/
export async function listCreditSupplier(params?: CreditSupplierParam) {
const res = await request.get<ApiResult<CreditSupplier[]>>(
'/credit/credit-supplier',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加供应商
*/
export async function addCreditSupplier(data: CreditSupplier) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-supplier',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改供应商
*/
export async function updateCreditSupplier(data: CreditSupplier) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-supplier',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除供应商
*/
export async function removeCreditSupplier(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-supplier/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除供应商
*/
export async function removeBatchCreditSupplier(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-supplier/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询供应商
*/
export async function getCreditSupplier(id: number) {
const res = await request.get<ApiResult<CreditSupplier>>(
'/credit/credit-supplier/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入供应商
*/
export async function importCreditSupplier(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-supplier/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,47 +0,0 @@
import type { PageParam } from '@/api';
/**
* 供应商
*/
export interface CreditSupplier {
// ID
id?: number;
// 供应商
supplier?: string;
// 状态
statusTxt?: string;
// 采购金额(万元)
purchaseAmount?: string;
// 公开日期
publicDate?: string;
// 数据来源
dataSource?: string;
// 链接地址
url?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 供应商搜索条件
*/
export interface CreditSupplierParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditUser, CreditUserParam } from './model';
/**
* 分页查询招投标信息表
*/
export async function pageCreditUser(params: CreditUserParam) {
const res = await request.get<ApiResult<PageResult<CreditUser>>>(
'/credit/credit-user/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询招投标信息表列表
*/
export async function listCreditUser(params?: CreditUserParam) {
const res = await request.get<ApiResult<CreditUser[]>>(
'/credit/credit-user',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加招投标信息表
*/
export async function addCreditUser(data: CreditUser) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-user',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改招投标信息表
*/
export async function updateCreditUser(data: CreditUser) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-user',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除招投标信息表
*/
export async function removeCreditUser(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-user/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除招投标信息表
*/
export async function removeBatchCreditUser(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-user/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询招投标信息表
*/
export async function getCreditUser(id: number) {
const res = await request.get<ApiResult<CreditUser>>(
'/credit/credit-user/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入招投标
*/
export async function importCreditUsers(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-user/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,69 +0,0 @@
import type { PageParam } from '@/api';
/**
* 招投标信息表
*/
export interface CreditUser {
// ID
id?: number;
// 客户名称
name?: string;
// 唯一标识
code?: string;
// 链接地址
url?: string;
// 类型, 0普通用户, 1招投标
type?: number;
// 企业角色
role?: string;
// 上级id, 0是顶级
parentId?: number;
// 信息类型
infoType?: string;
// 所在国家
country?: string;
// 所在省份
province?: string;
// 所在城市
city?: string;
// 所在辖区
region?: string;
// 街道地址
address?: string;
// 招采单位名称
procurementName?: string;
// 中标单位名称
winningName?: string;
// 中标单位名称
winningPrice?: string;
// 发布日期
releaseDate?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 到期时间
expirationTime?: string;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 招投标信息表搜索条件
*/
export interface CreditUserParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -1,126 +0,0 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { CreditXgxf, CreditXgxfParam } from './model';
/**
* 分页查询限制高消费
*/
export async function pageCreditXgxf(params: CreditXgxfParam) {
const res = await request.get<ApiResult<PageResult<CreditXgxf>>>(
'/credit/credit-xgxf/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询限制高消费列表
*/
export async function listCreditXgxf(params?: CreditXgxfParam) {
const res = await request.get<ApiResult<CreditXgxf[]>>(
'/credit/credit-xgxf',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加限制高消费
*/
export async function addCreditXgxf(data: CreditXgxf) {
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-xgxf',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改限制高消费
*/
export async function updateCreditXgxf(data: CreditXgxf) {
const res = await request.put<ApiResult<unknown>>(
'/credit/credit-xgxf',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除限制高消费
*/
export async function removeCreditXgxf(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-xgxf/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除限制高消费
*/
export async function removeBatchCreditXgxf(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
'/credit/credit-xgxf/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询限制高消费
*/
export async function getCreditXgxf(id: number) {
const res = await request.get<ApiResult<CreditXgxf>>(
'/credit/credit-xgxf/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入限制高消费
*/
export async function importCreditXgxf(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-xgxf/import',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -1,57 +0,0 @@
import type { PageParam } from '@/api';
/**
* 限制高消费
*/
export interface CreditXgxf {
// ID
id?: number;
// 数据类型
dataType?: string;
// 原告/上诉人
plaintiffAppellant?: string;
// 被告/被上诉人
appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人
otherPartiesThirdParty?: string;
// 发生时间
occurrenceTime?: string;
// 案号
caseNumber?: string;
// 案由
causeOfAction?: string;
// 涉案金额
involvedAmount?: string;
// 法院
courtName?: string;
// 数据状态
dataStatus?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 用户ID
userId?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 限制高消费搜索条件
*/
export interface CreditXgxfParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -79,7 +79,9 @@ export async function removeDormitoryBuilding(id?: number) {
/**
* 批量删除宿舍楼栋
*/
export async function removeBatchDormitoryBuilding(data: (number | undefined)[]) {
export async function removeBatchDormitoryBuilding(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/dormitory/dormitory-building/batch',
{

View File

@@ -1,5 +1,5 @@
import type { PageParam } from '@/api';
import {HjmFence} from "@/api/hjm/hjmFence/model";
import { HjmFence } from '@/api/hjm/hjmFence/model';
/**
* 车辆管理
@@ -50,13 +50,13 @@ export interface HjmCar {
// 位置
location?: string;
// 经度
longitude?: string,
longitude?: string;
// 纬度
latitude?: string,
latitude?: string;
// 区域
district?: string;
// 地址
address?: string,
address?: string;
// 组织ID
organizationId?: number;
// 父级组织ID

View File

@@ -1,5 +1,5 @@
import type { PageParam } from '@/api';
import {HjmChoices} from "@/api/hjm/hjmChoices/model";
import { HjmChoices } from '@/api/hjm/hjmChoices/model';
/**
* 题目
@@ -36,10 +36,10 @@ export interface HjmQuestions {
// 修改时间
updateTime?: string;
// 选项
choicesA?: string,
choicesB?: string,
choicesC?: string,
choicesD?: string,
choicesA?: string;
choicesB?: string;
choicesC?: string;
choicesD?: string;
choices?: number;
choicesList?: HjmChoices[];
}

View File

@@ -37,6 +37,8 @@ export interface PageParam {
tenantId?: number;
// 企业ID
companyId?: number;
// 企业税号/统一社会信用代码
taxpayerCode?: string;
// 商户ID
merchantId?: number;
merchantName?: string;

View File

@@ -5,7 +5,7 @@ import type { UpdatePasswordParam, NoticeResult } from './model';
import { SERVER_API_URL } from '@/config/setting';
import { Company } from '@/api/system/company/model';
import { CmsWebsite } from '@/api/cms/cmsWebsite/model';
import {Menu} from "@/api/system/menu/model";
import { Menu } from '@/api/system/menu/model';
/**
* 获取当前登录的用户信息、菜单、权限、角色
@@ -24,12 +24,9 @@ export async function getTenantInfo(): Promise<Company> {
* 获取网站信息 https://cms-api.websoft.top/api
*/
export async function getSiteInfo() {
const res = await request.get<ApiResult<CmsWebsite>>(
'/shop/getShopInfo',
{
const res = await request.get<ApiResult<CmsWebsite>>('/shop/getShopInfo', {
params: {}
}
);
});
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
@@ -66,9 +63,7 @@ export async function updateLoginUser(data: User) {
* @return
*/
export async function getServerTime() {
const res = await request.get<ApiResult<any>>(
'/cms/website/getServerTime'
);
const res = await request.get<ApiResult<any>>('/cms/website/getServerTime');
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
@@ -80,9 +75,7 @@ export async function getServerTime() {
* @return
*/
export async function getNext7day() {
const res = await request.get<ApiResult<any>>(
'/cms/website/getNext7day'
);
const res = await request.get<ApiResult<any>>('/cms/website/getNext7day');
console.log('res.data.code: ', res.data.code);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
@@ -120,7 +113,8 @@ export async function updatePassword(
*/
export async function createCmsWebSite(data: CmsWebsite) {
const res = await request.post<ApiResult<unknown>>(
SERVER_API_URL + '/superAdminRegister',data
SERVER_API_URL + '/superAdminRegister',
data
);
if (res.data.code === 0) {
return res.data.message;

View File

@@ -50,7 +50,9 @@ export async function generateQrCode(): Promise<QrCodeResponse> {
/**
* 检查二维码状态
*/
export async function checkQrCodeStatus(token: string): Promise<QrCodeStatusResponse> {
export async function checkQrCodeStatus(
token: string
): Promise<QrCodeStatusResponse> {
const res = await request.get<ApiResult<QrCodeStatusResponse>>(
SERVER_API_URL + `/qr-login/status/${token}`
);
@@ -65,12 +67,14 @@ export async function checkQrCodeStatus(token: string): Promise<QrCodeStatusResp
/**
* 扫码确认登录(移动端调用)
*/
export async function confirmQrLogin(requestData: QrLoginConfirmRequest): Promise<QrCodeStatusResponse> {
export async function confirmQrLogin(
requestData: QrLoginConfirmRequest
): Promise<QrCodeStatusResponse> {
const res = await request.post<ApiResult<QrCodeStatusResponse>>(
SERVER_API_URL + '/qr-login/confirm',
requestData
);
console.log(res,'>>>89898989')
console.log(res, '>>>89898989');
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
@@ -96,7 +100,9 @@ export async function scanQrCode(token: string): Promise<boolean> {
/**
* 微信小程序扫码登录确认
*/
export async function wechatMiniProgramConfirm(requestData: QrLoginConfirmRequest): Promise<QrCodeStatusResponse> {
export async function wechatMiniProgramConfirm(
requestData: QrLoginConfirmRequest
): Promise<QrCodeStatusResponse> {
const res = await request.post<ApiResult<QrCodeStatusResponse>>(
SERVER_API_URL + '/qr-login/wechat-confirm',
requestData
@@ -106,5 +112,7 @@ export async function wechatMiniProgramConfirm(requestData: QrLoginConfirmReques
return res.data.data;
}
return Promise.reject(new Error(res.data.message || '微信小程序登录确认失败'));
return Promise.reject(
new Error(res.data.message || '微信小程序登录确认失败')
);
}

View File

@@ -4,8 +4,8 @@ import type {ShopDealerOrder, ShopDealerOrderParam} from './model';
import { utils, writeFile } from 'xlsx';
import { message } from 'ant-design-vue';
import { getTenantId } from '@/utils/domain';
import {listShopDealerOrder} from "@/api/shop/shopDealerOrder";
import {MODULES_API_URL} from "@/config/setting";
import { listShopDealerOrder } from '@/api/shop/shopDealerOrder';
import { MODULES_API_URL } from '@/config/setting';
/**
* 导入分销商订单
@@ -113,7 +113,6 @@ export async function exportSdyDealerOrder(params?: ShopDealerOrderParam) {
message.destroy();
message.success(`成功导出 ${list.length} 条记录`);
}, 1000);
} catch (error: any) {
message.destroy();
message.error(error.message || '导出失败,请重试');

View File

@@ -78,7 +78,9 @@ export async function removeShopCommissionRole(id?: number) {
/**
* 批量删除分红角色
*/
export async function removeBatchShopCommissionRole(data: (number | undefined)[]) {
export async function removeBatchShopCommissionRole(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/shop/shop-commission-role/batch',
{

View File

@@ -22,12 +22,9 @@ export async function pageShopCoupon(params: ShopCouponParam) {
* 查询优惠券列表
*/
export async function listShopCoupon(params?: ShopCouponParam) {
const res = await request.get<ApiResult<ShopCoupon[]>>(
'/shop/shop-coupon',
{
const res = await request.get<ApiResult<ShopCoupon[]>>('/shop/shop-coupon', {
params
}
);
});
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
@@ -38,10 +35,7 @@ export async function listShopCoupon(params?: ShopCouponParam) {
* 添加优惠券
*/
export async function addShopCoupon(data: ShopCoupon) {
const res = await request.post<ApiResult<unknown>>(
'/shop/shop-coupon',
data
);
const res = await request.post<ApiResult<unknown>>('/shop/shop-coupon', data);
if (res.data.code === 0) {
return res.data.message;
}
@@ -52,10 +46,7 @@ export async function addShopCoupon(data: ShopCoupon) {
* 修改优惠券
*/
export async function updateShopCoupon(data: ShopCoupon) {
const res = await request.put<ApiResult<unknown>>(
'/shop/shop-coupon',
data
);
const res = await request.put<ApiResult<unknown>>('/shop/shop-coupon', data);
if (res.data.code === 0) {
return res.data.message;
}

View File

@@ -1,6 +1,6 @@
import type { PageParam } from '@/api/index';
import {ShopCouponApplyCate} from "@/api/shop/shopCouponApplyCate/model";
import {ShopCouponApplyItem} from "@/api/shop/shopCouponApplyItem/model";
import { ShopCouponApplyCate } from '@/api/shop/shopCouponApplyCate/model';
import { ShopCouponApplyItem } from '@/api/shop/shopCouponApplyItem/model';
/**
* 优惠券

View File

@@ -1,4 +1,3 @@
/**
* 优惠券
*/
@@ -7,5 +6,4 @@ export interface ShopCouponApplyCate {
couponId?: number;
cateId?: number;
cateLevel?: number;
}

View File

@@ -1,4 +1,3 @@
/**
* 优惠券
*/
@@ -7,5 +6,4 @@ export interface ShopCouponApplyItem {
couponId?: number;
type?: number;
pk?: number;
}

View File

@@ -116,7 +116,10 @@ export async function approveShopDealerApply(id: number) {
/**
* 驳回分销商申请
*/
export async function rejectShopDealerApply(id: number, data: { rejectReason: string }) {
export async function rejectShopDealerApply(
id: number,
data: { rejectReason: string }
) {
const res = await request.put<ApiResult<unknown>>(
`/shop/shop-dealer-apply/${id}/reject`,
data

View File

@@ -78,7 +78,9 @@ export async function removeShopDealerCapital(id?: number) {
/**
* 批量删除分销商资金明细表
*/
export async function removeBatchShopDealerCapital(data: (number | undefined)[]) {
export async function removeBatchShopDealerCapital(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/shop/shop-dealer-capital/batch',
{

View File

@@ -8,6 +8,8 @@ export interface ShopDealerCapital {
id?: number;
// 分销商用户ID
userId?: number;
// 分销商昵称
nickName?: string;
// 订单ID
orderId?: number;
// 订单编号

View File

@@ -213,7 +213,6 @@ export async function exportShopDealerOrder(params?: ShopDealerOrderParam) {
message.destroy();
message.success(`成功导出 ${list.length} 条记录`);
}, 1000);
} catch (error: any) {
message.destroy();
message.error(error.message || '导出失败,请重试');

View File

@@ -12,6 +12,8 @@ export interface ShopDealerOrder {
title?: string;
// 买家用户昵称
nickname?: string;
// 真实姓名
realName?: string;
// 订单编号
orderNo?: string;
// 订单总金额(不含运费)

View File

@@ -104,7 +104,10 @@ export async function removeBatchShopDealerPoster(ids: (number | undefined)[]) {
* 生成海报
*/
export async function generatePoster(userId: number, config?: any) {
const res = await request.post('/shop/dealer/poster/generate', { userId, config });
const res = await request.post('/shop/dealer/poster/generate', {
userId,
config
});
if (res.data.code === 0) {
return res.data.data;
}
@@ -118,11 +121,15 @@ export async function uploadPosterBackground(file: File) {
const formData = new FormData();
formData.append('file', file);
const res = await request.post('/shop/dealer/poster/upload/background', formData, {
const res = await request.post(
'/shop/dealer/poster/upload/background',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
});
}
);
if (res.data.code === 0) {
return res.data.data;

View File

@@ -79,7 +79,9 @@ export async function removeShopDealerRecord(id?: number) {
/**
* 批量删除客户跟进情况
*/
export async function removeBatchShopDealerRecord(data: (number | undefined)[]) {
export async function removeBatchShopDealerRecord(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/shop/shop-dealer-record/batch',
{

View File

@@ -78,7 +78,9 @@ export async function removeShopDealerReferee(id?: number) {
/**
* 批量删除分销商推荐关系表
*/
export async function removeBatchShopDealerReferee(data: (number | undefined)[]) {
export async function removeBatchShopDealerReferee(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/shop/shop-dealer-referee/batch',
{

View File

@@ -78,7 +78,9 @@ export async function removeShopDealerSetting(id?: number) {
/**
* 批量删除分销商设置表
*/
export async function removeBatchShopDealerSetting(data: (number | undefined)[]) {
export async function removeBatchShopDealerSetting(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/shop/shop-dealer-setting/batch',
{

View File

@@ -129,12 +129,9 @@ export async function importShopDealerUsers(file: File) {
* 导出分销商用户
*/
export async function exportShopDealerUsers(params?: ShopDealerUserParam) {
const res = await request.get<Blob>(
'/shop/shop-dealer-user/export',
{
const res = await request.get<Blob>('/shop/shop-dealer-user/export', {
params,
responseType: 'blob'
}
);
});
return res.data;
}

View File

@@ -6,8 +6,12 @@ import type { PageParam } from '@/api';
export interface ShopDealerUser {
// 主键ID
id?: number;
// 类型 0经销商 1企业 2集团
type?: number;
// 自增ID
userId?: number;
// 头像
avatar?: string;
// 姓名
realName?: string;
// 手机号

View File

@@ -78,7 +78,9 @@ export async function removeShopDealerWithdraw(id?: number) {
/**
* 批量删除分销商提现明细表
*/
export async function removeBatchShopDealerWithdraw(data: (number | undefined)[]) {
export async function removeBatchShopDealerWithdraw(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/shop/shop-dealer-withdraw/batch',
{

View File

@@ -52,10 +52,7 @@ export async function addShopExpress(data: ShopExpress) {
* 修改物流公司
*/
export async function updateShopExpress(data: ShopExpress) {
const res = await request.put<ApiResult<unknown>>(
'/shop/shop-express',
data
);
const res = await request.put<ApiResult<unknown>>('/shop/shop-express', data);
if (res.data.code === 0) {
return res.data.message;
}

View File

@@ -5,7 +5,9 @@ import type { ShopExpressTemplate, ShopExpressTemplateParam } from './model';
/**
* 分页查询运费模板
*/
export async function pageShopExpressTemplate(params: ShopExpressTemplateParam) {
export async function pageShopExpressTemplate(
params: ShopExpressTemplateParam
) {
const res = await request.get<ApiResult<PageResult<ShopExpressTemplate>>>(
'/shop/shop-express-template/page',
{
@@ -21,7 +23,9 @@ export async function pageShopExpressTemplate(params: ShopExpressTemplateParam)
/**
* 查询运费模板列表
*/
export async function listShopExpressTemplate(params?: ShopExpressTemplateParam) {
export async function listShopExpressTemplate(
params?: ShopExpressTemplateParam
) {
const res = await request.get<ApiResult<ShopExpressTemplate[]>>(
'/shop/shop-express-template',
{
@@ -78,7 +82,9 @@ export async function removeShopExpressTemplate(id?: number) {
/**
* 批量删除运费模板
*/
export async function removeBatchShopExpressTemplate(data: (number | undefined)[]) {
export async function removeBatchShopExpressTemplate(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/shop/shop-express-template/batch',
{

View File

@@ -1,17 +1,21 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { ShopExpressTemplateDetail, ShopExpressTemplateDetailParam } from './model';
import type {
ShopExpressTemplateDetail,
ShopExpressTemplateDetailParam
} from './model';
/**
* 分页查询运费模板
*/
export async function pageShopExpressTemplateDetail(params: ShopExpressTemplateDetailParam) {
const res = await request.get<ApiResult<PageResult<ShopExpressTemplateDetail>>>(
'/shop/shop-express-template-detail/page',
{
export async function pageShopExpressTemplateDetail(
params: ShopExpressTemplateDetailParam
) {
const res = await request.get<
ApiResult<PageResult<ShopExpressTemplateDetail>>
>('/shop/shop-express-template-detail/page', {
params
}
);
});
if (res.data.code === 0) {
return res.data.data;
}
@@ -21,7 +25,9 @@ export async function pageShopExpressTemplateDetail(params: ShopExpressTemplateD
/**
* 查询运费模板列表
*/
export async function listShopExpressTemplateDetail(params?: ShopExpressTemplateDetailParam) {
export async function listShopExpressTemplateDetail(
params?: ShopExpressTemplateDetailParam
) {
const res = await request.get<ApiResult<ShopExpressTemplateDetail[]>>(
'/shop/shop-express-template-detail',
{
@@ -37,7 +43,9 @@ export async function listShopExpressTemplateDetail(params?: ShopExpressTemplate
/**
* 添加运费模板
*/
export async function addShopExpressTemplateDetail(data: ShopExpressTemplateDetail) {
export async function addShopExpressTemplateDetail(
data: ShopExpressTemplateDetail
) {
const res = await request.post<ApiResult<unknown>>(
'/shop/shop-express-template-detail',
data
@@ -51,7 +59,9 @@ export async function addShopExpressTemplateDetail(data: ShopExpressTemplateDeta
/**
* 修改运费模板
*/
export async function updateShopExpressTemplateDetail(data: ShopExpressTemplateDetail) {
export async function updateShopExpressTemplateDetail(
data: ShopExpressTemplateDetail
) {
const res = await request.put<ApiResult<unknown>>(
'/shop/shop-express-template-detail',
data
@@ -78,7 +88,9 @@ export async function removeShopExpressTemplateDetail(id?: number) {
/**
* 批量删除运费模板
*/
export async function removeBatchShopExpressTemplateDetail(data: (number | undefined)[]) {
export async function removeBatchShopExpressTemplateDetail(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
'/shop/shop-express-template-detail/batch',
{

View File

@@ -94,7 +94,7 @@ export interface ShopGoods {
supplierMerchantId?: number;
supplierName?: string;
// 状态0未上架1上架
isShow?: number;
isShow?: boolean;
// 状态, 0上架 1待上架 2待审核 3审核不通过
status?: number;
// 备注
@@ -124,6 +124,19 @@ export interface ShopGoods {
canUseDate?: string;
ensureTag?: string;
expiredDay?: number;
// --- 分销/佣金(新字段,后端保持 snake_case---
// 是否开启分销佣金0关闭 1开启
isOpenCommission?: number;
// 分佣类型10固定金额 20百分比
commissionType?: number;
// 一级/二级/三级分销佣金(单位以服务端为准)
firstMoney?: number;
secondMoney?: number;
thirdMoney?: number;
// 一级/二级分红(单位以服务端为准)
firstDividend?: number;
secondDividend?: number;
}
export interface BathSet {

View File

@@ -79,7 +79,9 @@ export async function removeShopGoodsCategory(id?: number) {
/**
* 批量删除商品分类
*/
export async function removeBatchShopGoodsCategory(data: (number | undefined)[]) {
export async function removeBatchShopGoodsCategory(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/shop/shop-goods-category/batch',
{

View File

@@ -1,12 +1,17 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import { MODULES_API_URL } from '@/config/setting';
import { ShopGoodsRoleCommission, ShopGoodsRoleCommissionParam } from '@/api/shop/shopGoodsRoleCommission/model';
import {
ShopGoodsRoleCommission,
ShopGoodsRoleCommissionParam
} from '@/api/shop/shopGoodsRoleCommission/model';
/**
* 分页查询商品绑定角色的分润金额
*/
export async function pageShopGoodsRoleCommission(params: ShopGoodsRoleCommissionParam) {
export async function pageShopGoodsRoleCommission(
params: ShopGoodsRoleCommissionParam
) {
const res = await request.get<ApiResult<PageResult<ShopGoodsRoleCommission>>>(
MODULES_API_URL + '/shop/shop-goods-role-commission/page',
{
@@ -22,7 +27,9 @@ export async function pageShopGoodsRoleCommission(params: ShopGoodsRoleCommissio
/**
* 查询商品绑定角色的分润金额列表
*/
export async function listShopGoodsRoleCommission(params?: ShopGoodsRoleCommissionParam) {
export async function listShopGoodsRoleCommission(
params?: ShopGoodsRoleCommissionParam
) {
const res = await request.get<ApiResult<ShopGoodsRoleCommission[]>>(
MODULES_API_URL + '/shop/shop-goods-role-commission',
{
@@ -38,7 +45,9 @@ export async function listShopGoodsRoleCommission(params?: ShopGoodsRoleCommissi
/**
* 添加商品绑定角色的分润金额
*/
export async function addShopGoodsRoleCommission(data: ShopGoodsRoleCommission) {
export async function addShopGoodsRoleCommission(
data: ShopGoodsRoleCommission
) {
const res = await request.post<ApiResult<unknown>>(
MODULES_API_URL + '/shop/shop-goods-role-commission',
data
@@ -52,7 +61,9 @@ export async function addShopGoodsRoleCommission(data: ShopGoodsRoleCommission)
/**
* 修改商品绑定角色的分润金额
*/
export async function updateShopGoodsRoleCommission(data: ShopGoodsRoleCommission) {
export async function updateShopGoodsRoleCommission(
data: ShopGoodsRoleCommission
) {
const res = await request.put<ApiResult<unknown>>(
MODULES_API_URL + '/shop/shop-goods-role-commission',
data
@@ -79,7 +90,9 @@ export async function removeShopGoodsRoleCommission(id?: number) {
/**
* 批量删除商品绑定角色的分润金额
*/
export async function removeBatchShopGoodsRoleCommission(data: (number | undefined)[]) {
export async function removeBatchShopGoodsRoleCommission(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/shop/shop-goods-role-commission/batch',
{

View File

@@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting';
/**
* 分页查询商户账号
*/
export async function pageShopMerchantAccount(params: ShopMerchantAccountParam) {
export async function pageShopMerchantAccount(
params: ShopMerchantAccountParam
) {
const res = await request.get<ApiResult<PageResult<ShopMerchantAccount>>>(
MODULES_API_URL + '/shop/shop-merchant-account/page',
{
@@ -22,7 +24,9 @@ export async function pageShopMerchantAccount(params: ShopMerchantAccountParam)
/**
* 查询商户账号列表
*/
export async function listShopMerchantAccount(params?: ShopMerchantAccountParam) {
export async function listShopMerchantAccount(
params?: ShopMerchantAccountParam
) {
const res = await request.get<ApiResult<ShopMerchantAccount[]>>(
MODULES_API_URL + '/shop/shop-merchant-account',
{
@@ -79,7 +83,9 @@ export async function removeShopMerchantAccount(id?: number) {
/**
* 批量删除商户账号
*/
export async function removeBatchShopMerchantAccount(data: (number | undefined)[]) {
export async function removeBatchShopMerchantAccount(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/shop/shop-merchant-account/batch',
{

View File

@@ -1,5 +1,5 @@
import type { PageParam } from '@/api';
import {OrderGoods} from "@/api/system/orderGoods/model";
import { OrderGoods } from '@/api/system/orderGoods/model';
/**
* 订单
@@ -136,9 +136,9 @@ export interface ShopOrder {
// 系统版本号 0当前版本 value=其他版本
version?: number;
// 买家备注
buyerRemarks: undefined,
buyerRemarks: undefined;
// 商家备注
merchantRemarks: undefined,
merchantRemarks: undefined;
// 用户id
userId?: number;
// 备注

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