package com.kiisoo.ic.department.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @Description: 成员-部门关系
 * @Auther: yechenhao
 * @Date: 2020/4/7 0002 10:06
 * @Version: v1
 */
@Data
@TableName("privilage_cp_user_department")
public class PrivilageCpUserDepartmentDO {
  /**
   * 主键id
   */
  @TableId(type = IdType.AUTO)
  private Long id;
  /**
   * privilage_cp_user 主键id 非企业微信userId
   */
  private Long cpUserId;
  /**
   * 部门id
   */
  private Long departmentId;
  /**
   * 部门内排序
   */
  private Integer orderNum;
  /**
   * 是否主管
   */
  private Integer isLeader;

  public PrivilageCpUserDepartmentDO() {}

  public PrivilageCpUserDepartmentDO(Long cpUserId, Long departmentId, Integer orderNum, Integer isLeader) {
    this.cpUserId = cpUserId;
    this.departmentId = departmentId;
    this.orderNum = orderNum;
    this.isLeader = isLeader;
  }
}
