提交swagger 对象接口补充
This commit is contained in:
@@ -11,16 +11,16 @@ import lombok.Data;
|
||||
@AllArgsConstructor
|
||||
@Schema(description = "当前登录用户信息")
|
||||
public class UserInfoResponse {
|
||||
@Schema(description = "用户主键")
|
||||
@Schema(description = "用户主键", example = "1")
|
||||
private Long id;
|
||||
@Schema(description = "用户名")
|
||||
@Schema(description = "用户名", example = "admin")
|
||||
private String username;
|
||||
@Schema(description = "真实姓名")
|
||||
@Schema(description = "真实姓名", example = "张三")
|
||||
private String realName;
|
||||
@Schema(description = "角色", example = "ADMIN")
|
||||
private String role;
|
||||
@Schema(description = "所属公司 ID")
|
||||
@Schema(description = "所属公司 ID", example = "1")
|
||||
private Long companyId;
|
||||
@Schema(description = "所属公司名称")
|
||||
@Schema(description = "所属公司名称", example = "示例科技有限公司")
|
||||
private String companyName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user