package com.cf.imes.module.executor.controller.admin.funds.balancedetails.vo;


import com.cf.imes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

import static com.cf.imes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;


@Schema(description = "管理后台 - 组织余额明细分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
public class BalanceDetailsPageReqVO extends PageParam {


    @Schema(description = "流水号")
    private Long id;


    @Schema(description = "组织名称")
    private String organName;


    @Schema(description = "交易类型")
    private Integer tradeType;


    @Schema(description = "收支类型")
    private Integer incomeExpenseType;


    @Schema(description = "创建时间", example = "[2022-07-01 ,2022-07-01]")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] createTime;


    @Schema(description = "组织ID")
    private Long organId;


}
