style(api): 统一代码格式化规范
- 调整 import 语句格式,统一空格和引号风格 - 修复函数参数跨行时的格式对齐问题 - 清理多余空行和注释中的空白字符 - 统一对象属性结尾逗号的使用规范 - 规范化字符串拼接和模板语法的格式 - 优化长参数列表的换行和缩进格式
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user