PaginationDtoexport class PaginationDto {
page?: number = 1;
pageSize?: number = 15;
}buildWhere()undefined 条件,简化列表查询:const where = buildWhere<Article>({
status,
categoryId,
title: title ? Like(`%${title}%`) : undefined,
});DictServiceconst config = await this.dictService.get("home_config", {}, "website");const config = await this.dictService.get("hero", {}, "website", {
restoreFileUrlFields: ["cover", "items.*.icon"],
});await this.dictService.set("home_config", payload, {
group: "website",
normalizeFileUrlFields: ["cover", "items.*.icon"],
});FileStorageServiceFileUrlServiceset(url):完整 URL 入库前转相对路径get(path):读取时补完整域名SecretServiceSecretService,不要直接扔进普通字典。