diff --git a/apps/web-antd/src/api/bpm/category/index.ts b/apps/web-antd/src/api/bpm/category/index.ts index d9926a3a8..852b2a868 100644 --- a/apps/web-antd/src/api/bpm/category/index.ts +++ b/apps/web-antd/src/api/bpm/category/index.ts @@ -15,12 +15,17 @@ export namespace BpmCategoryApi { /** 查询流程分类分页 */ export async function getCategoryPage(params: PageParam) { - return requestClient.get>('/bpm/category/page', { params }); + return requestClient.get>( + '/bpm/category/page', + { params }, + ); } /** 查询流程分类详情 */ export async function getCategory(id: number) { - return requestClient.get(`/bpm/category/get?id=${id}`); + return requestClient.get( + `/bpm/category/get?id=${id}`, + ); } /** 新增流程分类 */ diff --git a/apps/web-antd/src/api/infra/api-access-log/index.ts b/apps/web-antd/src/api/infra/api-access-log/index.ts index 4eb727fb7..656e38084 100644 --- a/apps/web-antd/src/api/infra/api-access-log/index.ts +++ b/apps/web-antd/src/api/infra/api-access-log/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace InfraApiAccessLogApi { /** API 访问日志信息 */ - export interface SystemApiAccessLog { + export interface ApiAccessLog { id: number; traceId: string; userId: number; @@ -30,13 +30,15 @@ export namespace InfraApiAccessLogApi { /** 查询 API 访问日志列表 */ export function getApiAccessLogPage(params: PageParam) { - return requestClient.get>( + return requestClient.get>( '/infra/api-access-log/page', - { params } + { params }, ); } /** 导出 API 访问日志 */ export function exportApiAccessLog(params: any) { - return requestClient.download('/infra/api-access-log/export-excel', { params }); + return requestClient.download('/infra/api-access-log/export-excel', { + params, + }); } diff --git a/apps/web-antd/src/api/infra/api-error-log/index.ts b/apps/web-antd/src/api/infra/api-error-log/index.ts index dcca22c5f..863f73e9b 100644 --- a/apps/web-antd/src/api/infra/api-error-log/index.ts +++ b/apps/web-antd/src/api/infra/api-error-log/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace InfraApiErrorLogApi { /** API 错误日志信息 */ - export interface SystemApiErrorLog { + export interface ApiErrorLog { id: number; traceId: string; userId: number; @@ -34,18 +34,22 @@ export namespace InfraApiErrorLogApi { /** 查询 API 错误日志列表 */ export function getApiErrorLogPage(params: PageParam) { - return requestClient.get>( + return requestClient.get>( '/infra/api-error-log/page', - { params } + { params }, ); } /** 更新 API 错误日志的处理状态 */ export function updateApiErrorLogStatus(id: number, processStatus: number) { - return requestClient.put(`/infra/api-error-log/update-status?id=${id}&processStatus=${processStatus}`); + return requestClient.put( + `/infra/api-error-log/update-status?id=${id}&processStatus=${processStatus}`, + ); } /** 导出 API 错误日志 */ export function exportApiErrorLog(params: any) { - return requestClient.download('/infra/api-error-log/export-excel', { params }); + return requestClient.download('/infra/api-error-log/export-excel', { + params, + }); } diff --git a/apps/web-antd/src/api/infra/codegen/index.ts b/apps/web-antd/src/api/infra/codegen/index.ts index 6f3969fb0..d8fea0453 100644 --- a/apps/web-antd/src/api/infra/codegen/index.ts +++ b/apps/web-antd/src/api/infra/codegen/index.ts @@ -79,21 +79,30 @@ export namespace InfraCodegenApi { /** 查询列表代码生成表定义 */ export function getCodegenTableList(dataSourceConfigId: number) { - return requestClient.get('/infra/codegen/table/list?', { - params: { dataSourceConfigId }, - }); + return requestClient.get( + '/infra/codegen/table/list?', + { + params: { dataSourceConfigId }, + }, + ); } /** 查询列表代码生成表定义 */ export function getCodegenTablePage(params: PageParam) { - return requestClient.get>('/infra/codegen/table/page', { params }); + return requestClient.get>( + '/infra/codegen/table/page', + { params }, + ); } /** 查询详情代码生成表定义 */ export function getCodegenTable(tableId: number) { - return requestClient.get('/infra/codegen/detail', { - params: { tableId }, - }); + return requestClient.get( + '/infra/codegen/detail', + { + params: { tableId }, + }, + ); } /** 修改代码生成表定义 */ @@ -110,9 +119,12 @@ export function syncCodegenFromDB(tableId: number) { /** 预览生成代码 */ export function previewCodegen(tableId: number) { - return requestClient.get('/infra/codegen/preview', { - params: { tableId }, - }); + return requestClient.get( + '/infra/codegen/preview', + { + params: { tableId }, + }, + ); } /** 下载生成代码 */ @@ -124,11 +136,16 @@ export function downloadCodegen(tableId: number) { /** 获得表定义 */ export function getSchemaTableList(params: any) { - return requestClient.get('/infra/codegen/db/table/list', { params }); + return requestClient.get( + '/infra/codegen/db/table/list', + { params }, + ); } /** 基于数据库的表结构,创建代码生成器的表定义 */ -export function createCodegenList(data: InfraCodegenApi.CodegenCreateListReqVO) { +export function createCodegenList( + data: InfraCodegenApi.CodegenCreateListReqVO, +) { return requestClient.post('/infra/codegen/create-list', data); } diff --git a/apps/web-antd/src/api/infra/config/index.ts b/apps/web-antd/src/api/infra/config/index.ts index 059579f23..3911e01c7 100644 --- a/apps/web-antd/src/api/infra/config/index.ts +++ b/apps/web-antd/src/api/infra/config/index.ts @@ -1,9 +1,10 @@ -import { requestClient } from '#/api/request'; import type { PageParam, PageResult } from '@vben/request'; +import { requestClient } from '#/api/request'; + export namespace InfraConfigApi { /** 参数配置信息 */ - export interface InfraConfig { + export interface Config { id?: number; category: string; name: string; @@ -18,28 +19,33 @@ export namespace InfraConfigApi { /** 查询参数列表 */ export function getConfigPage(params: PageParam) { - return requestClient.get>('/infra/config/page', { - params - }); + return requestClient.get>( + '/infra/config/page', + { + params, + }, + ); } /** 查询参数详情 */ export function getConfig(id: number) { - return requestClient.get(`/infra/config/get?id=${id}`); + return requestClient.get(`/infra/config/get?id=${id}`); } /** 根据参数键名查询参数值 */ export function getConfigKey(configKey: string) { - return requestClient.get(`/infra/config/get-value-by-key?key=${configKey}`); + return requestClient.get( + `/infra/config/get-value-by-key?key=${configKey}`, + ); } /** 新增参数 */ -export function createConfig(data: InfraConfigApi.InfraConfig) { +export function createConfig(data: InfraConfigApi.Config) { return requestClient.post('/infra/config/create', data); } /** 修改参数 */ -export function updateConfig(data: InfraConfigApi.InfraConfig) { +export function updateConfig(data: InfraConfigApi.Config) { return requestClient.put('/infra/config/update', data); } @@ -51,6 +57,6 @@ export function deleteConfig(id: number) { /** 导出参数 */ export function exportConfig(params: any) { return requestClient.download('/infra/config/export', { - params + params, }); } diff --git a/apps/web-antd/src/api/infra/data-source-config/index.ts b/apps/web-antd/src/api/infra/data-source-config/index.ts index 2b9b7617b..88641f654 100644 --- a/apps/web-antd/src/api/infra/data-source-config/index.ts +++ b/apps/web-antd/src/api/infra/data-source-config/index.ts @@ -2,7 +2,7 @@ import { requestClient } from '#/api/request'; export namespace InfraDataSourceConfigApi { /** 数据源配置信息 */ - export interface InfraDataSourceConfig { + export interface DataSourceConfig { id?: number; name: string; url: string; @@ -14,25 +14,33 @@ export namespace InfraDataSourceConfigApi { /** 查询数据源配置列表 */ export function getDataSourceConfigList() { - return requestClient.get('/infra/data-source-config/list'); + return requestClient.get( + '/infra/data-source-config/list', + ); } /** 查询数据源配置详情 */ export function getDataSourceConfig(id: number) { - return requestClient.get(`/infra/data-source-config/get?id=${id}`); + return requestClient.get( + `/infra/data-source-config/get?id=${id}`, + ); } /** 新增数据源配置 */ -export function createDataSourceConfig(data: InfraDataSourceConfigApi.InfraDataSourceConfig) { +export function createDataSourceConfig( + data: InfraDataSourceConfigApi.DataSourceConfig, +) { return requestClient.post('/infra/data-source-config/create', data); } /** 修改数据源配置 */ -export function updateDataSourceConfig(data: InfraDataSourceConfigApi.InfraDataSourceConfig) { +export function updateDataSourceConfig( + data: InfraDataSourceConfigApi.DataSourceConfig, +) { return requestClient.put('/infra/data-source-config/update', data); } /** 删除数据源配置 */ export function deleteDataSourceConfig(id: number) { return requestClient.delete(`/infra/data-source-config/delete?id=${id}`); -} \ No newline at end of file +} diff --git a/apps/web-antd/src/api/infra/demo/demo01/index.ts b/apps/web-antd/src/api/infra/demo/demo01/index.ts index 287117584..b03a2aef0 100644 --- a/apps/web-antd/src/api/infra/demo/demo01/index.ts +++ b/apps/web-antd/src/api/infra/demo/demo01/index.ts @@ -16,12 +16,17 @@ export namespace Demo01ContactApi { /** 查询示例联系人分页 */ export function getDemo01ContactPage(params: PageParam) { - return requestClient.get>('/infra/demo01-contact/page', { params }); + return requestClient.get>( + '/infra/demo01-contact/page', + { params }, + ); } /** 查询示例联系人详情 */ export function getDemo01Contact(id: number) { - return requestClient.get(`/infra/demo01-contact/get?id=${id}`); + return requestClient.get( + `/infra/demo01-contact/get?id=${id}`, + ); } /** 新增示例联系人 */ diff --git a/apps/web-antd/src/api/infra/demo/demo02/index.ts b/apps/web-antd/src/api/infra/demo/demo02/index.ts index c231f8d94..45fcb148d 100644 --- a/apps/web-antd/src/api/infra/demo/demo02/index.ts +++ b/apps/web-antd/src/api/infra/demo/demo02/index.ts @@ -12,12 +12,17 @@ export namespace Demo02CategoryApi { /** 查询示例分类列表 */ export function getDemo02CategoryList(params: any) { - return requestClient.get('/infra/demo02-category/list', { params }); + return requestClient.get( + '/infra/demo02-category/list', + { params }, + ); } /** 查询示例分类详情 */ export function getDemo02Category(id: number) { - return requestClient.get(`/infra/demo02-category/get?id=${id}`); + return requestClient.get( + `/infra/demo02-category/get?id=${id}`, + ); } /** 新增示例分类 */ diff --git a/apps/web-antd/src/api/infra/demo/demo03/erp/index.ts b/apps/web-antd/src/api/infra/demo/demo03/erp/index.ts index a77d78c3f..02183af11 100644 --- a/apps/web-antd/src/api/infra/demo/demo03/erp/index.ts +++ b/apps/web-antd/src/api/infra/demo/demo03/erp/index.ts @@ -31,12 +31,17 @@ export namespace Demo03StudentApi { /** 查询学生分页 */ export function getDemo03StudentPage(params: PageParam) { - return requestClient.get>('/infra/demo03-student/page', { params }); + return requestClient.get>( + '/infra/demo03-student/page', + { params }, + ); } /** 查询学生详情 */ export function getDemo03Student(id: number) { - return requestClient.get(`/infra/demo03-student/get?id=${id}`); + return requestClient.get( + `/infra/demo03-student/get?id=${id}`, + ); } /** 新增学生 */ @@ -63,9 +68,12 @@ export function exportDemo03Student(params: any) { /** 获得学生课程分页 */ export function getDemo03CoursePage(params: PageParam) { - return requestClient.get>(`/infra/demo03-student/demo03-course/page`, { - params, - }); + return requestClient.get>( + `/infra/demo03-student/demo03-course/page`, + { + params, + }, + ); } /** 新增学生课程 */ export function createDemo03Course(data: Demo03StudentApi.Demo03Course) { @@ -79,21 +87,28 @@ export function updateDemo03Course(data: Demo03StudentApi.Demo03Course) { /** 删除学生课程 */ export function deleteDemo03Course(id: number) { - return requestClient.delete(`/infra/demo03-student/demo03-course/delete?id=${id}`); + return requestClient.delete( + `/infra/demo03-student/demo03-course/delete?id=${id}`, + ); } /** 获得学生课程 */ export function getDemo03Course(id: number) { - return requestClient.get(`/infra/demo03-student/demo03-course/get?id=${id}`); + return requestClient.get( + `/infra/demo03-student/demo03-course/get?id=${id}`, + ); } // ==================== 子表(学生班级) ==================== /** 获得学生班级分页 */ export function getDemo03GradePage(params: PageParam) { - return requestClient.get>(`/infra/demo03-student/demo03-grade/page`, { - params, - }); + return requestClient.get>( + `/infra/demo03-student/demo03-grade/page`, + { + params, + }, + ); } /** 新增学生班级 */ export function createDemo03Grade(data: Demo03StudentApi.Demo03Grade) { @@ -107,10 +122,14 @@ export function updateDemo03Grade(data: Demo03StudentApi.Demo03Grade) { /** 删除学生班级 */ export function deleteDemo03Grade(id: number) { - return requestClient.delete(`/infra/demo03-student/demo03-grade/delete?id=${id}`); + return requestClient.delete( + `/infra/demo03-student/demo03-grade/delete?id=${id}`, + ); } /** 获得学生班级 */ export function getDemo03Grade(id: number) { - return requestClient.get(`/infra/demo03-student/demo03-grade/get?id=${id}`); + return requestClient.get( + `/infra/demo03-student/demo03-grade/get?id=${id}`, + ); } diff --git a/apps/web-antd/src/api/infra/demo/demo03/inner/index.ts b/apps/web-antd/src/api/infra/demo/demo03/inner/index.ts index 08dae5165..a83cf4215 100644 --- a/apps/web-antd/src/api/infra/demo/demo03/inner/index.ts +++ b/apps/web-antd/src/api/infra/demo/demo03/inner/index.ts @@ -33,12 +33,17 @@ export namespace Demo03StudentApi { /** 查询学生分页 */ export function getDemo03StudentPage(params: PageParam) { - return requestClient.get>('/infra/demo03-student/page', { params }); + return requestClient.get>( + '/infra/demo03-student/page', + { params }, + ); } /** 查询学生详情 */ export function getDemo03Student(id: number) { - return requestClient.get(`/infra/demo03-student/get?id=${id}`); + return requestClient.get( + `/infra/demo03-student/get?id=${id}`, + ); } /** 新增学生 */ diff --git a/apps/web-antd/src/api/infra/demo/demo03/normal/index.ts b/apps/web-antd/src/api/infra/demo/demo03/normal/index.ts index 08dae5165..a83cf4215 100644 --- a/apps/web-antd/src/api/infra/demo/demo03/normal/index.ts +++ b/apps/web-antd/src/api/infra/demo/demo03/normal/index.ts @@ -33,12 +33,17 @@ export namespace Demo03StudentApi { /** 查询学生分页 */ export function getDemo03StudentPage(params: PageParam) { - return requestClient.get>('/infra/demo03-student/page', { params }); + return requestClient.get>( + '/infra/demo03-student/page', + { params }, + ); } /** 查询学生详情 */ export function getDemo03Student(id: number) { - return requestClient.get(`/infra/demo03-student/get?id=${id}`); + return requestClient.get( + `/infra/demo03-student/get?id=${id}`, + ); } /** 新增学生 */ diff --git a/apps/web-antd/src/api/infra/file-config/index.ts b/apps/web-antd/src/api/infra/file-config/index.ts index d5992d3f0..e8371814e 100644 --- a/apps/web-antd/src/api/infra/file-config/index.ts +++ b/apps/web-antd/src/api/infra/file-config/index.ts @@ -1,6 +1,7 @@ -import { requestClient } from '#/api/request'; import type { PageParam, PageResult } from '@vben/request'; +import { requestClient } from '#/api/request'; + export namespace InfraFileConfigApi { /** 文件客户端配置 */ export interface FileClientConfig { @@ -18,7 +19,7 @@ export namespace InfraFileConfigApi { } /** 文件配置信息 */ - export interface InfraFileConfig { + export interface FileConfig { id?: number; name: string; storage?: number; @@ -32,14 +33,19 @@ export namespace InfraFileConfigApi { /** 查询文件配置列表 */ export function getFileConfigPage(params: PageParam) { - return requestClient.get>('/infra/file-config/page', { - params - }); + return requestClient.get>( + '/infra/file-config/page', + { + params, + }, + ); } /** 查询文件配置详情 */ export function getFileConfig(id: number) { - return requestClient.get(`/infra/file-config/get?id=${id}`); + return requestClient.get( + `/infra/file-config/get?id=${id}`, + ); } /** 更新文件配置为主配置 */ @@ -48,12 +54,12 @@ export function updateFileConfigMaster(id: number) { } /** 新增文件配置 */ -export function createFileConfig(data: InfraFileConfigApi.InfraFileConfig) { +export function createFileConfig(data: InfraFileConfigApi.FileConfig) { return requestClient.post('/infra/file-config/create', data); } /** 修改文件配置 */ -export function updateFileConfig(data: InfraFileConfigApi.InfraFileConfig) { +export function updateFileConfig(data: InfraFileConfigApi.FileConfig) { return requestClient.put('/infra/file-config/update', data); } diff --git a/apps/web-antd/src/api/infra/file/index.ts b/apps/web-antd/src/api/infra/file/index.ts index 15ce8fae3..785dce14a 100644 --- a/apps/web-antd/src/api/infra/file/index.ts +++ b/apps/web-antd/src/api/infra/file/index.ts @@ -1,13 +1,13 @@ +import type { AxiosRequestConfig, PageParam, PageResult } from '@vben/request'; + import { requestClient } from '#/api/request'; -import type { PageParam, PageResult } from '@vben/request'; -import type { AxiosRequestConfig } from '@vben/request'; /** Axios 上传进度事件 */ export type AxiosProgressEvent = AxiosRequestConfig['onUploadProgress']; export namespace InfraFileApi { /** 文件信息 */ - export interface InfraFile { + export interface File { id?: number; configId?: number; path: string; @@ -34,8 +34,8 @@ export namespace InfraFileApi { /** 查询文件列表 */ export function getFilePage(params: PageParam) { - return requestClient.get>('/infra/file/page', { - params + return requestClient.get>('/infra/file/page', { + params, }); } @@ -46,17 +46,24 @@ export function deleteFile(id: number) { /** 获取文件预签名地址 */ export function getFilePresignedUrl(path: string) { - return requestClient.get('/infra/file/presigned-url', { - params: { path } - }); + return requestClient.get( + '/infra/file/presigned-url', + { + params: { path }, + }, + ); } /** 创建文件 */ -export function createFile(data: InfraFileApi.InfraFile) { +export function createFile(data: InfraFileApi.File) { return requestClient.post('/infra/file/create', data); } /** 上传文件 */ -export function uploadFile(data: InfraFileApi.FileUploadReqVO, onUploadProgress?: AxiosProgressEvent) { +// TODO @芋艿:这里有爆红 +export function uploadFile( + data: InfraFileApi.FileUploadReqVO, + onUploadProgress?: AxiosProgressEvent, +) { return requestClient.upload('/infra/file/upload', data, { onUploadProgress }); } diff --git a/apps/web-antd/src/api/infra/job-log/index.ts b/apps/web-antd/src/api/infra/job-log/index.ts index f2c756d61..e115b9df7 100644 --- a/apps/web-antd/src/api/infra/job-log/index.ts +++ b/apps/web-antd/src/api/infra/job-log/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace InfraJobLogApi { /** 任务日志信息 */ - export interface InfraJobLog { + export interface JobLog { id?: number; jobId: number; handlerName: string; @@ -22,12 +22,17 @@ export namespace InfraJobLogApi { /** 查询任务日志列表 */ export function getJobLogPage(params: PageParam) { - return requestClient.get>('/infra/job-log/page', { params }); + return requestClient.get>( + '/infra/job-log/page', + { params }, + ); } /** 查询任务日志详情 */ export function getJobLog(id: number) { - return requestClient.get(`/infra/job-log/get?id=${id}`); + return requestClient.get( + `/infra/job-log/get?id=${id}`, + ); } /** 导出定时任务日志 */ diff --git a/apps/web-antd/src/api/infra/job/index.ts b/apps/web-antd/src/api/infra/job/index.ts index 702446921..fcec25c83 100644 --- a/apps/web-antd/src/api/infra/job/index.ts +++ b/apps/web-antd/src/api/infra/job/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace InfraJobApi { /** 任务信息 */ - export interface InfraJob { + export interface Job { id?: number; name: string; status: number; @@ -20,21 +20,23 @@ export namespace InfraJobApi { /** 查询任务列表 */ export function getJobPage(params: PageParam) { - return requestClient.get>('/infra/job/page', { params }); + return requestClient.get>('/infra/job/page', { + params, + }); } /** 查询任务详情 */ export function getJob(id: number) { - return requestClient.get(`/infra/job/get?id=${id}`); + return requestClient.get(`/infra/job/get?id=${id}`); } /** 新增任务 */ -export function createJob(data: InfraJobApi.InfraJob) { +export function createJob(data: InfraJobApi.Job) { return requestClient.post('/infra/job/create', data); } /** 修改定时任务调度 */ -export function updateJob(data: InfraJobApi.InfraJob) { +export function updateJob(data: InfraJobApi.Job) { return requestClient.put('/infra/job/update', data); } @@ -52,7 +54,7 @@ export function exportJob(params: any) { export function updateJobStatus(id: number, status: number) { const params = { id, - status + status, }; return requestClient.put('/infra/job/update-status', { params }); } diff --git a/apps/web-antd/src/api/infra/redis/index.ts b/apps/web-antd/src/api/infra/redis/index.ts index 6a2202833..cb8179da5 100644 --- a/apps/web-antd/src/api/infra/redis/index.ts +++ b/apps/web-antd/src/api/infra/redis/index.ts @@ -1,15 +1,8 @@ import { requestClient } from '#/api/request'; export namespace InfraRedisApi { - /** Redis 监控信息 */ - export interface InfraRedisMonitorInfo { - info: InfraRedisInfo; - dbSize: number; - commandStats: InfraRedisCommandStats[]; - } - /** Redis 信息 */ - export interface InfraRedisInfo { + export interface RedisInfo { io_threaded_reads_processed: string; tracking_clients: string; uptime_in_seconds: string; @@ -175,14 +168,23 @@ export namespace InfraRedisApi { } /** Redis 命令统计 */ - export interface InfraRedisCommandStats { + export interface RedisCommandStats { command: string; calls: number; usec: number; } + + /** Redis 监控信息 */ + export interface RedisMonitorInfo { + info: RedisInfo; + dbSize: number; + commandStats: RedisCommandStats[]; + } } /** 获取 Redis 监控信息 */ export function getRedisMonitorInfo() { - return requestClient.get('/infra/redis/get-monitor-info'); + return requestClient.get( + '/infra/redis/get-monitor-info', + ); } diff --git a/apps/web-antd/src/api/request.ts b/apps/web-antd/src/api/request.ts index fcefa2508..5b5c15fb7 100644 --- a/apps/web-antd/src/api/request.ts +++ b/apps/web-antd/src/api/request.ts @@ -77,7 +77,9 @@ function createRequestClient(baseURL: string, options?: RequestClientOptions) { config.headers.Authorization = formatToken(accessStore.accessToken); config.headers['Accept-Language'] = preferences.app.locale; // 添加租户编号 - config.headers['tenant-id'] = tenantEnable ? accessStore.tenantId : undefined; + config.headers['tenant-id'] = tenantEnable + ? accessStore.tenantId + : undefined; return config; }, }); @@ -131,7 +133,9 @@ baseRequestClient.addRequestInterceptor({ fulfilled: (config) => { const accessStore = useAccessStore(); // 添加租户编号 - config.headers['tenant-id'] = tenantEnable? accessStore.tenantId : undefined; + config.headers['tenant-id'] = tenantEnable + ? accessStore.tenantId + : undefined; return config; }, }); diff --git a/apps/web-antd/src/api/system/area/index.ts b/apps/web-antd/src/api/system/area/index.ts index fb06eda3e..8d3361da5 100644 --- a/apps/web-antd/src/api/system/area/index.ts +++ b/apps/web-antd/src/api/system/area/index.ts @@ -2,7 +2,7 @@ import { requestClient } from '#/api/request'; export namespace SystemAreaApi { /** 地区信息 */ - export interface SystemArea { + export interface Area { id?: number; name: string; code: string; @@ -15,7 +15,7 @@ export namespace SystemAreaApi { /** 获得地区树 */ export function getAreaTree() { - return requestClient.get('/system/area/tree'); + return requestClient.get('/system/area/tree'); } /** 获得 IP 对应的地区名 */ diff --git a/apps/web-antd/src/api/system/dept/index.ts b/apps/web-antd/src/api/system/dept/index.ts index f79c9c758..d2677a793 100644 --- a/apps/web-antd/src/api/system/dept/index.ts +++ b/apps/web-antd/src/api/system/dept/index.ts @@ -2,7 +2,7 @@ import { requestClient } from '#/api/request'; export namespace SystemDeptApi { /** 部门信息 */ - export interface SystemDept { + export interface Dept { id?: number; name: string; parentId?: number; @@ -12,13 +12,13 @@ export namespace SystemDeptApi { phone: string; email: string; createTime: Date; - children?: SystemDept[]; + children?: Dept[]; } } /** 查询部门(精简)列表 */ export async function getSimpleDeptList() { - return requestClient.get('/system/dept/simple-list'); + return requestClient.get('/system/dept/simple-list'); } /** 查询部门列表 */ @@ -28,16 +28,16 @@ export async function getDeptList() { /** 查询部门详情 */ export async function getDept(id: number) { - return requestClient.get(`/system/dept/get?id=${id}`); + return requestClient.get(`/system/dept/get?id=${id}`); } /** 新增部门 */ -export async function createDept(data: SystemDeptApi.SystemDept) { +export async function createDept(data: SystemDeptApi.Dept) { return requestClient.post('/system/dept/create', data); } /** 修改部门 */ -export async function updateDept(data: SystemDeptApi.SystemDept) { +export async function updateDept(data: SystemDeptApi.Dept) { return requestClient.put('/system/dept/update', data); } diff --git a/apps/web-antd/src/api/system/dict/data/index.ts b/apps/web-antd/src/api/system/dict/data/index.ts index 5cf156172..a873d63c0 100644 --- a/apps/web-antd/src/api/system/dict/data/index.ts +++ b/apps/web-antd/src/api/system/dict/data/index.ts @@ -2,17 +2,17 @@ import { requestClient } from '#/api/request'; export namespace SystemDictDataApi { /** 字典数据 */ - export type SystemDictData = { - id?: number; + export type DictData = { colorType: string; + createTime: Date; cssClass: string; dictType: string; + id?: number; label: string; remark: string; sort?: number; status: number; value: string; - createTime: Date; }; } @@ -32,12 +32,12 @@ export function getDictData(id: number) { } // 新增字典数据 -export function createDictData(data: SystemDictDataApi.SystemDictData) { +export function createDictData(data: SystemDictDataApi.DictData) { return requestClient.post('/system/dict-data/create', data); } // 修改字典数据 -export function updateDictData(data: SystemDictDataApi.SystemDictData) { +export function updateDictData(data: SystemDictDataApi.DictData) { return requestClient.put('/system/dict-data/update', data); } diff --git a/apps/web-antd/src/api/system/dict/type/index.ts b/apps/web-antd/src/api/system/dict/type/index.ts index bf4e93586..612fe1052 100644 --- a/apps/web-antd/src/api/system/dict/type/index.ts +++ b/apps/web-antd/src/api/system/dict/type/index.ts @@ -2,13 +2,13 @@ import { requestClient } from '#/api/request'; export namespace SystemDictTypeApi { /** 字典类型 */ - export type SystemDictType = { + export type DictType = { + createTime: Date; id?: number; name: string; remark: string; status: number; type: string; - createTime: Date; }; } @@ -28,12 +28,12 @@ export function getDictType(id: number) { } // 新增字典 -export function createDictType(data: SystemDictTypeApi.SystemDictType) { +export function createDictType(data: SystemDictTypeApi.DictType) { return requestClient.post('/system/dict-type/create', data); } // 修改字典 -export function updateDictType(data: SystemDictTypeApi.SystemDictType) { +export function updateDictType(data: SystemDictTypeApi.DictType) { return requestClient.put('/system/dict-type/update', data); } diff --git a/apps/web-antd/src/api/system/login-log/index.ts b/apps/web-antd/src/api/system/login-log/index.ts index 5b1bfdf06..4be20d9ed 100644 --- a/apps/web-antd/src/api/system/login-log/index.ts +++ b/apps/web-antd/src/api/system/login-log/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace SystemLoginLogApi { /** 登录日志信息 */ - export interface SystemLoginLog { + export interface LoginLog { id: number; logType: number; traceId: number; @@ -21,8 +21,9 @@ export namespace SystemLoginLogApi { /** 查询登录日志列表 */ export function getLoginLogPage(params: PageParam) { - return requestClient.get>('/system/login-log/page', - { params } + return requestClient.get>( + '/system/login-log/page', + { params }, ); } diff --git a/apps/web-antd/src/api/system/mail/account/index.ts b/apps/web-antd/src/api/system/mail/account/index.ts index dc488c35c..8a43a3326 100644 --- a/apps/web-antd/src/api/system/mail/account/index.ts +++ b/apps/web-antd/src/api/system/mail/account/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace SystemMailAccountApi { /** 邮箱账号 */ - export interface SystemMailAccount { + export interface MailAccount { id: number; mail: string; username: string; @@ -21,24 +21,26 @@ export namespace SystemMailAccountApi { /** 查询邮箱账号列表 */ export function getMailAccountPage(params: PageParam) { - return requestClient.get>( + return requestClient.get>( '/system/mail-account/page', - { params } + { params }, ); } /** 查询邮箱账号详情 */ export function getMailAccount(id: number) { - return requestClient.get(`/system/mail-account/get?id=${id}`); + return requestClient.get( + `/system/mail-account/get?id=${id}`, + ); } /** 新增邮箱账号 */ -export function createMailAccount(data: SystemMailAccountApi.SystemMailAccount) { +export function createMailAccount(data: SystemMailAccountApi.MailAccount) { return requestClient.post('/system/mail-account/create', data); } /** 修改邮箱账号 */ -export function updateMailAccount(data: SystemMailAccountApi.SystemMailAccount) { +export function updateMailAccount(data: SystemMailAccountApi.MailAccount) { return requestClient.put('/system/mail-account/update', data); } @@ -49,5 +51,7 @@ export function deleteMailAccount(id: number) { /** 获得邮箱账号精简列表 */ export function getSimpleMailAccountList() { - return requestClient.get('/system/mail-account/simple-list'); + return requestClient.get( + '/system/mail-account/simple-list', + ); } diff --git a/apps/web-antd/src/api/system/mail/log/index.ts b/apps/web-antd/src/api/system/mail/log/index.ts index b328d2ce9..52c9947c5 100644 --- a/apps/web-antd/src/api/system/mail/log/index.ts +++ b/apps/web-antd/src/api/system/mail/log/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace SystemMailLogApi { /** 邮件日志 */ - export interface SystemMailLog { + export interface MailLog { id: number; userId: number; userType: number; @@ -27,15 +27,17 @@ export namespace SystemMailLogApi { /** 查询邮件日志列表 */ export function getMailLogPage(params: PageParam) { - return requestClient.get>( + return requestClient.get>( '/system/mail-log/page', - { params } + { params }, ); } /** 查询邮件日志详情 */ export function getMailLog(id: number) { - return requestClient.get(`/system/mail-log/get?id=${id}`); + return requestClient.get( + `/system/mail-log/get?id=${id}`, + ); } /** 重新发送邮件 */ diff --git a/apps/web-antd/src/api/system/mail/template/index.ts b/apps/web-antd/src/api/system/mail/template/index.ts index 6dc0d2fee..34b4a09d0 100644 --- a/apps/web-antd/src/api/system/mail/template/index.ts +++ b/apps/web-antd/src/api/system/mail/template/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace SystemMailTemplateApi { /** 邮件模版信息 */ - export interface SystemMailTemplate { + export interface MailTemplate { id: number; name: string; code: string; @@ -28,24 +28,26 @@ export namespace SystemMailTemplateApi { /** 查询邮件模版列表 */ export function getMailTemplatePage(params: PageParam) { - return requestClient.get>( + return requestClient.get>( '/system/mail-template/page', - { params } + { params }, ); } /** 查询邮件模版详情 */ export function getMailTemplate(id: number) { - return requestClient.get(`/system/mail-template/get?id=${id}`); + return requestClient.get( + `/system/mail-template/get?id=${id}`, + ); } /** 新增邮件模版 */ -export function createMailTemplate(data: SystemMailTemplateApi.SystemMailTemplate) { +export function createMailTemplate(data: SystemMailTemplateApi.MailTemplate) { return requestClient.post('/system/mail-template/create', data); } /** 修改邮件模版 */ -export function updateMailTemplate(data: SystemMailTemplateApi.SystemMailTemplate) { +export function updateMailTemplate(data: SystemMailTemplateApi.MailTemplate) { return requestClient.put('/system/mail-template/update', data); } diff --git a/apps/web-antd/src/api/system/menu/index.ts b/apps/web-antd/src/api/system/menu/index.ts index 7172b43e4..5d23e5230 100644 --- a/apps/web-antd/src/api/system/menu/index.ts +++ b/apps/web-antd/src/api/system/menu/index.ts @@ -2,7 +2,7 @@ import { requestClient } from '#/api/request'; export namespace SystemMenuApi { /** 菜单信息 */ - export interface SystemMenu { + export interface Menu { id: number; name: string; permission: string; @@ -23,26 +23,28 @@ export namespace SystemMenuApi { /** 查询菜单(精简)列表 */ export async function getSimpleMenusList() { - return requestClient.get('/system/menu/simple-list'); + return requestClient.get('/system/menu/simple-list'); } /** 查询菜单列表 */ export async function getMenuList(params?: Record) { - return requestClient.get('/system/menu/list', { params }); + return requestClient.get('/system/menu/list', { + params, + }); } /** 获取菜单详情 */ export async function getMenu(id: number) { - return requestClient.get(`/system/menu/get?id=${id}`); + return requestClient.get(`/system/menu/get?id=${id}`); } /** 新增菜单 */ -export async function createMenu(data: SystemMenuApi.SystemMenu) { +export async function createMenu(data: SystemMenuApi.Menu) { return requestClient.post('/system/menu/create', data); } /** 修改菜单 */ -export async function updateMenu(data: SystemMenuApi.SystemMenu) { +export async function updateMenu(data: SystemMenuApi.Menu) { return requestClient.put('/system/menu/update', data); } diff --git a/apps/web-antd/src/api/system/notice/index.ts b/apps/web-antd/src/api/system/notice/index.ts index 260bb501f..dac9ec708 100644 --- a/apps/web-antd/src/api/system/notice/index.ts +++ b/apps/web-antd/src/api/system/notice/index.ts @@ -1,9 +1,10 @@ -import { requestClient } from '#/api/request'; import type { PageParam, PageResult } from '@vben/request'; +import { requestClient } from '#/api/request'; + export namespace SystemNoticeApi { /** 公告信息 */ - export interface SystemNotice { + export interface Notice { id?: number; title: string; type: number; @@ -17,21 +18,26 @@ export namespace SystemNoticeApi { /** 查询公告列表 */ export function getNoticePage(params: PageParam) { - return requestClient.get>('/system/notice/page', { params }); + return requestClient.get>( + '/system/notice/page', + { params }, + ); } /** 查询公告详情 */ export function getNotice(id: number) { - return requestClient.get(`/system/notice/get?id=${id}`); + return requestClient.get( + `/system/notice/get?id=${id}`, + ); } /** 新增公告 */ -export function createNotice(data: SystemNoticeApi.SystemNotice) { +export function createNotice(data: SystemNoticeApi.Notice) { return requestClient.post('/system/notice/create', data); } /** 修改公告 */ -export function updateNotice(data: SystemNoticeApi.SystemNotice) { +export function updateNotice(data: SystemNoticeApi.Notice) { return requestClient.put('/system/notice/update', data); } diff --git a/apps/web-antd/src/api/system/notify/message/index.ts b/apps/web-antd/src/api/system/notify/message/index.ts index a84b516c3..a8a4e8968 100644 --- a/apps/web-antd/src/api/system/notify/message/index.ts +++ b/apps/web-antd/src/api/system/notify/message/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace SystemNotifyMessageApi { /** 站内信消息信息 */ - export interface SystemNotifyMessage { + export interface NotifyMessage { id: number; userId: number; userType: number; @@ -22,7 +22,7 @@ export namespace SystemNotifyMessageApi { /** 查询站内信消息列表 */ export function getNotifyMessagePage(params: PageParam) { - return requestClient.get>( + return requestClient.get>( '/system/notify-message/page', { params }, ); @@ -30,7 +30,7 @@ export function getNotifyMessagePage(params: PageParam) { /** 获得我的站内信分页 */ export function getMyNotifyMessagePage(params: PageParam) { - return requestClient.get>( + return requestClient.get>( '/system/notify-message/my-page', { params }, ); @@ -38,9 +38,13 @@ export function getMyNotifyMessagePage(params: PageParam) { /** 批量标记已读 */ export function updateNotifyMessageRead(ids: number[]) { - return requestClient.put('/system/notify-message/update-read', {}, { - params: { ids }, - }); + return requestClient.put( + '/system/notify-message/update-read', + {}, + { + params: { ids }, + }, + ); } /** 标记所有站内信为已读 */ @@ -50,7 +54,9 @@ export function updateAllNotifyMessageRead() { /** 获取当前用户的最新站内信列表 */ export function getUnreadNotifyMessageList() { - return requestClient.get('/system/notify-message/get-unread-list'); + return requestClient.get( + '/system/notify-message/get-unread-list', + ); } /** 获得当前用户的未读站内信数量 */ diff --git a/apps/web-antd/src/api/system/notify/template/index.ts b/apps/web-antd/src/api/system/notify/template/index.ts index 7c33f1b8b..5f2e3de29 100644 --- a/apps/web-antd/src/api/system/notify/template/index.ts +++ b/apps/web-antd/src/api/system/notify/template/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace SystemNotifyTemplateApi { /** 站内信模板信息 */ - export interface SystemNotifyTemplate { + export interface NotifyTemplate { id?: number; name: string; nickname: string; @@ -17,8 +17,9 @@ export namespace SystemNotifyTemplateApi { } /** 发送站内信请求 */ - export interface SystemNotifySendReqVO { + export interface NotifySendReqVO { userId: number; + userType: number; templateCode: string; templateParams: Record; } @@ -26,7 +27,7 @@ export namespace SystemNotifyTemplateApi { /** 查询站内信模板列表 */ export function getNotifyTemplatePage(params: PageParam) { - return requestClient.get>( + return requestClient.get>( '/system/notify-template/page', { params }, ); @@ -34,16 +35,22 @@ export function getNotifyTemplatePage(params: PageParam) { /** 查询站内信模板详情 */ export function getNotifyTemplate(id: number) { - return requestClient.get(`/system/notify-template/get?id=${id}`); + return requestClient.get( + `/system/notify-template/get?id=${id}`, + ); } /** 新增站内信模板 */ -export function createNotifyTemplate(data: SystemNotifyTemplateApi.SystemNotifyTemplate) { +export function createNotifyTemplate( + data: SystemNotifyTemplateApi.NotifyTemplate, +) { return requestClient.post('/system/notify-template/create', data); } /** 修改站内信模板 */ -export function updateNotifyTemplate(data: SystemNotifyTemplateApi.SystemNotifyTemplate) { +export function updateNotifyTemplate( + data: SystemNotifyTemplateApi.NotifyTemplate, +) { return requestClient.put('/system/notify-template/update', data); } @@ -54,10 +61,12 @@ export function deleteNotifyTemplate(id: number) { /** 导出站内信模板 */ export function exportNotifyTemplate(params: any) { - return requestClient.download('/system/notify-template/export-excel', { params }); + return requestClient.download('/system/notify-template/export-excel', { + params, + }); } /** 发送站内信 */ -export function sendNotify(data: SystemNotifyTemplateApi.SystemNotifySendReqVO) { +export function sendNotify(data: SystemNotifyTemplateApi.NotifySendReqVO) { return requestClient.post('/system/notify-template/send-notify', data); } diff --git a/apps/web-antd/src/api/system/oauth2/client/index.ts b/apps/web-antd/src/api/system/oauth2/client/index.ts index 672eace83..7c1db7747 100644 --- a/apps/web-antd/src/api/system/oauth2/client/index.ts +++ b/apps/web-antd/src/api/system/oauth2/client/index.ts @@ -1,9 +1,10 @@ -import { requestClient } from '#/api/request'; import type { PageParam, PageResult } from '@vben/request'; +import { requestClient } from '#/api/request'; + export namespace SystemOAuth2ClientApi { /** OAuth2.0 客户端信息 */ - export interface SystemOAuth2Client { + export interface OAuth2Client { id?: number; clientId: string; secret: string; @@ -27,23 +28,26 @@ export namespace SystemOAuth2ClientApi { /** 查询 OAuth2.0 客户端列表 */ export function getOAuth2ClientPage(params: PageParam) { - return requestClient.get>('/system/oauth2-client/page', - { params } + return requestClient.get>( + '/system/oauth2-client/page', + { params }, ); } /** 查询 OAuth2.0 客户端详情 */ export function getOAuth2Client(id: number) { - return requestClient.get(`/system/oauth2-client/get?id=${id}`); + return requestClient.get( + `/system/oauth2-client/get?id=${id}`, + ); } /** 新增 OAuth2.0 客户端 */ -export function createOAuth2Client(data: SystemOAuth2ClientApi.SystemOAuth2Client) { +export function createOAuth2Client(data: SystemOAuth2ClientApi.OAuth2Client) { return requestClient.post('/system/oauth2-client/create', data); } /** 修改 OAuth2.0 客户端 */ -export function updateOAuth2Client(data: SystemOAuth2ClientApi.SystemOAuth2Client) { +export function updateOAuth2Client(data: SystemOAuth2ClientApi.OAuth2Client) { return requestClient.put('/system/oauth2-client/update', data); } diff --git a/apps/web-antd/src/api/system/oauth2/open/index.ts b/apps/web-antd/src/api/system/oauth2/open/index.ts index 7347001d5..16d9c7e62 100644 --- a/apps/web-antd/src/api/system/oauth2/open/index.ts +++ b/apps/web-antd/src/api/system/oauth2/open/index.ts @@ -1,20 +1,25 @@ import { requestClient } from '#/api/request'; /** OAuth2.0 授权信息响应 */ -export interface OAuth2OpenAuthorizeInfoRespVO { - client: { - name: string; - logo: string; - }; - scopes: { - key: string; - value: boolean; - }[]; +export namespace SystemOAuth2ClientApi { + /** 授权信息 */ + export interface AuthorizeInfoRespVO { + client: { + logo: string; + name: string; + }; + scopes: { + key: string; + value: boolean; + }[]; + } } /** 获得授权信息 */ export function getAuthorize(clientId: string) { - return requestClient.get(`/system/oauth2/authorize?clientId=${clientId}`); + return requestClient.get( + `/system/oauth2/authorize?clientId=${clientId}`, + ); } /** 发起授权 */ @@ -25,7 +30,7 @@ export function authorize( state: string, autoApprove: boolean, checkedScopes: string[], - uncheckedScopes: string[] + uncheckedScopes: string[], ) { // 构建 scopes const scopes: Record = {}; @@ -35,19 +40,19 @@ export function authorize( for (const scope of uncheckedScopes) { scopes[scope] = false; } - + // 发起请求 return requestClient.post('/system/oauth2/authorize', null, { headers: { - 'Content-Type': 'application/x-www-form-urlencoded' + 'Content-Type': 'application/x-www-form-urlencoded', }, params: { response_type: responseType, client_id: clientId, redirect_uri: redirectUri, - state: state, + state, auto_approve: autoApprove, - scope: JSON.stringify(scopes) - } + scope: JSON.stringify(scopes), + }, }); -} +} diff --git a/apps/web-antd/src/api/system/oauth2/token/index.ts b/apps/web-antd/src/api/system/oauth2/token/index.ts index 356537c48..bd3697915 100644 --- a/apps/web-antd/src/api/system/oauth2/token/index.ts +++ b/apps/web-antd/src/api/system/oauth2/token/index.ts @@ -1,9 +1,10 @@ -import { requestClient } from '#/api/request'; import type { PageParam, PageResult } from '@vben/request'; +import { requestClient } from '#/api/request'; + export namespace SystemOAuth2TokenApi { /** OAuth2.0 令牌信息 */ - export interface SystemOAuth2Token { + export interface OAuth2Token { id?: number; accessToken: string; refreshToken: string; @@ -17,12 +18,17 @@ export namespace SystemOAuth2TokenApi { /** 查询 OAuth2.0 令牌列表 */ export function getOAuth2TokenPage(params: PageParam) { - return requestClient.get>('/system/oauth2-token/page', { - params - }); + return requestClient.get>( + '/system/oauth2-token/page', + { + params, + }, + ); } /** 删除 OAuth2.0 令牌 */ export function deleteOAuth2Token(accessToken: string) { - return requestClient.delete(`/system/oauth2-token/delete?accessToken=${accessToken}`); + return requestClient.delete( + `/system/oauth2-token/delete?accessToken=${accessToken}`, + ); } diff --git a/apps/web-antd/src/api/system/operate-log/index.ts b/apps/web-antd/src/api/system/operate-log/index.ts index ab0cf4599..8b84a260e 100644 --- a/apps/web-antd/src/api/system/operate-log/index.ts +++ b/apps/web-antd/src/api/system/operate-log/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace SystemOperateLogApi { /** 操作日志信息 */ - export interface SystemOperateLog { + export interface OperateLog { id: number; traceId: string; userType: number; @@ -27,8 +27,9 @@ export namespace SystemOperateLogApi { /** 查询操作日志列表 */ export function getOperateLogPage(params: PageParam) { - return requestClient.get>('/system/operate-log/page', - { params } + return requestClient.get>( + '/system/operate-log/page', + { params }, ); } diff --git a/apps/web-antd/src/api/system/permission/index.ts b/apps/web-antd/src/api/system/permission/index.ts index fe958a04c..9039d9a05 100644 --- a/apps/web-antd/src/api/system/permission/index.ts +++ b/apps/web-antd/src/api/system/permission/index.ts @@ -2,19 +2,19 @@ import { requestClient } from '#/api/request'; export namespace SystemPermissionApi { /** 分配用户角色请求 */ - export interface SystemAssignUserRoleReqVO { + export interface AssignUserRoleReqVO { userId: number; roleIds: number[]; } /** 分配角色菜单请求 */ - export interface SystemAssignRoleMenuReqVO { + export interface AssignRoleMenuReqVO { roleId: number; menuIds: number[]; } /** 分配角色数据权限请求 */ - export interface SystemAssignRoleDataScopeReqVO { + export interface AssignRoleDataScopeReqVO { roleId: number; dataScope: number; dataScopeDeptIds: number[]; @@ -30,14 +30,14 @@ export async function getRoleMenuList(roleId: number) { /** 赋予角色菜单权限 */ export async function assignRoleMenu( - data: SystemPermissionApi.SystemAssignRoleMenuReqVO, + data: SystemPermissionApi.AssignRoleMenuReqVO, ) { return requestClient.post('/system/permission/assign-role-menu', data); } /** 赋予角色数据权限 */ export async function assignRoleDataScope( - data: SystemPermissionApi.SystemAssignRoleDataScopeReqVO, + data: SystemPermissionApi.AssignRoleDataScopeReqVO, ) { return requestClient.post('/system/permission/assign-role-data-scope', data); } @@ -51,7 +51,7 @@ export async function getUserRoleList(userId: number) { /** 赋予用户角色 */ export async function assignUserRole( - data: SystemPermissionApi.SystemAssignUserRoleReqVO, + data: SystemPermissionApi.AssignUserRoleReqVO, ) { return requestClient.post('/system/permission/assign-user-role', data); } diff --git a/apps/web-antd/src/api/system/post/index.ts b/apps/web-antd/src/api/system/post/index.ts index 5caa023ff..a82f58155 100644 --- a/apps/web-antd/src/api/system/post/index.ts +++ b/apps/web-antd/src/api/system/post/index.ts @@ -1,9 +1,10 @@ +import type { PageParam, PageResult } from '@vben/request'; + import { requestClient } from '#/api/request'; -import type {PageParam, PageResult} from '@vben/request'; export namespace SystemPostApi { /** 岗位信息 */ - export interface SystemPost { + export interface Post { id?: number; name: string; code: string; @@ -16,28 +17,31 @@ export namespace SystemPostApi { /** 查询岗位列表 */ export function getPostPage(params: PageParam) { - return requestClient.get>('/system/post/page', { - params - }); + return requestClient.get>( + '/system/post/page', + { + params, + }, + ); } /** 获取岗位精简信息列表 */ export function getSimplePostList() { - return requestClient.get('/system/post/simple-list'); + return requestClient.get('/system/post/simple-list'); } - /** 查询岗位详情 */ +/** 查询岗位详情 */ export function getPost(id: number) { - return requestClient.get(`/system/post/get?id=${id}`); + return requestClient.get(`/system/post/get?id=${id}`); } /** 新增岗位 */ -export function createPost(data: SystemPostApi.SystemPost) { +export function createPost(data: SystemPostApi.Post) { return requestClient.post('/system/post/create', data); } /** 修改岗位 */ -export function updatePost(data: SystemPostApi.SystemPost) { +export function updatePost(data: SystemPostApi.Post) { return requestClient.put('/system/post/update', data); } @@ -49,6 +53,6 @@ export function deletePost(id: number) { /** 导出岗位 */ export function exportPost(params: any) { return requestClient.download('/system/post/export', { - params + params, }); } diff --git a/apps/web-antd/src/api/system/role/index.ts b/apps/web-antd/src/api/system/role/index.ts index 4705d668b..07824c43e 100644 --- a/apps/web-antd/src/api/system/role/index.ts +++ b/apps/web-antd/src/api/system/role/index.ts @@ -1,9 +1,10 @@ -import { requestClient } from '#/api/request'; import type { PageParam, PageResult } from '@vben/request'; +import { requestClient } from '#/api/request'; + export namespace SystemRoleApi { /** 角色信息 */ - export interface SystemRole { + export interface Role { id?: number; name: string; code: string; @@ -18,26 +19,29 @@ export namespace SystemRoleApi { /** 查询角色列表 */ export function getRolePage(params: PageParam) { - return requestClient.get>('/system/role/page', { params }); + return requestClient.get>( + '/system/role/page', + { params }, + ); } /** 查询角色(精简)列表 */ export function getSimpleRoleList() { - return requestClient.get('/system/role/simple-list'); + return requestClient.get('/system/role/simple-list'); } /** 查询角色详情 */ export function getRole(id: number) { - return requestClient.get(`/system/role/get?id=${id}`); + return requestClient.get(`/system/role/get?id=${id}`); } /** 新增角色 */ -export function createRole(data: SystemRoleApi.SystemRole) { +export function createRole(data: SystemRoleApi.Role) { return requestClient.post('/system/role/create', data); } /** 修改角色 */ -export function updateRole(data: SystemRoleApi.SystemRole) { +export function updateRole(data: SystemRoleApi.Role) { return requestClient.put('/system/role/update', data); } diff --git a/apps/web-antd/src/api/system/sms/channel/index.ts b/apps/web-antd/src/api/system/sms/channel/index.ts index a6beb4e3d..56890bea5 100644 --- a/apps/web-antd/src/api/system/sms/channel/index.ts +++ b/apps/web-antd/src/api/system/sms/channel/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace SystemSmsChannelApi { /** 短信渠道信息 */ - export interface SystemSmsChannel { + export interface SmsChannel { id?: number; code: string; status: number; @@ -19,7 +19,7 @@ export namespace SystemSmsChannelApi { /** 查询短信渠道列表 */ export function getSmsChannelPage(params: PageParam) { - return requestClient.get>( + return requestClient.get>( '/system/sms-channel/page', { params }, ); @@ -27,21 +27,25 @@ export function getSmsChannelPage(params: PageParam) { /** 获得短信渠道精简列表 */ export function getSimpleSmsChannelList() { - return requestClient.get('/system/sms-channel/simple-list'); + return requestClient.get( + '/system/sms-channel/simple-list', + ); } /** 查询短信渠道详情 */ export function getSmsChannel(id: number) { - return requestClient.get(`/system/sms-channel/get?id=${id}`); + return requestClient.get( + `/system/sms-channel/get?id=${id}`, + ); } /** 新增短信渠道 */ -export function createSmsChannel(data: SystemSmsChannelApi.SystemSmsChannel) { +export function createSmsChannel(data: SystemSmsChannelApi.SmsChannel) { return requestClient.post('/system/sms-channel/create', data); } /** 修改短信渠道 */ -export function updateSmsChannel(data: SystemSmsChannelApi.SystemSmsChannel) { +export function updateSmsChannel(data: SystemSmsChannelApi.SmsChannel) { return requestClient.put('/system/sms-channel/update', data); } diff --git a/apps/web-antd/src/api/system/sms/log/index.ts b/apps/web-antd/src/api/system/sms/log/index.ts index cea6cfbdf..8344f9932 100644 --- a/apps/web-antd/src/api/system/sms/log/index.ts +++ b/apps/web-antd/src/api/system/sms/log/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace SystemSmsLogApi { /** 短信日志信息 */ - export interface SystemSmsLog { + export interface SmsLog { id?: number; channelId?: number; channelCode: string; @@ -33,7 +33,10 @@ export namespace SystemSmsLogApi { /** 查询短信日志列表 */ export function getSmsLogPage(params: PageParam) { - return requestClient.get>('/system/sms-log/page', { params }); + return requestClient.get>( + '/system/sms-log/page', + { params }, + ); } /** 导出短信日志 */ diff --git a/apps/web-antd/src/api/system/sms/template/index.ts b/apps/web-antd/src/api/system/sms/template/index.ts index e97bd3a8d..63660bdf9 100644 --- a/apps/web-antd/src/api/system/sms/template/index.ts +++ b/apps/web-antd/src/api/system/sms/template/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace SystemSmsTemplateApi { /** 短信模板信息 */ - export interface SystemSmsTemplate { + export interface SmsTemplate { id?: number; type?: number; status: number; @@ -20,7 +20,7 @@ export namespace SystemSmsTemplateApi { } /** 发送短信请求 */ - export interface SystemSmsSendReqVO { + export interface SmsSendReqVO { mobile: string; templateCode: string; templateParams: Record; @@ -29,7 +29,7 @@ export namespace SystemSmsTemplateApi { /** 查询短信模板列表 */ export function getSmsTemplatePage(params: PageParam) { - return requestClient.get>( + return requestClient.get>( '/system/sms-template/page', { params }, ); @@ -37,16 +37,18 @@ export function getSmsTemplatePage(params: PageParam) { /** 查询短信模板详情 */ export function getSmsTemplate(id: number) { - return requestClient.get(`/system/sms-template/get?id=${id}`); + return requestClient.get( + `/system/sms-template/get?id=${id}`, + ); } /** 新增短信模板 */ -export function createSmsTemplate(data: SystemSmsTemplateApi.SystemSmsTemplate) { +export function createSmsTemplate(data: SystemSmsTemplateApi.SmsTemplate) { return requestClient.post('/system/sms-template/create', data); } /** 修改短信模板 */ -export function updateSmsTemplate(data: SystemSmsTemplateApi.SystemSmsTemplate) { +export function updateSmsTemplate(data: SystemSmsTemplateApi.SmsTemplate) { return requestClient.put('/system/sms-template/update', data); } @@ -57,10 +59,12 @@ export function deleteSmsTemplate(id: number) { /** 导出短信模板 */ export function exportSmsTemplate(params: any) { - return requestClient.download('/system/sms-template/export-excel', { params }); + return requestClient.download('/system/sms-template/export-excel', { + params, + }); } /** 发送短信 */ -export function sendSms(data: SystemSmsTemplateApi.SystemSmsSendReqVO) { +export function sendSms(data: SystemSmsTemplateApi.SmsSendReqVO) { return requestClient.post('/system/sms-template/send-sms', data); } diff --git a/apps/web-antd/src/api/system/social/client/index.ts b/apps/web-antd/src/api/system/social/client/index.ts index 59b1da639..d4da4dd48 100644 --- a/apps/web-antd/src/api/system/social/client/index.ts +++ b/apps/web-antd/src/api/system/social/client/index.ts @@ -1,9 +1,10 @@ -import { requestClient } from '#/api/request'; import type { PageParam, PageResult } from '@vben/request'; +import { requestClient } from '#/api/request'; + export namespace SystemSocialClientApi { /** 社交客户端信息 */ - export interface SystemSocialClient { + export interface SocialClient { id?: number; name: string; socialType: number; @@ -18,23 +19,26 @@ export namespace SystemSocialClientApi { /** 查询社交客户端列表 */ export function getSocialClientPage(params: PageParam) { - return requestClient.get>('/system/social-client/page', - { params } + return requestClient.get>( + '/system/social-client/page', + { params }, ); } /** 查询社交客户端详情 */ export function getSocialClient(id: number) { - return requestClient.get(`/system/social-client/get?id=${id}`); + return requestClient.get( + `/system/social-client/get?id=${id}`, + ); } /** 新增社交客户端 */ -export function createSocialClient(data: SystemSocialClientApi.SystemSocialClient) { +export function createSocialClient(data: SystemSocialClientApi.SocialClient) { return requestClient.post('/system/social-client/create', data); } /** 修改社交客户端 */ -export function updateSocialClient(data: SystemSocialClientApi.SystemSocialClient) { +export function updateSocialClient(data: SystemSocialClientApi.SocialClient) { return requestClient.put('/system/social-client/update', data); } diff --git a/apps/web-antd/src/api/system/social/user/index.ts b/apps/web-antd/src/api/system/social/user/index.ts index d99a6129f..b91f15064 100644 --- a/apps/web-antd/src/api/system/social/user/index.ts +++ b/apps/web-antd/src/api/system/social/user/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace SystemSocialUserApi { /** 社交用户信息 */ - export interface SystemSocialUser { + export interface SocialUser { id?: number; type: number; openid: string; @@ -35,14 +35,17 @@ export namespace SystemSocialUserApi { /** 查询社交用户列表 */ export function getSocialUserPage(params: PageParam) { - return requestClient.get>('/system/social-user/page', - { params } + return requestClient.get>( + '/system/social-user/page', + { params }, ); } /** 查询社交用户详情 */ export function getSocialUser(id: number) { - return requestClient.get(`/system/social-user/get?id=${id}`); + return requestClient.get( + `/system/social-user/get?id=${id}`, + ); } /** 社交绑定,使用 code 授权码 */ @@ -57,5 +60,7 @@ export function socialUnbind(data: SystemSocialUserApi.SocialUserUnbindReqVO) { /** 获得绑定社交用户列表 */ export function getBindSocialUserList() { - return requestClient.get('/system/social-user/get-bind-list'); + return requestClient.get( + '/system/social-user/get-bind-list', + ); } diff --git a/apps/web-antd/src/api/system/tenant-package/index.ts b/apps/web-antd/src/api/system/tenant-package/index.ts index b034a9b5e..5066cea98 100644 --- a/apps/web-antd/src/api/system/tenant-package/index.ts +++ b/apps/web-antd/src/api/system/tenant-package/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace SystemTenantPackageApi { /** 租户套餐信息 */ - export interface SystemTenantPackage { + export interface TenantPackage { id: number; name: string; status: number; @@ -19,9 +19,9 @@ export namespace SystemTenantPackageApi { /** 租户套餐列表 */ export function getTenantPackagePage(params: PageParam) { - return requestClient.get>( + return requestClient.get>( '/system/tenant-package/page', - { params } + { params }, ); } @@ -31,12 +31,16 @@ export function getTenantPackage(id: number) { } /** 新增租户套餐 */ -export function createTenantPackage(data: SystemTenantPackageApi.SystemTenantPackage) { +export function createTenantPackage( + data: SystemTenantPackageApi.TenantPackage, +) { return requestClient.post('/system/tenant-package/create', data); } /** 修改租户套餐 */ -export function updateTenantPackage(data: SystemTenantPackageApi.SystemTenantPackage) { +export function updateTenantPackage( + data: SystemTenantPackageApi.TenantPackage, +) { return requestClient.put('/system/tenant-package/update', data); } @@ -47,5 +51,7 @@ export function deleteTenantPackage(id: number) { /** 获取租户套餐精简信息列表 */ export function getTenantPackageList() { - return requestClient.get('/system/tenant-package/get-simple-list'); + return requestClient.get( + '/system/tenant-package/get-simple-list', + ); } diff --git a/apps/web-antd/src/api/system/tenant/index.ts b/apps/web-antd/src/api/system/tenant/index.ts index 92fd905ea..cefacc511 100644 --- a/apps/web-antd/src/api/system/tenant/index.ts +++ b/apps/web-antd/src/api/system/tenant/index.ts @@ -4,7 +4,7 @@ import { requestClient } from '#/api/request'; export namespace SystemTenantApi { /** 租户信息 */ - export interface SystemTenant { + export interface Tenant { id?: number; name: string; packageId: number; @@ -19,26 +19,33 @@ export namespace SystemTenantApi { /** 租户列表 */ export function getTenantPage(params: PageParam) { - return requestClient.get>('/system/tenant/page', { params }); + return requestClient.get>( + '/system/tenant/page', + { params }, + ); } /** 获取租户精简信息列表 */ export function getSimpleTenantList() { - return requestClient.get('/system/tenant/simple-list'); + return requestClient.get( + '/system/tenant/simple-list', + ); } /** 查询租户详情 */ export function getTenant(id: number) { - return requestClient.get(`/system/tenant/get?id=${id}`,); + return requestClient.get( + `/system/tenant/get?id=${id}`, + ); } /** 新增租户 */ -export function createTenant(data: SystemTenantApi.SystemTenant) { +export function createTenant(data: SystemTenantApi.Tenant) { return requestClient.post('/system/tenant/create', data); } /** 修改租户 */ -export function updateTenant(data: SystemTenantApi.SystemTenant) { +export function updateTenant(data: SystemTenantApi.Tenant) { return requestClient.put('/system/tenant/update', data); } diff --git a/apps/web-antd/src/api/system/user/index.ts b/apps/web-antd/src/api/system/user/index.ts index 7a49ace60..52d8cdd2e 100644 --- a/apps/web-antd/src/api/system/user/index.ts +++ b/apps/web-antd/src/api/system/user/index.ts @@ -1,10 +1,10 @@ -import type {PageParam, PageResult} from '@vben/request'; +import type { PageParam, PageResult } from '@vben/request'; import { requestClient } from '#/api/request'; export namespace SystemUserApi { /** 用户信息 */ - export interface SystemUser { + export interface User { id?: number; username: string; nickname: string; @@ -23,21 +23,24 @@ export namespace SystemUserApi { /** 查询用户管理列表 */ export function getUserPage(params: PageParam) { - return requestClient.get>('/system/user/page', { params }); + return requestClient.get>( + '/system/user/page', + { params }, + ); } /** 查询用户详情 */ export function getUser(id: number) { - return requestClient.get(`/system/user/get?id=${id}`); + return requestClient.get(`/system/user/get?id=${id}`); } /** 新增用户 */ -export function createUser(data: SystemUserApi.SystemUser) { +export function createUser(data: SystemUserApi.User) { return requestClient.post('/system/user/create', data); } /** 修改用户 */ -export function updateUser(data: SystemUserApi.SystemUser) { +export function updateUser(data: SystemUserApi.User) { return requestClient.put('/system/user/update', data); } @@ -60,7 +63,7 @@ export function importUserTemplate() { export function importUser(file: File, updateSupport: boolean) { return requestClient.upload('/system/user/import', { file, - updateSupport + updateSupport, }); } @@ -76,5 +79,5 @@ export function updateUserStatus(id: number, status: number) { /** 获取用户精简信息列表 */ export function getSimpleUserList() { - return requestClient.get('/system/user/simple-list'); + return requestClient.get('/system/user/simple-list'); } diff --git a/apps/web-antd/src/api/system/user/profile/index.ts b/apps/web-antd/src/api/system/user/profile/index.ts index 5a5083c1f..97898e71a 100644 --- a/apps/web-antd/src/api/system/user/profile/index.ts +++ b/apps/web-antd/src/api/system/user/profile/index.ts @@ -36,15 +36,21 @@ export namespace SystemUserProfileApi { /** 获取登录用户信息 */ export function getUserProfile() { - return requestClient.get('/system/user/profile/get'); + return requestClient.get( + '/system/user/profile/get', + ); } /** 修改用户个人信息 */ -export function updateUserProfile(data: SystemUserProfileApi.UpdateProfileReqVO) { +export function updateUserProfile( + data: SystemUserProfileApi.UpdateProfileReqVO, +) { return requestClient.put('/system/user/profile/update', data); } /** 修改用户个人密码 */ -export function updateUserPassword(data: SystemUserProfileApi.UpdatePasswordReqVO) { +export function updateUserPassword( + data: SystemUserProfileApi.UpdatePasswordReqVO, +) { return requestClient.put('/system/user/profile/update-password', data); -} \ No newline at end of file +} diff --git a/apps/web-antd/src/components/dict-tag/dict-tag.vue b/apps/web-antd/src/components/dict-tag/dict-tag.vue index 4cab3653a..d000b6669 100644 --- a/apps/web-antd/src/components/dict-tag/dict-tag.vue +++ b/apps/web-antd/src/components/dict-tag/dict-tag.vue @@ -1,5 +1,4 @@ diff --git a/apps/web-antd/src/views/crm/business/status/index.vue b/apps/web-antd/src/views/crm/business/status/index.vue index 0b07cac3e..adb8b3bb0 100644 --- a/apps/web-antd/src/views/crm/business/status/index.vue +++ b/apps/web-antd/src/views/crm/business/status/index.vue @@ -1,19 +1,38 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/clue/index.vue b/apps/web-antd/src/views/crm/clue/index.vue index 40022caf3..51179ef83 100644 --- a/apps/web-antd/src/views/crm/clue/index.vue +++ b/apps/web-antd/src/views/crm/clue/index.vue @@ -1,19 +1,35 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/contact/index.vue b/apps/web-antd/src/views/crm/contact/index.vue index 8c0b225ab..c17be72b3 100644 --- a/apps/web-antd/src/views/crm/contact/index.vue +++ b/apps/web-antd/src/views/crm/contact/index.vue @@ -1,19 +1,38 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/contract/config/index.vue b/apps/web-antd/src/views/crm/contract/config/index.vue index 788d5f84d..db64ed742 100644 --- a/apps/web-antd/src/views/crm/contract/config/index.vue +++ b/apps/web-antd/src/views/crm/contract/config/index.vue @@ -1,19 +1,38 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/contract/index.vue b/apps/web-antd/src/views/crm/contract/index.vue index eaa40025b..6622d144a 100644 --- a/apps/web-antd/src/views/crm/contract/index.vue +++ b/apps/web-antd/src/views/crm/contract/index.vue @@ -1,19 +1,38 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/customer/index.vue b/apps/web-antd/src/views/crm/customer/index.vue index 2bfdad12d..8614be3f1 100644 --- a/apps/web-antd/src/views/crm/customer/index.vue +++ b/apps/web-antd/src/views/crm/customer/index.vue @@ -1,19 +1,38 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/customer/limitConfig/index.vue b/apps/web-antd/src/views/crm/customer/limitConfig/index.vue index 0634105bb..3820d40e6 100644 --- a/apps/web-antd/src/views/crm/customer/limitConfig/index.vue +++ b/apps/web-antd/src/views/crm/customer/limitConfig/index.vue @@ -1,19 +1,38 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/customer/pool/index.vue b/apps/web-antd/src/views/crm/customer/pool/index.vue index 3120c1319..aa330f83c 100644 --- a/apps/web-antd/src/views/crm/customer/pool/index.vue +++ b/apps/web-antd/src/views/crm/customer/pool/index.vue @@ -1,19 +1,38 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/customer/poolConfig/index.vue b/apps/web-antd/src/views/crm/customer/poolConfig/index.vue index 02111a482..717d8cbec 100644 --- a/apps/web-antd/src/views/crm/customer/poolConfig/index.vue +++ b/apps/web-antd/src/views/crm/customer/poolConfig/index.vue @@ -1,19 +1,38 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/product/category/index.vue b/apps/web-antd/src/views/crm/product/category/index.vue index e695e4658..32f54cc97 100644 --- a/apps/web-antd/src/views/crm/product/category/index.vue +++ b/apps/web-antd/src/views/crm/product/category/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/product/index.vue b/apps/web-antd/src/views/crm/product/index.vue index c06b1e3ac..805a634a5 100644 --- a/apps/web-antd/src/views/crm/product/index.vue +++ b/apps/web-antd/src/views/crm/product/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/receivable/index.vue b/apps/web-antd/src/views/crm/receivable/index.vue index 20a527e95..016c4968a 100644 --- a/apps/web-antd/src/views/crm/receivable/index.vue +++ b/apps/web-antd/src/views/crm/receivable/index.vue @@ -1,19 +1,38 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/receivable/plan/index.vue b/apps/web-antd/src/views/crm/receivable/plan/index.vue index f719b58ec..dc177ae79 100644 --- a/apps/web-antd/src/views/crm/receivable/plan/index.vue +++ b/apps/web-antd/src/views/crm/receivable/plan/index.vue @@ -1,19 +1,38 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/statistics/customer/index.vue b/apps/web-antd/src/views/crm/statistics/customer/index.vue index 1de8e4dbb..f86e725c7 100644 --- a/apps/web-antd/src/views/crm/statistics/customer/index.vue +++ b/apps/web-antd/src/views/crm/statistics/customer/index.vue @@ -1,17 +1,28 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/statistics/funnel/index.vue b/apps/web-antd/src/views/crm/statistics/funnel/index.vue index 906184a00..3d944187e 100644 --- a/apps/web-antd/src/views/crm/statistics/funnel/index.vue +++ b/apps/web-antd/src/views/crm/statistics/funnel/index.vue @@ -1,17 +1,28 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/statistics/performance/index.vue b/apps/web-antd/src/views/crm/statistics/performance/index.vue index 34e5eb8e5..54f2eb5cf 100644 --- a/apps/web-antd/src/views/crm/statistics/performance/index.vue +++ b/apps/web-antd/src/views/crm/statistics/performance/index.vue @@ -1,17 +1,28 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/statistics/portrait/index.vue b/apps/web-antd/src/views/crm/statistics/portrait/index.vue index 7e580cb15..857fc95e9 100644 --- a/apps/web-antd/src/views/crm/statistics/portrait/index.vue +++ b/apps/web-antd/src/views/crm/statistics/portrait/index.vue @@ -1,17 +1,28 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/crm/statistics/rank/index.vue b/apps/web-antd/src/views/crm/statistics/rank/index.vue index a653b6e07..52c96d9f1 100644 --- a/apps/web-antd/src/views/crm/statistics/rank/index.vue +++ b/apps/web-antd/src/views/crm/statistics/rank/index.vue @@ -1,17 +1,28 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/finance/account/index.vue b/apps/web-antd/src/views/erp/finance/account/index.vue index 7c3729b9e..760d63495 100644 --- a/apps/web-antd/src/views/erp/finance/account/index.vue +++ b/apps/web-antd/src/views/erp/finance/account/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/finance/payment/index.vue b/apps/web-antd/src/views/erp/finance/payment/index.vue index fd78044cf..149b25ca1 100644 --- a/apps/web-antd/src/views/erp/finance/payment/index.vue +++ b/apps/web-antd/src/views/erp/finance/payment/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/finance/receipt/index.vue b/apps/web-antd/src/views/erp/finance/receipt/index.vue index 5755cc681..c70160cec 100644 --- a/apps/web-antd/src/views/erp/finance/receipt/index.vue +++ b/apps/web-antd/src/views/erp/finance/receipt/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/home/index.vue b/apps/web-antd/src/views/erp/home/index.vue index 5f6163df9..9a8c3811f 100644 --- a/apps/web-antd/src/views/erp/home/index.vue +++ b/apps/web-antd/src/views/erp/home/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/product/category/index.vue b/apps/web-antd/src/views/erp/product/category/index.vue index 8b78ebc4e..2113e93ae 100644 --- a/apps/web-antd/src/views/erp/product/category/index.vue +++ b/apps/web-antd/src/views/erp/product/category/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/product/product/index.vue b/apps/web-antd/src/views/erp/product/product/index.vue index ed7418e77..bc0001727 100644 --- a/apps/web-antd/src/views/erp/product/product/index.vue +++ b/apps/web-antd/src/views/erp/product/product/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/product/unit/index.vue b/apps/web-antd/src/views/erp/product/unit/index.vue index 2c5558b78..1ddab46b9 100644 --- a/apps/web-antd/src/views/erp/product/unit/index.vue +++ b/apps/web-antd/src/views/erp/product/unit/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/purchase/in/index.vue b/apps/web-antd/src/views/erp/purchase/in/index.vue index a5c2d26dd..344d0b3fd 100644 --- a/apps/web-antd/src/views/erp/purchase/in/index.vue +++ b/apps/web-antd/src/views/erp/purchase/in/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/purchase/order/index.vue b/apps/web-antd/src/views/erp/purchase/order/index.vue index a9daff366..a554f7e7a 100644 --- a/apps/web-antd/src/views/erp/purchase/order/index.vue +++ b/apps/web-antd/src/views/erp/purchase/order/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/purchase/return/index.vue b/apps/web-antd/src/views/erp/purchase/return/index.vue index fd2f74ecc..63757b5d0 100644 --- a/apps/web-antd/src/views/erp/purchase/return/index.vue +++ b/apps/web-antd/src/views/erp/purchase/return/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/purchase/supplier/index.vue b/apps/web-antd/src/views/erp/purchase/supplier/index.vue index 2f0c3d64e..a67e06aa8 100644 --- a/apps/web-antd/src/views/erp/purchase/supplier/index.vue +++ b/apps/web-antd/src/views/erp/purchase/supplier/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/sale/customer/index.vue b/apps/web-antd/src/views/erp/sale/customer/index.vue index ecb48a04c..548ccb6dd 100644 --- a/apps/web-antd/src/views/erp/sale/customer/index.vue +++ b/apps/web-antd/src/views/erp/sale/customer/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/sale/order/index.vue b/apps/web-antd/src/views/erp/sale/order/index.vue index 05f3751aa..06dc84eff 100644 --- a/apps/web-antd/src/views/erp/sale/order/index.vue +++ b/apps/web-antd/src/views/erp/sale/order/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/sale/out/index.vue b/apps/web-antd/src/views/erp/sale/out/index.vue index 016849978..fdb026f7a 100644 --- a/apps/web-antd/src/views/erp/sale/out/index.vue +++ b/apps/web-antd/src/views/erp/sale/out/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/sale/return/index.vue b/apps/web-antd/src/views/erp/sale/return/index.vue index a46a80895..514d87fb6 100644 --- a/apps/web-antd/src/views/erp/sale/return/index.vue +++ b/apps/web-antd/src/views/erp/sale/return/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/stock/check/index.vue b/apps/web-antd/src/views/erp/stock/check/index.vue index c999e35dc..5bea30714 100644 --- a/apps/web-antd/src/views/erp/stock/check/index.vue +++ b/apps/web-antd/src/views/erp/stock/check/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/stock/in/index.vue b/apps/web-antd/src/views/erp/stock/in/index.vue index 189060957..8f066e7fc 100644 --- a/apps/web-antd/src/views/erp/stock/in/index.vue +++ b/apps/web-antd/src/views/erp/stock/in/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/stock/move/index.vue b/apps/web-antd/src/views/erp/stock/move/index.vue index 09f716021..a99db0338 100644 --- a/apps/web-antd/src/views/erp/stock/move/index.vue +++ b/apps/web-antd/src/views/erp/stock/move/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/stock/out/index.vue b/apps/web-antd/src/views/erp/stock/out/index.vue index 7dcd31677..09d1b16d4 100644 --- a/apps/web-antd/src/views/erp/stock/out/index.vue +++ b/apps/web-antd/src/views/erp/stock/out/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/stock/record/index.vue b/apps/web-antd/src/views/erp/stock/record/index.vue index dedf5c1f4..fa3c43fa0 100644 --- a/apps/web-antd/src/views/erp/stock/record/index.vue +++ b/apps/web-antd/src/views/erp/stock/record/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/stock/stock/index.vue b/apps/web-antd/src/views/erp/stock/stock/index.vue index d8960e20b..c85b8a0f7 100644 --- a/apps/web-antd/src/views/erp/stock/stock/index.vue +++ b/apps/web-antd/src/views/erp/stock/stock/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/erp/stock/warehouse/index.vue b/apps/web-antd/src/views/erp/stock/warehouse/index.vue index 744bfb9ad..24e57664a 100644 --- a/apps/web-antd/src/views/erp/stock/warehouse/index.vue +++ b/apps/web-antd/src/views/erp/stock/warehouse/index.vue @@ -1,18 +1,34 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/infra/apiAccessLog/data.ts b/apps/web-antd/src/views/infra/apiAccessLog/data.ts index 21c6bd43d..6d398d5a9 100644 --- a/apps/web-antd/src/views/infra/apiAccessLog/data.ts +++ b/apps/web-antd/src/views/infra/apiAccessLog/data.ts @@ -2,7 +2,7 @@ import type { VbenFormSchema } from '#/adapter/form'; import type { OnActionClickFn, VxeTableGridOptions } from '#/adapter/vxe-table'; import type { InfraApiAccessLogApi } from '#/api/infra/api-access-log'; -import {DICT_TYPE, getDictOptions} from '#/utils/dict'; +import { DICT_TYPE, getDictOptions } from '#/utils/dict'; import { getRangePickerDefaultProps } from '#/utils/date'; import { useAccess } from '@vben/access'; @@ -70,7 +70,7 @@ export function useGridFormSchema(): VbenFormSchema[] { } /** 列表的字段 */ -export function useGridColumns( +export function useGridColumns( onActionClick: OnActionClickFn, ): VxeTableGridOptions['columns'] { return [ @@ -125,9 +125,7 @@ export function useGridColumns( title: '操作结果', minWidth: 150, formatter: ({ row }) => { - return row.resultCode === 0 - ? '成功' - : `失败(${row.resultMsg})`; + return row.resultCode === 0 ? '成功' : `失败(${row.resultMsg})`; }, }, { diff --git a/apps/web-antd/src/views/infra/apiAccessLog/index.vue b/apps/web-antd/src/views/infra/apiAccessLog/index.vue index ea6846962..bdf9e115c 100644 --- a/apps/web-antd/src/views/infra/apiAccessLog/index.vue +++ b/apps/web-antd/src/views/infra/apiAccessLog/index.vue @@ -1,19 +1,26 @@ @@ -86,11 +93,16 @@ const [Grid, gridApi] = useVbenVxeGrid({ - \ No newline at end of file + diff --git a/apps/web-antd/src/views/infra/apiAccessLog/modules/detail.vue b/apps/web-antd/src/views/infra/apiAccessLog/modules/detail.vue index 1459d3270..edb378e6b 100644 --- a/apps/web-antd/src/views/infra/apiAccessLog/modules/detail.vue +++ b/apps/web-antd/src/views/infra/apiAccessLog/modules/detail.vue @@ -1,15 +1,17 @@ \ No newline at end of file + diff --git a/apps/web-antd/src/views/infra/apiErrorLog/modules/detail.vue b/apps/web-antd/src/views/infra/apiErrorLog/modules/detail.vue index 934d3391f..696e89273 100644 --- a/apps/web-antd/src/views/infra/apiErrorLog/modules/detail.vue +++ b/apps/web-antd/src/views/infra/apiErrorLog/modules/detail.vue @@ -1,15 +1,17 @@