package com.red.circle.wallet.inner.model.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.DTO;
import java.io.Serial;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 经销商卖家信息.
 * </p>
 *
 * @author zongpubin on 2023-07-14 15:28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FreightSellerDTO extends DTO {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 归属平台.
   */
  private String sysOrigin;

  /**
   * 用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 货运代理(经销商)id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long freightId;

  /**
   * 经销商授权额度.
   */
  private BigDecimal earnGold;

  /**
   * 已用额度.
   */
  private BigDecimal consumptionGold;

  /**
   * 0.未删除 1.已删除.
   */
  private Boolean del;


  private Timestamp createTime;
  private Timestamp updateTime;
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createUser;
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateUser;

}
