package cn.iocoder.yudao.module.member.controller.app.card.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "用户 APP - 余额变动明细分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AppCardPageReqVO extends PageParam {

    @Schema(description = "卡号", example = "23469")
    private Long userId;

    @Schema(description = "余额")
    private BigDecimal money;

    @Schema(description = "加减标志（0：减，1：加）")
    private String flag;

    @Schema(description = "变动金额")
    private BigDecimal changeMoney;

    @Schema(description = "消费类型")
    private String type;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "消费类型")
    private String carteenId;

}