style(api): 统一代码格式化规范
- 调整 import 语句格式,统一空格和引号风格 - 修复函数参数跨行时的格式对齐问题 - 清理多余空行和注释中的空白字符 - 统一对象属性结尾逗号的使用规范 - 规范化字符串拼接和模板语法的格式 - 优化长参数列表的换行和缩进格式
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CreditAdministrativeLicense, CreditAdministrativeLicenseParam } from './model';
|
||||
import type {
|
||||
CreditAdministrativeLicense,
|
||||
CreditAdministrativeLicenseParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询行政许可
|
||||
*/
|
||||
export async function pageCreditAdministrativeLicense(params: CreditAdministrativeLicenseParam) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditAdministrativeLicense>>>(
|
||||
'/credit/credit-administrative-license/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
export async function pageCreditAdministrativeLicense(
|
||||
params: CreditAdministrativeLicenseParam
|
||||
) {
|
||||
const res = await request.get<
|
||||
ApiResult<PageResult<CreditAdministrativeLicense>>
|
||||
>('/credit/credit-administrative-license/page', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -21,7 +25,9 @@ export async function pageCreditAdministrativeLicense(params: CreditAdministrati
|
||||
/**
|
||||
* 查询行政许可列表
|
||||
*/
|
||||
export async function listCreditAdministrativeLicense(params?: CreditAdministrativeLicenseParam) {
|
||||
export async function listCreditAdministrativeLicense(
|
||||
params?: CreditAdministrativeLicenseParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditAdministrativeLicense[]>>(
|
||||
'/credit/credit-administrative-license',
|
||||
{
|
||||
@@ -37,7 +43,9 @@ export async function listCreditAdministrativeLicense(params?: CreditAdministrat
|
||||
/**
|
||||
* 添加行政许可
|
||||
*/
|
||||
export async function addCreditAdministrativeLicense(data: CreditAdministrativeLicense) {
|
||||
export async function addCreditAdministrativeLicense(
|
||||
data: CreditAdministrativeLicense
|
||||
) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/credit/credit-administrative-license',
|
||||
data
|
||||
@@ -51,7 +59,9 @@ export async function addCreditAdministrativeLicense(data: CreditAdministrativeL
|
||||
/**
|
||||
* 修改行政许可
|
||||
*/
|
||||
export async function updateCreditAdministrativeLicense(data: CreditAdministrativeLicense) {
|
||||
export async function updateCreditAdministrativeLicense(
|
||||
data: CreditAdministrativeLicense
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/credit/credit-administrative-license',
|
||||
data
|
||||
@@ -78,7 +88,9 @@ export async function removeCreditAdministrativeLicense(id?: number) {
|
||||
/**
|
||||
* 批量删除行政许可
|
||||
*/
|
||||
export async function removeBatchCreditAdministrativeLicense(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditAdministrativeLicense(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-administrative-license/batch',
|
||||
{
|
||||
@@ -107,7 +119,10 @@ export async function getCreditAdministrativeLicense(id: number) {
|
||||
/**
|
||||
* 导入行政许可
|
||||
*/
|
||||
export async function importCreditAdministrativeLicense(file: File, companyId?: number) {
|
||||
export async function importCreditAdministrativeLicense(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeCreditBankruptcy(id?: number) {
|
||||
/**
|
||||
* 批量删除破产重整
|
||||
*/
|
||||
export async function removeBatchCreditBankruptcy(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditBankruptcy(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-bankruptcy/batch',
|
||||
{
|
||||
|
||||
@@ -5,7 +5,9 @@ import type { CreditBreachOfTrust, CreditBreachOfTrustParam } from './model';
|
||||
/**
|
||||
* 分页查询失信被执行人
|
||||
*/
|
||||
export async function pageCreditBreachOfTrust(params: CreditBreachOfTrustParam) {
|
||||
export async function pageCreditBreachOfTrust(
|
||||
params: CreditBreachOfTrustParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditBreachOfTrust>>>(
|
||||
'/credit/credit-breach-of-trust/page',
|
||||
{
|
||||
@@ -21,7 +23,9 @@ export async function pageCreditBreachOfTrust(params: CreditBreachOfTrustParam)
|
||||
/**
|
||||
* 查询失信被执行人列表
|
||||
*/
|
||||
export async function listCreditBreachOfTrust(params?: CreditBreachOfTrustParam) {
|
||||
export async function listCreditBreachOfTrust(
|
||||
params?: CreditBreachOfTrustParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditBreachOfTrust[]>>(
|
||||
'/credit/credit-breach-of-trust',
|
||||
{
|
||||
@@ -78,7 +82,9 @@ export async function removeCreditBreachOfTrust(id?: number) {
|
||||
/**
|
||||
* 批量删除失信被执行人
|
||||
*/
|
||||
export async function removeBatchCreditBreachOfTrust(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditBreachOfTrust(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-breach-of-trust/batch',
|
||||
{
|
||||
@@ -107,7 +113,10 @@ export async function getCreditBreachOfTrust(id: number) {
|
||||
/**
|
||||
* 导入失信被执行人
|
||||
*/
|
||||
export async function importCreditBreachOfTrust(file: File, companyId?: number) {
|
||||
export async function importCreditBreachOfTrust(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeCreditCaseFiling(id?: number) {
|
||||
/**
|
||||
* 批量删除司法大数据
|
||||
*/
|
||||
export async function removeBatchCreditCaseFiling(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditCaseFiling(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-case-filing/batch',
|
||||
{
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeCreditCompetitor(id?: number) {
|
||||
/**
|
||||
* 批量删除竞争对手
|
||||
*/
|
||||
export async function removeBatchCreditCompetitor(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditCompetitor(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-competitor/batch',
|
||||
{
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CreditCourtAnnouncement, CreditCourtAnnouncementParam } from './model';
|
||||
import type {
|
||||
CreditCourtAnnouncement,
|
||||
CreditCourtAnnouncementParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询法院公告司法大数据
|
||||
*/
|
||||
export async function pageCreditCourtAnnouncement(params: CreditCourtAnnouncementParam) {
|
||||
export async function pageCreditCourtAnnouncement(
|
||||
params: CreditCourtAnnouncementParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditCourtAnnouncement>>>(
|
||||
'/credit/credit-court-announcement/page',
|
||||
{
|
||||
@@ -21,7 +26,9 @@ export async function pageCreditCourtAnnouncement(params: CreditCourtAnnouncemen
|
||||
/**
|
||||
* 查询法院公告司法大数据列表
|
||||
*/
|
||||
export async function listCreditCourtAnnouncement(params?: CreditCourtAnnouncementParam) {
|
||||
export async function listCreditCourtAnnouncement(
|
||||
params?: CreditCourtAnnouncementParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditCourtAnnouncement[]>>(
|
||||
'/credit/credit-court-announcement',
|
||||
{
|
||||
@@ -37,7 +44,9 @@ export async function listCreditCourtAnnouncement(params?: CreditCourtAnnounceme
|
||||
/**
|
||||
* 添加法院公告司法大数据
|
||||
*/
|
||||
export async function addCreditCourtAnnouncement(data: CreditCourtAnnouncement) {
|
||||
export async function addCreditCourtAnnouncement(
|
||||
data: CreditCourtAnnouncement
|
||||
) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/credit/credit-court-announcement',
|
||||
data
|
||||
@@ -51,7 +60,9 @@ export async function addCreditCourtAnnouncement(data: CreditCourtAnnouncement)
|
||||
/**
|
||||
* 修改法院公告司法大数据
|
||||
*/
|
||||
export async function updateCreditCourtAnnouncement(data: CreditCourtAnnouncement) {
|
||||
export async function updateCreditCourtAnnouncement(
|
||||
data: CreditCourtAnnouncement
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/credit/credit-court-announcement',
|
||||
data
|
||||
@@ -78,7 +89,9 @@ export async function removeCreditCourtAnnouncement(id?: number) {
|
||||
/**
|
||||
* 批量删除法院公告司法大数据
|
||||
*/
|
||||
export async function removeBatchCreditCourtAnnouncement(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditCourtAnnouncement(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-court-announcement/batch',
|
||||
{
|
||||
@@ -107,7 +120,10 @@ export async function getCreditCourtAnnouncement(id: number) {
|
||||
/**
|
||||
* 导入法院公告司法大数据
|
||||
*/
|
||||
export async function importCreditCourtAnnouncement(file: File, companyId?: number) {
|
||||
export async function importCreditCourtAnnouncement(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeCreditCourtSession(id?: number) {
|
||||
/**
|
||||
* 批量删除开庭公告司法大数据
|
||||
*/
|
||||
export async function removeBatchCreditCourtSession(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditCourtSession(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-court-session/batch',
|
||||
{
|
||||
|
||||
@@ -5,7 +5,9 @@ import type { CreditDeliveryNotice, CreditDeliveryNoticeParam } from './model';
|
||||
/**
|
||||
* 分页查询送达公告司法大数据
|
||||
*/
|
||||
export async function pageCreditDeliveryNotice(params: CreditDeliveryNoticeParam) {
|
||||
export async function pageCreditDeliveryNotice(
|
||||
params: CreditDeliveryNoticeParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditDeliveryNotice>>>(
|
||||
'/credit/credit-delivery-notice/page',
|
||||
{
|
||||
@@ -21,7 +23,9 @@ export async function pageCreditDeliveryNotice(params: CreditDeliveryNoticeParam
|
||||
/**
|
||||
* 查询送达公告司法大数据列表
|
||||
*/
|
||||
export async function listCreditDeliveryNotice(params?: CreditDeliveryNoticeParam) {
|
||||
export async function listCreditDeliveryNotice(
|
||||
params?: CreditDeliveryNoticeParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditDeliveryNotice[]>>(
|
||||
'/credit/credit-delivery-notice',
|
||||
{
|
||||
@@ -78,7 +82,9 @@ export async function removeCreditDeliveryNotice(id?: number) {
|
||||
/**
|
||||
* 批量删除送达公告司法大数据
|
||||
*/
|
||||
export async function removeBatchCreditDeliveryNotice(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditDeliveryNotice(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-delivery-notice/batch',
|
||||
{
|
||||
@@ -107,7 +113,10 @@ export async function getCreditDeliveryNotice(id: number) {
|
||||
/**
|
||||
* 导入送达公告司法大数据
|
||||
*/
|
||||
export async function importCreditDeliveryNotice(file: File, companyId?: number) {
|
||||
export async function importCreditDeliveryNotice(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeCreditFinalVersion(id?: number) {
|
||||
/**
|
||||
* 批量删除终本案件
|
||||
*/
|
||||
export async function removeBatchCreditFinalVersion(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditFinalVersion(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-final-version/batch',
|
||||
{
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CreditHistoricalLegalPerson, CreditHistoricalLegalPersonParam } from './model';
|
||||
import type {
|
||||
CreditHistoricalLegalPerson,
|
||||
CreditHistoricalLegalPersonParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询历史法定代表人
|
||||
*/
|
||||
export async function pageCreditHistoricalLegalPerson(params: CreditHistoricalLegalPersonParam) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditHistoricalLegalPerson>>>(
|
||||
'/credit/credit-historical-legal-person/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
export async function pageCreditHistoricalLegalPerson(
|
||||
params: CreditHistoricalLegalPersonParam
|
||||
) {
|
||||
const res = await request.get<
|
||||
ApiResult<PageResult<CreditHistoricalLegalPerson>>
|
||||
>('/credit/credit-historical-legal-person/page', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -21,7 +25,9 @@ export async function pageCreditHistoricalLegalPerson(params: CreditHistoricalLe
|
||||
/**
|
||||
* 查询历史法定代表人列表
|
||||
*/
|
||||
export async function listCreditHistoricalLegalPerson(params?: CreditHistoricalLegalPersonParam) {
|
||||
export async function listCreditHistoricalLegalPerson(
|
||||
params?: CreditHistoricalLegalPersonParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditHistoricalLegalPerson[]>>(
|
||||
'/credit/credit-historical-legal-person',
|
||||
{
|
||||
@@ -37,7 +43,9 @@ export async function listCreditHistoricalLegalPerson(params?: CreditHistoricalL
|
||||
/**
|
||||
* 添加历史法定代表人
|
||||
*/
|
||||
export async function addCreditHistoricalLegalPerson(data: CreditHistoricalLegalPerson) {
|
||||
export async function addCreditHistoricalLegalPerson(
|
||||
data: CreditHistoricalLegalPerson
|
||||
) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/credit/credit-historical-legal-person',
|
||||
data
|
||||
@@ -51,7 +59,9 @@ export async function addCreditHistoricalLegalPerson(data: CreditHistoricalLegal
|
||||
/**
|
||||
* 修改历史法定代表人
|
||||
*/
|
||||
export async function updateCreditHistoricalLegalPerson(data: CreditHistoricalLegalPerson) {
|
||||
export async function updateCreditHistoricalLegalPerson(
|
||||
data: CreditHistoricalLegalPerson
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/credit/credit-historical-legal-person',
|
||||
data
|
||||
@@ -78,7 +88,9 @@ export async function removeCreditHistoricalLegalPerson(id?: number) {
|
||||
/**
|
||||
* 批量删除历史法定代表人
|
||||
*/
|
||||
export async function removeBatchCreditHistoricalLegalPerson(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditHistoricalLegalPerson(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-historical-legal-person/batch',
|
||||
{
|
||||
|
||||
@@ -5,7 +5,9 @@ import type { CreditJudgmentDebtor, CreditJudgmentDebtorParam } from './model';
|
||||
/**
|
||||
* 分页查询被执行人
|
||||
*/
|
||||
export async function pageCreditJudgmentDebtor(params: CreditJudgmentDebtorParam) {
|
||||
export async function pageCreditJudgmentDebtor(
|
||||
params: CreditJudgmentDebtorParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditJudgmentDebtor>>>(
|
||||
'/credit/credit-judgment-debtor/page',
|
||||
{
|
||||
@@ -21,7 +23,9 @@ export async function pageCreditJudgmentDebtor(params: CreditJudgmentDebtorParam
|
||||
/**
|
||||
* 查询被执行人列表
|
||||
*/
|
||||
export async function listCreditJudgmentDebtor(params?: CreditJudgmentDebtorParam) {
|
||||
export async function listCreditJudgmentDebtor(
|
||||
params?: CreditJudgmentDebtorParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditJudgmentDebtor[]>>(
|
||||
'/credit/credit-judgment-debtor',
|
||||
{
|
||||
@@ -78,7 +82,9 @@ export async function removeCreditJudgmentDebtor(id?: number) {
|
||||
/**
|
||||
* 批量删除被执行人
|
||||
*/
|
||||
export async function removeBatchCreditJudgmentDebtor(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditJudgmentDebtor(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-judgment-debtor/batch',
|
||||
{
|
||||
@@ -107,7 +113,10 @@ export async function getCreditJudgmentDebtor(id: number) {
|
||||
/**
|
||||
* 导入被执行人
|
||||
*/
|
||||
export async function importCreditJudgmentDebtor(file: File, companyId?: number) {
|
||||
export async function importCreditJudgmentDebtor(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -42,7 +42,6 @@ export interface CreditJudgmentDebtor {
|
||||
updateTime?: string;
|
||||
// 历史ID
|
||||
historyId?: number;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CreditJudgmentDebtorHistory, CreditJudgmentDebtorHistoryParam } from './model';
|
||||
import type {
|
||||
CreditJudgmentDebtorHistory,
|
||||
CreditJudgmentDebtorHistoryParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询被执行人
|
||||
*/
|
||||
export async function pageCreditJudgmentDebtorHistory(params: CreditJudgmentDebtorHistoryParam) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditJudgmentDebtorHistory>>>(
|
||||
'/credit/credit-judgment-debtor-history/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
export async function pageCreditJudgmentDebtorHistory(
|
||||
params: CreditJudgmentDebtorHistoryParam
|
||||
) {
|
||||
const res = await request.get<
|
||||
ApiResult<PageResult<CreditJudgmentDebtorHistory>>
|
||||
>('/credit/credit-judgment-debtor-history/page', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -21,7 +25,9 @@ export async function pageCreditJudgmentDebtorHistory(params: CreditJudgmentDebt
|
||||
/**
|
||||
* 查询被执行人列表
|
||||
*/
|
||||
export async function listCreditJudgmentDebtorHistory(params?: CreditJudgmentDebtorHistoryParam) {
|
||||
export async function listCreditJudgmentDebtorHistory(
|
||||
params?: CreditJudgmentDebtorHistoryParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditJudgmentDebtorHistory[]>>(
|
||||
'/credit/credit-judgment-debtor-history',
|
||||
{
|
||||
@@ -37,7 +43,9 @@ export async function listCreditJudgmentDebtorHistory(params?: CreditJudgmentDeb
|
||||
/**
|
||||
* 添加被执行人
|
||||
*/
|
||||
export async function addCreditJudgmentDebtorHistory(data: CreditJudgmentDebtorHistory) {
|
||||
export async function addCreditJudgmentDebtorHistory(
|
||||
data: CreditJudgmentDebtorHistory
|
||||
) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/credit/credit-judgment-debtor-history',
|
||||
data
|
||||
@@ -51,7 +59,9 @@ export async function addCreditJudgmentDebtorHistory(data: CreditJudgmentDebtorH
|
||||
/**
|
||||
* 修改被执行人
|
||||
*/
|
||||
export async function updateCreditJudgmentDebtorHistory(data: CreditJudgmentDebtorHistory) {
|
||||
export async function updateCreditJudgmentDebtorHistory(
|
||||
data: CreditJudgmentDebtorHistory
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/credit/credit-judgment-debtor-history',
|
||||
data
|
||||
@@ -78,7 +88,9 @@ export async function removeCreditJudgmentDebtorHistory(id?: number) {
|
||||
/**
|
||||
* 批量删除被执行人
|
||||
*/
|
||||
export async function removeBatchCreditJudgmentDebtorHistory(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditJudgmentDebtorHistory(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-judgment-debtor-history/batch',
|
||||
{
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CreditJudicialDocument, CreditJudicialDocumentParam } from './model';
|
||||
import type {
|
||||
CreditJudicialDocument,
|
||||
CreditJudicialDocumentParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询裁判文书司法大数据
|
||||
*/
|
||||
export async function pageCreditJudicialDocument(params: CreditJudicialDocumentParam) {
|
||||
export async function pageCreditJudicialDocument(
|
||||
params: CreditJudicialDocumentParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditJudicialDocument>>>(
|
||||
'/credit/credit-judicial-document/page',
|
||||
{
|
||||
@@ -21,7 +26,9 @@ export async function pageCreditJudicialDocument(params: CreditJudicialDocumentP
|
||||
/**
|
||||
* 查询裁判文书司法大数据列表
|
||||
*/
|
||||
export async function listCreditJudicialDocument(params?: CreditJudicialDocumentParam) {
|
||||
export async function listCreditJudicialDocument(
|
||||
params?: CreditJudicialDocumentParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditJudicialDocument[]>>(
|
||||
'/credit/credit-judicial-document',
|
||||
{
|
||||
@@ -51,7 +58,9 @@ export async function addCreditJudicialDocument(data: CreditJudicialDocument) {
|
||||
/**
|
||||
* 修改裁判文书司法大数据
|
||||
*/
|
||||
export async function updateCreditJudicialDocument(data: CreditJudicialDocument) {
|
||||
export async function updateCreditJudicialDocument(
|
||||
data: CreditJudicialDocument
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/credit/credit-judicial-document',
|
||||
data
|
||||
@@ -78,7 +87,9 @@ export async function removeCreditJudicialDocument(id?: number) {
|
||||
/**
|
||||
* 批量删除裁判文书司法大数据
|
||||
*/
|
||||
export async function removeBatchCreditJudicialDocument(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditJudicialDocument(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-judicial-document/batch',
|
||||
{
|
||||
@@ -107,7 +118,10 @@ export async function getCreditJudicialDocument(id: number) {
|
||||
/**
|
||||
* 导入裁判文书司法大数据
|
||||
*/
|
||||
export async function importCreditJudicialDocument(file: File, companyId?: number) {
|
||||
export async function importCreditJudicialDocument(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -5,7 +5,9 @@ import type { CreditNearbyCompany, CreditNearbyCompanyParam } from './model';
|
||||
/**
|
||||
* 分页查询附近企业
|
||||
*/
|
||||
export async function pageCreditNearbyCompany(params: CreditNearbyCompanyParam) {
|
||||
export async function pageCreditNearbyCompany(
|
||||
params: CreditNearbyCompanyParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditNearbyCompany>>>(
|
||||
'/credit/credit-nearby-company/page',
|
||||
{
|
||||
@@ -21,7 +23,9 @@ export async function pageCreditNearbyCompany(params: CreditNearbyCompanyParam)
|
||||
/**
|
||||
* 查询附近企业列表
|
||||
*/
|
||||
export async function listCreditNearbyCompany(params?: CreditNearbyCompanyParam) {
|
||||
export async function listCreditNearbyCompany(
|
||||
params?: CreditNearbyCompanyParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditNearbyCompany[]>>(
|
||||
'/credit/credit-nearby-company',
|
||||
{
|
||||
@@ -78,7 +82,9 @@ export async function removeCreditNearbyCompany(id?: number) {
|
||||
/**
|
||||
* 批量删除附近企业
|
||||
*/
|
||||
export async function removeBatchCreditNearbyCompany(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditNearbyCompany(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-nearby-company/batch',
|
||||
{
|
||||
@@ -107,7 +113,10 @@ export async function getCreditNearbyCompany(id: number) {
|
||||
/**
|
||||
* 导入附近企业
|
||||
*/
|
||||
export async function importCreditNearbyCompany(file: File, companyId?: number) {
|
||||
export async function importCreditNearbyCompany(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeCreditRiskRelation(id?: number) {
|
||||
/**
|
||||
* 批量删除风险关系表
|
||||
*/
|
||||
export async function removeBatchCreditRiskRelation(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditRiskRelation(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-risk-relation/batch',
|
||||
{
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CreditSuspectedRelationship, CreditSuspectedRelationshipParam } from './model';
|
||||
import type {
|
||||
CreditSuspectedRelationship,
|
||||
CreditSuspectedRelationshipParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询疑似关系
|
||||
*/
|
||||
export async function pageCreditSuspectedRelationship(params: CreditSuspectedRelationshipParam) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditSuspectedRelationship>>>(
|
||||
'/credit/credit-suspected-relationship/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
export async function pageCreditSuspectedRelationship(
|
||||
params: CreditSuspectedRelationshipParam
|
||||
) {
|
||||
const res = await request.get<
|
||||
ApiResult<PageResult<CreditSuspectedRelationship>>
|
||||
>('/credit/credit-suspected-relationship/page', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -21,7 +25,9 @@ export async function pageCreditSuspectedRelationship(params: CreditSuspectedRel
|
||||
/**
|
||||
* 查询疑似关系列表
|
||||
*/
|
||||
export async function listCreditSuspectedRelationship(params?: CreditSuspectedRelationshipParam) {
|
||||
export async function listCreditSuspectedRelationship(
|
||||
params?: CreditSuspectedRelationshipParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditSuspectedRelationship[]>>(
|
||||
'/credit/credit-suspected-relationship',
|
||||
{
|
||||
@@ -37,7 +43,9 @@ export async function listCreditSuspectedRelationship(params?: CreditSuspectedRe
|
||||
/**
|
||||
* 添加疑似关系
|
||||
*/
|
||||
export async function addCreditSuspectedRelationship(data: CreditSuspectedRelationship) {
|
||||
export async function addCreditSuspectedRelationship(
|
||||
data: CreditSuspectedRelationship
|
||||
) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/credit/credit-suspected-relationship',
|
||||
data
|
||||
@@ -51,7 +59,9 @@ export async function addCreditSuspectedRelationship(data: CreditSuspectedRelati
|
||||
/**
|
||||
* 修改疑似关系
|
||||
*/
|
||||
export async function updateCreditSuspectedRelationship(data: CreditSuspectedRelationship) {
|
||||
export async function updateCreditSuspectedRelationship(
|
||||
data: CreditSuspectedRelationship
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/credit/credit-suspected-relationship',
|
||||
data
|
||||
@@ -78,7 +88,9 @@ export async function removeCreditSuspectedRelationship(id?: number) {
|
||||
/**
|
||||
* 批量删除疑似关系
|
||||
*/
|
||||
export async function removeBatchCreditSuspectedRelationship(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditSuspectedRelationship(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-suspected-relationship/batch',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user