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
@@ -1,10 +1,10 @@
import { Hono } from 'hono'
import { zValidator } from '@hono/zod-validator'
import { postAttachmentRequestSchema } from '@shumai/dtos'
import { postAttachmentRequestSchema, AuditAction } from '@shumai/dtos'
import { assetService } from '@shumai/core/src/asset/asset'
import { s3Service } from '@shumai/core/src/s3/s3'
import { auditLogService } from '@shumai/core/src/auditLog/auditLog'
import { AssetType, AuditAction, prisma } from '@shumai/db'
import { AssetType, prisma } from '@shumai/db'
import { ulid } from 'ulid'
import { authzService, Permission, ResourceType } from '@shumai/core/src/authz/authz'
import type { Prisma } from '@shumai/db'