- 数据库:新增迁移脚本20261011_icc_line_ledger.sql(electric_line/line_room/icc_sync_log三表、菜单61、role_menu(1,61)、定时任务icc_line_sync),同步db_seed.sql - 后端:新增ElectricLine/IccSyncLog实体、查询DTO、线路台账服务与ICC拉取同步服务、/api/electric-lines控制器,接入RBAC(device:list)与定时任务 - 前端:新增智电改造线路台账页面及路由,API封装electricLineApi - ICC同步采用本系统主动拉取模式,失败仅记日志不抛错,接口统一code/message/data格式兼容APP
11 lines
488 B
TypeScript
11 lines
488 B
TypeScript
import { IsOptional, IsString, IsInt, MaxLength, Min, Max } from "class-validator";
|
|
|
|
export class ElectricLineQueryDTO {
|
|
@IsOptional() @IsInt() @Min(1) page?: number = 1;
|
|
@IsOptional() @IsInt() @Min(1) @Max(200) pageSize?: number = 10;
|
|
@IsOptional() @IsString() @MaxLength(64) keyword?: string;
|
|
@IsOptional() @IsInt() customerId?: number;
|
|
@IsOptional() @IsInt() equipId?: number;
|
|
@IsOptional() @IsInt() buildingId?: number;
|
|
@IsOptional() @IsInt() @Min(0) @Max(1) status?: number;
|
|
} |