You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
2.8 KiB
Java

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.kiisoo.ic.employee.entity;
import lombok.Data;
import me.chanjar.weixin.cp.bean.Gender;
/**
* @Description: 员工对象
* @Auther: yechenhao
* @Date: 2020/4/7 0002 10:06
* @Version: v1
*/
@Data
public class EmployeeDO {
/**
* 数据库实体id
*/
private Long id;
/**
* 绑定的店铺id
*/
private Long storeId;
/**
* 员工企业微信员工id
* 对应管理端的帐号企业内必须唯一。不区分大小写长度为1~64个字节。只能由数字、字母和“_-@.”四种字符组成,且第一个字符必须是数字或字母。
*/
private String userId;
/**
* 员工名
*/
private String name;
/**
* 企业微信名称
*/
private String cpUserName;
/**
* 成员所属部门id列表,不超过20个(企业微信部门id非数据库部门id)
*/
private Long[] departIds;
/**
* 部门内的排序值默认为0成员次序以创建时间从小到大排列。数量必须和department一致数值越大排序越前面。有效的值范围是[0, 2^32)
*/
private Integer[] orders;
/**
* 职务信息。长度为0~128个字符
*/
private String position;
/**
* 手机号码。企业内必须唯一mobile/email二者不能同时为空
*/
private String mobile;
/**
* 性别。1表示男性2表示女性
*/
private Integer gender;
/**
* 邮箱。长度6~64个字节且为有效的email格式。企业内必须唯一mobile/email二者不能同时为空
*/
private String email;
/**
* 地址。长度最大128个字符
*/
private String address;
/**
* 成员头像的mediaid通过素材管理接口上传图片获得的mediaid
*/
private String avatarMediaId;
/**
* 数据库成员状态
*/
private Integer status;
/**
* 启用/禁用成员。1表示启用成员0表示禁用成员
*/
private Integer enable;
/**
* 别名;第三方仅通讯录应用可获取
*/
private String alias;
/**
* is_leader_in_dept.
* 个数必须和department一致表示在所在的部门内是否为上级。1表示为上级0表示非上级。在审批等应用里可以用来标识上级审批人
*/
private Integer[] isLeaderInDept;
/**
* 座机。32字节以内由纯数字或-‘号组成。
*/
private String telephone;
/**
* 员工邀请码
*/
private String inviteQrCode;
/**
* 是否邀请该成员使用企业微信将通过微信服务通知或短信或邮件下发邀请每天自动下发一次最多持续3个工作日默认值为true。
*/
private Boolean toInvite;
private String[] checkbox;
}