fix(notifications): NotificationPriority 类型从 string 改为 Prisma 枚举

修复后端编译错误: priority 字段类型应使用 @prisma/client 的
NotificationPriority 枚举而非 string。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-02 08:38:25 -08:00
parent 7c781c7d62
commit 5ee94b3672
1 changed files with 3 additions and 3 deletions

View File

@ -1,12 +1,12 @@
import { Injectable } from '@nestjs/common';
import { PrismaService } from '../../infrastructure/persistence/prisma/prisma.service';
import { NotificationType, TargetType, Prisma } from '@prisma/client';
import { NotificationType, NotificationPriority, TargetType, Prisma } from '@prisma/client';
export interface CreateNotificationDto {
title: string;
content: string;
type?: NotificationType;
priority?: string;
priority?: NotificationPriority;
targetType?: TargetType;
targetConfig?: {
accountSequences?: string[];
@ -22,7 +22,7 @@ export interface UpdateNotificationDto {
title?: string;
content?: string;
type?: NotificationType;
priority?: string;
priority?: NotificationPriority;
targetType?: TargetType;
targetConfig?: {
accountSequences?: string[];