style(api): 统一代码风格并修复语法问题

- 统一import语句的空格格式
- 修复分号缺失问题
- 调整函数参数换行格式以符合规范
- 删除多余空行保持代码整洁
- 修复字符串拼接的换行格式问题
This commit is contained in:
2026-01-21 00:26:14 +08:00
parent 7a37f66081
commit 82ac209505
559 changed files with 40550 additions and 37977 deletions

View File

@@ -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) {