UserInfoVO.java 777 Bytes
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;
    }

}