package cn.reghao.tnb.user.app.model.po;

import cn.reghao.jutil.jdk.web.db.BaseObject;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import jakarta.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author reghao
 * @date 2024-04-16 16:50:23
 */
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
public class WalletBill extends BaseObject<Integer> {
    @NotNull
    private Integer type;
    @NotNull
    private Double quantity;
    @NotNull
    private LocalDateTime createAt;
    @NotNull
    private Long owner;

    private String typeStr;
    private String createAtStr;

    public WalletBill(int type, double quantity, long owner) {
        this.type = type;
        this.quantity = quantity;
        this.createAt = LocalDateTime.now();
        this.owner = owner;
    }
}
