package cn.reghao.tnb.content.app.chat.model.po;

import cn.reghao.jutil.jdk.web.db.BaseObject;
import cn.reghao.tnb.common.auth.UserContext;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * @author reghao
 * @date 2024-12-03 14:56:39
 */
@NoArgsConstructor
@Setter
@Getter
public class HongbaoReceiver extends BaseObject<Integer> {
    private long hongbaoId;
    private Long receiverId;
    private Double amount;
    private String remark;
    private LocalDateTime createAt;

    public HongbaoReceiver(long hongbaoId, double amount) {
        this.hongbaoId = hongbaoId;
        this.receiverId = UserContext.getUserId();
        this.amount = amount;
        this.remark = "";
        this.createAt = LocalDateTime.now();
    }
}
