package com.wzj.soopin.member.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * 账户明细返回对象
 */
@Schema(description = "账户明细返回对象")
@Data
public class AccountDetailVO {

    @Schema(description = "记录ID")
    private Long id;

    @Schema(description = "会员ID")
    private Long memberId;

    @Schema(description = "账户ID")
    private Long accountId;

    @Schema(description = "账户类型 1-用户 2-商家 3-代理 4-平台")
    private Integer accountType;

    @Schema(description = "账户类型描述")
    private String accountTypeDesc;

    @Schema(description = "用户类型 1-租户 2-会员")
    private Integer userType;

    @Schema(description = "用户类型描述")
    private String userTypeDesc;

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

    @Schema(description = "变动前余额")
    private BigDecimal beforeBalance;

    @Schema(description = "变动后余额")
    private BigDecimal afterBalance;

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

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

    @Schema(description = "变动类型描述")
    private String changeTypeDesc;

    @Schema(description = "变动描述")
    private String changeDesc;

    @Schema(description = "变动来源")
    private Integer source;

    @Schema(description = "变动来源描述")
    private String sourceDesc;

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