package com.ruoyi.jarvis.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * TG黄牛电话库（开/慢开前置命中则不走TG，一条可含多个 11 位手机号）
 *
 * @author jarvis
 */
public class TgScalperPhone extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    /** JSON 数组字符串，如 ["13800138000","13900139000"] */
    @Excel(name = "手机号数组")
    private String phones;

    /** 列表查询条件：匹配号码（JSON 数组包含精确匹配，或 phones 文本模糊） */
    private String phoneQuery;

    @Excel(name = "备注")
    private String remark;

    /** 0禁用 1启用 */
    @Excel(name = "状态", readConverterExp = "0=禁用,1=启用")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getPhones() { return phones; }
    public void setPhones(String phones) { this.phones = phones; }
    public String getPhoneQuery() { return phoneQuery; }
    public void setPhoneQuery(String phoneQuery) { this.phoneQuery = phoneQuery; }
    public String getRemark() { return remark; }
    public void setRemark(String remark) { this.remark = remark; }
    public Integer getStatus() { return status; }
    public void setStatus(Integer status) { this.status = status; }
    @Override
    public Date getCreateTime() { return createTime; }
    @Override
    public void setCreateTime(Date createTime) { this.createTime = createTime; }
    @Override
    public Date getUpdateTime() { return updateTime; }
    @Override
    public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }

    @Override
    public String toString()
    {
        return "TgScalperPhone{id=" + id + ", phones=" + phones + ", remark=" + remark + ", status=" + status + "}";
    }
}
