UserInfoVO.java
777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.jflyfox.api.vo;
import com.jflyfox.system.user.SysUser;
import lombok.Data;
/**
* @author :likai
* @date :Created in 2020/6/11 18:03
* @description:
*/
@Data
public class UserInfoVO {
private Integer userId;
private String userName;
private String realName;
private String remark;
private String titleUrl;
private Integer userType;
private Integer orderCount;
public UserInfoVO(SysUser user) {
this.userId = user.getUserid();
this.userName = user.getStr("username");
this.realName = user.getStr("realname");
this.remark = user.getStr("remark");
this.titleUrl = user.getStr("titleUrl");
this.userType = user.getInt("usertype");
this.orderCount = 0;
}
}