Browse Source

✨ feat(files): 移除CreateFileDto中的uploadUserId字段

- 从文件创建DTO中删除uploadUserId参数,改为通过认证上下文自动获取用户信息
- 简化文件上传接口的请求参数,提高安全性和用户体验
yourname 8 months ago
parent
commit
5e09650320
1 changed files with 0 additions and 4 deletions
  1. 0 4
      src/server/modules/files/file.entity.ts

+ 0 - 4
src/server/modules/files/file.entity.ts

@@ -115,10 +115,6 @@ export const CreateFileDto = z.object({
     description: '文件描述',
     example: '2023年度项目计划书'
   }),
-  uploadUserId: z.number().int().positive().openapi({
-    description: '上传用户ID',
-    example: 1
-  }),
   lastUpdated: z.coerce.date().nullable().optional().openapi({
     description: '最后更新时间',
     example: '2023-01-16T14:20:00Z'