package com.zsElectric.boot.business.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 企业资金流水视图对象
 *
 * @author zsElectric
 * @since 2025-12-26
 */
@Getter
@Setter
@Schema(description = "企业资金流水视图对象")
public class FirmAccountLogVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "企业ID")
    private Long firmId;

    @Schema(description = "类型（1-企业 2-渠道）")
    private Integer firmType;

    @Schema(description = "企业名称")
    private String firmName;

    @Schema(description = "项目名称")
    private String projectName;

    @Schema(description = "交易名称")
    private String name;

    @Schema(description = "流水号")
    private String serialNo;

    @Schema(description = "收支类型（1-转入/上账 2-转出/下账）")
    private Integer incomeType;

    @Schema(description = "改变前金额")
    private BigDecimal beforeChange;

    @Schema(description = "改变后金额")
    private BigDecimal afterChange;

    @Schema(description = "改变金额")
    private BigDecimal moneyChange;

    @Schema(description = "改变类型")
    private Integer changeType;

    @Schema(description = "关联用户ID")
    private Long childId;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
