- 在所有信用模块的搜索参数接口中添加 userId 字段 - 集成 withCreditUserScope 数据范围工具函数到各个 API 请求 - 实现对行政许可、破产重整、分支机构、失信被执行人等所有信用数据的用户范围过滤 - 统一处理分页和列表查询的数据范围限制 - 确保所有信用相关 API 都支持基于用户的权限控制
54 lines
1009 B
TypeScript
54 lines
1009 B
TypeScript
import type { PageParam } from '@/api';
|
|
|
|
/**
|
|
* 竞争对手
|
|
*/
|
|
export interface CreditCompetitor {
|
|
// 序号
|
|
id?: number;
|
|
// 企业名称
|
|
name?: string;
|
|
// 法定代表人
|
|
legalRepresentative?: string;
|
|
// 注册资本
|
|
registeredCapital?: string;
|
|
// 成立日期
|
|
establishmentDate?: string;
|
|
// 登记状态
|
|
registrationStatus?: string;
|
|
// 所属行业
|
|
industry?: string;
|
|
// 所属省份
|
|
province?: string;
|
|
// 链接地址
|
|
url?: string;
|
|
// 备注
|
|
comments?: string;
|
|
// 是否推荐
|
|
recommend?: number;
|
|
// 排序(数字越小越靠前)
|
|
sortNumber?: number;
|
|
// 状态, 0正常, 1冻结
|
|
status?: number;
|
|
// 是否删除, 0否, 1是
|
|
deleted?: number;
|
|
// 用户ID
|
|
userId?: number;
|
|
// 租户id
|
|
tenantId?: number;
|
|
// 创建时间
|
|
createTime?: string;
|
|
// 修改时间
|
|
updateTime?: string;
|
|
}
|
|
|
|
/**
|
|
* 竞争对手搜索条件
|
|
*/
|
|
export interface CreditCompetitorParam extends PageParam {
|
|
userId?: number;
|
|
|
|
id?: number;
|
|
keywords?: string;
|
|
}
|