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

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.Command;
import jakarta.validation.constraints.NotNull;
import java.io.Serial;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 用户流水信息 查询.
 *
 * @author pengliang on 2022/7/21
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class UserGoldRunningWaterBackQryCmd extends Command {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 系统来源.
   */
  private String sysOrigin;

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

  /**
   * 后台操作用户.
   */
  private Boolean queryBackOperationUser;

  /**
   * 后台操作用户ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long backOperationUser;

  /**
   * 跟踪id.
   */
  private String trackId;

  /**
   * 类型0.收入 1.消耗.
   */
  private Integer type;

  /**
   * 来源.
   */
  private String origin;

  /**
   * 创建时间.
   */
  @NotNull(message = "startTime required.")
  private Long startTime;

  /**
   * 修改时间.
   */
  @NotNull(message = "endTime required.")
  private Long endTime;

  /**
   * 最后一条记录id.
   */
  private Long lastId;

  /**
   * cls检索下一页.
   */
  private String context;

  /**
   * 每页大小.
   */
  private Integer limit;
}
