package com.cool.store.vo.visit;

import com.cool.store.enums.visit.VisitStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 拜访记录简单信息列表VO
 * </p>
 *
 * @author wangff
 * @since 2025/12/9
 */
@Data
public class VisitRecordSimpleListVO {
    @ApiModelProperty("拜访记录id")
    private Long id;

    @ApiModelProperty(hidden = true)
    private Long lineId;
    
    @ApiModelProperty("加盟商姓名")
    private String name;
    
    @ApiModelProperty("加盟商手机号")
    private String mobile;
    
    @ApiModelProperty("拜访编号")
    private String visitNo;

    @ApiModelProperty("拜访日期")
    private Date visitDate;

    @ApiModelProperty("拜访状态，0待签到 1待签退 2已完成 3已失效")
    private Integer status;

    @ApiModelProperty("拜访状态名称")
    private String statusName;

    @ApiModelProperty("拜访人ID")
    private String userId;

    @ApiModelProperty("拜访人名称")
    private String userName;

    public String getStatusName() {
        return VisitStatusEnum.getDescByStatus(status);
    }
}
