package org.dromara.work.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.work.domain.TpRemittance;

/**
 * 汇款业务对象 tp_remittance
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AutoMapper(target = TpRemittance.class, reverseConvertGenerate = false)
public class TpRemittanceBo {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 别名
     */
    @NotBlank(message = "别名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String alias;

    /**
     * 开户渠道
     */
    @NotNull(message = "开户渠道不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long qid;

    /**
     * 开户类型
     */
    @NotNull(message = "开户类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long type;

    /**
     * 开户名称
     */
    @NotBlank(message = "开户名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 收款码
     */
    @NotBlank(message = "收款码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String qrcode;

    /**
     * 开户时间
     */
    @NotNull(message = "开户时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long opentime;

    /**
     * 付款码链接
     */
    @NotBlank(message = "付款码链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String link;

    /**
     * 状态（1=正常，2=禁用）
     */
    @NotNull(message = "状态（1=正常，2=禁用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long state;

    /**
     * 创建人
     */
    @NotNull(message = "创建人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long addUser;

    /**
     * 是否删除（1=未删除，2=已删除）
     */
    @NotNull(message = "是否删除（1=未删除，2=已删除）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isDel;

    /**
     * 录入时间
     */
    @NotNull(message = "录入时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long addTime;


}
