package com.imdroid.secapi.dto;

import com.alibaba.excel.annotation.ExcelProperty;
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 lombok.Data;

import java.util.Date;

@Data
@TableName("traffic_cards")
public class TrafficCard {
    public static final int STATUS_UNKNOWN = -1;    // 未知
    public static final int STATUS_WAIT_ACTIVE = 1; // 待激活
    public static final int STATUS_ACTIVATED = 2;   // 已激活
    public static final int STATUS_SUSPENDED = 3;   // 停机
    public static final int STATUS_CANCELLED = 4;   // 注销
    public static final int STATUS_IN_STOCK = 5;    // 库存
    public static final int STATUS_TESTABLE = 6;    // 可测试
    public static final int STATUS_INVALID = 7;     // 失效
    public static final int STATUS_NOT_EXIST = 99;  // 号码不存在

    // 查询状态常量定义
    public static final int QUERY_STATUS_NORMAL = 0;            // 正常状态
    public static final int QUERY_STATUS_NOT_CURRENT_VENDOR = 1; // 非当前卡商
    public static final int QUERY_STATUS_OTHER_ERROR = 2;        // 其他错误

    @TableId(type = IdType.AUTO)
    @ExcelProperty("ID")
    private Integer id;

    @ExcelProperty("ICCID")
    private String iccid;

    @ExcelProperty("物联卡号码")
    private String msisdn;

    @ExcelProperty("状态")
    private Integer status;

    @ExcelProperty("剩余流量(MB)")
    private Integer remaining;

    @ExcelProperty("总流量(MB)")
    private Integer total;

    @ExcelProperty("已用流量(MB)")
    private Integer used;

    @ExcelProperty("更新时间")
    private Date updatetime;

    @ExcelProperty("查询状态")
    private Integer querystatus;
}