style(api): 统一代码格式化规范

- 调整 import 语句格式,统一空格和引号风格
- 修复函数参数跨行时的格式对齐问题
- 清理多余空行和注释中的空白字符
- 统一对象属性结尾逗号的使用规范
- 规范化字符串拼接和模板语法的格式
- 优化长参数列表的换行和缩进格式
This commit is contained in:
2026-01-17 17:04:46 +08:00
parent 836fd4d8d0
commit 4af50e6449
416 changed files with 24611 additions and 22733 deletions

View File

@@ -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',
{