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

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

import java.time.LocalDateTime;

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

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