package com.ydtech.modules.admin.model.po; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.ydtech.modules.admin.model.vo.wechat.SysWechatCustomerAddVo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 微信客服 * * @TableName sys_wechat_customer */ @TableName(value = "sys_wechat_customer") @Data @AllArgsConstructor @NoArgsConstructor public class SysWechatCustomer implements Serializable { /** * 主键 */ @TableId(value = "id", type = IdType.AUTO) private long id; /** * 客服昵称 */ @TableField(value = "nickname") private String nickname; /** * 客服头像 */ @TableField(value = "avatar") private String avatar; /** * 后线人员id */ @TableField(value = "user_id") private String userId; /** * 接待人的部门 */ @TableField(value = "department_id") private String departmentId; /** * 接待人企业微信客服 */ @TableField(value = "receptionist") private String receptionist; /** * 接待人企业微信用户id */ @TableField(value = "receptionist_id") private String receptionistId; /** * 客服账号ID */ @TableField("open_kf_id") private String openKfId; @TableField(exist = false) private static final long serialVersionUID = 1L; public SysWechatCustomer(SysWechatCustomerAddVo sysWechatCustomerAddVo) { this.nickname = sysWechatCustomerAddVo.getNickname(); this.avatar = sysWechatCustomerAddVo.getAvatar(); this.userId = sysWechatCustomerAddVo.getUserId(); this.departmentId = sysWechatCustomerAddVo.getDepartmentId(); this.receptionist = sysWechatCustomerAddVo.getReceptionist(); this.receptionistId = sysWechatCustomerAddVo.getReceptionistId(); } }