package jnpf.model.authority.vo.person;

import jnpf.model.authority.po.FtbPermissionRoleAuthorizePerson;
import lombok.Data;

import java.util.Date;

@Data
public class FtbAuthorizedPersonnelVO {
    /**
     * 授权人员主键id
     */
    private String id;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 姓名
     */
    private String userName;

    /**
     * 组织
     */
    private String orgName;
    /**
     * 岗位
     */
    private String postName;
    /**
     * 操作时间
     */
    private Date operateTime;
    /**
     * 操作人姓名
     */
    private String operatorUserName;
    /**
     * 操作人用户id
     */
    private String operatorUserId;

    public static  FtbAuthorizedPersonnelVO covert(FtbPermissionRoleAuthorizePerson c) {
        if (c == null) {
            return null;
        }
        FtbAuthorizedPersonnelVO ftbAuthorizedPersonnelVO = new FtbAuthorizedPersonnelVO();
        ftbAuthorizedPersonnelVO.setId(c.getId());
        ftbAuthorizedPersonnelVO.setUserId(c.getUserId());
        ftbAuthorizedPersonnelVO.setOperatorUserId(c.getCreatorUserId());
        ftbAuthorizedPersonnelVO.setOperateTime(c.getCreatorTime());
        return ftbAuthorizedPersonnelVO;
    }

}
