package com.fs.company.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fs.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 销售公司流量记录对象 company_traffic_record_log
 *
 * */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CompanyTrafficRecordLog {

    @Excel(name = "id")
    @TableId
    private Long id;
    @Excel(name = "公司id")
    private Long companyId;
    @Excel(name = "用户id")
    private Long userId;
    @Excel(name = "用户名称")
    private String userName;
    @Excel(name = "操作类型")
    private Integer operationType; // 1-充值 2-扣费
    @Excel(name = "流量变动数")
    private Long trafficAmount;    // 单位: KB
    @Excel(name = "充值金额")
    private Long chargeAmount;    // 单位: 元
    @Excel(name = "流量余额")
    private Long balance;     // 单位: KB
    @Excel(name = "备注")
    private String remark;
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
