|
|
@@ -1,6 +1,8 @@
|
|
|
package space.anyi.serve.entity.user;
|
|
|
|
|
|
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Objects;
|
|
|
@@ -13,12 +15,19 @@ import java.util.Objects;
|
|
|
* @date:2026/4/1 8:54
|
|
|
* @description:
|
|
|
*/
|
|
|
+@Schema(description = "用户响应展示对象")
|
|
|
public class UserVo {
|
|
|
+ @Schema(description = "用户ID")
|
|
|
private String id;
|
|
|
+ @Schema(description = "用户账号")
|
|
|
private String account;
|
|
|
+ @Schema(description = "用户名称")
|
|
|
private String username;
|
|
|
+ @Schema(description = "用户角色")
|
|
|
private String role;
|
|
|
+ @Schema(description = "用户头像地址")
|
|
|
private String avatar;
|
|
|
+ @Schema(description = "用户状态;0:禁用,1:启用")
|
|
|
private Integer enable = 1;
|
|
|
|
|
|
public String getId() {
|