Ver código fonte

[Auth, File] 新增用户字段—真实姓名,新增批量创建用户

Bay 6 anos atrás
pai
commit
6e45c3134b
2 arquivos alterados com 35 adições e 2 exclusões
  1. 4 2
      api/Auth-权限.md
  2. 31 0
      api/File-文件.md

+ 4 - 2
api/Auth-权限.md

@@ -45,16 +45,17 @@ interface UserData {
 }
 ```
 
-## 更新当前用户的邮箱信息
+## 更新当前用户的信息
 
 ```http
-put /current/email
+put /current
 ```
 
 ### Parameters
 
 ```ts
 interface UpdateEmailDTO {
+  name: string;
   email: string;
 }
 ```
@@ -146,6 +147,7 @@ post /register
 
 ```ts
 interface RegisterDTO {
+  name: string; // 用户真实姓名
   username: string;
   password: string;
   phoneNumber: string;

+ 31 - 0
api/File-文件.md

@@ -0,0 +1,31 @@
+# File - 文件
+
+> url 前缀:**file**
+>
+> 示例:**https://xxxxxxxxx/api/file/xxxx**
+
+## 批量创建用户
+
+`TEACHER`
+
+```http
+post /user-group
+```
+
+### Parameters
+
+multipart/form-data
+
+```ts
+interface CreateUserFormDTO {
+  file: FileData;
+}
+```
+
+### Response
+
+```ts
+interface EmptyData {
+  err: 0;
+}
+```