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

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

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.math.BigDecimal;

/**
 * 个人账户视图对象
 *
 * @author zsElectric
 * @since 2025-12-12 10:20
 */
@Getter
@Setter
@Schema( description = "个人账户视图对象")
public class UserAccountVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "个人账户信息")
    private Long id;
    @Schema(description = "用户编号")
    private Long userId;
    @Schema(description = "可用抵用券余额")
    private BigDecimal balance;
    @Schema(description = "交易码")
    private String tradeCode;
    @Schema(description = "欠款金额")
    private BigDecimal amountOwed;
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    @Schema(description = "创建人")
    private Long createBy;
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    @Schema(description = "更新人")
    private Long updateBy;
    @Schema(description = "逻辑删除（0-未删除 1-已删除）")
    @TableLogic
    private Integer isDeleted;
}
