refactor(dtos): define AuditAction enum in dtos package to decouple from db

This commit is contained in:
yiling
2026-08-01 15:28:23 +08:00
parent 2d61fae699
commit b0d8ecb589
18 changed files with 75 additions and 71 deletions
+2 -2
View File
@@ -12,9 +12,9 @@ import {
updateProjectMemberRoleRequestSchema,
addProjectMemberRequestSchema,
} from '@shumai/dtos'
import { listMembersQuerySchema, paginationParamsSchema } from '@shumai/dtos'
import { listMembersQuerySchema, paginationParamsSchema, AuditAction } from '@shumai/dtos'
import type { Prisma } from '@shumai/db'
import { prisma, AuditAction } from '@shumai/db'
import { prisma } from '@shumai/db'
import { auditLogService } from '@shumai/core/src/auditLog/auditLog'
type User = Prisma.UserGetPayload<Record<string, never>>