package com.fs.course.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fs.common.annotation.Excel;
import com.fs.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 用户客服关联对象 fs_user_company_bind
 *
 * @author fs
 * @date 2025-07-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class FsUserCompanyBind extends BaseEntity{

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long fsUserId;

    /** 客服id */
    @Excel(name = "客服id")
    private Long companyUserId;

    /** 公司ID */
    @Excel(name = "公司ID")
    private Long companyId;

    /** 课程项目ID */
    @Excel(name = "课程项目ID")
    private Long projectId;

    /** 企微用户ID */
    @Excel(name = "企微用户ID")
    private Long qwUserId;

    /** 企微外部联系人ID */
    @Excel(name = "企微外部联系人ID")
    private Long qwExternalContactId;

    /** 企微主体ID */
    @Excel(name = "企微主体ID")
    private Long qwCompanyId;

    /** 课程ID */
    @Excel(name = "课程ID")
    private Long courseId;

    /** 视频ID */
    @Excel(name = "视频ID")
    private Long videoId;

    /** 看课记录ID */
    private Long watchLogId;

    /** 完课状态 */
    @Excel(name = "完课状态")
    private Integer logType;

    /** 完课时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完课时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime finishTime;


}
