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

import cn.reghao.jutil.jdk.web.validator.ValidEnum;
import cn.reghao.tnb.content.app.chat.model.constant.ReceiverType;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * @author reghao
 * @date 2024-12-03 14:31:28
 */
@NoArgsConstructor
@Setter
@Getter
public class HongbaoDto {
    @ValidEnum(value = ReceiverType.class, message = "红包接收人不正确")
    private Integer receiverType;
    @NotNull
    private Long receiverId;
    @NotNull
    private Double amount;
    @NotNull
    private Integer num;
    @Size(min = 1, max = 20, message = "祝福语不能超过20个字符")
    private String remark;
}
