package org.dromara.payment.sys.domain.bo;

import org.dromara.payment.sys.domain.BusDownloads;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 异步下载业务对象 bus_downloads
 *
 * @author LionLi
 * @date 2024-06-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusDownloads.class, reverseConvertGenerate = false)
public class BusDownloadsBo extends BaseEntity {

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

    /**
     * 业务类型(1 用户身份证)
     */
    @NotNull(message = "业务类型(1 用户身份证)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer busType;

    /**
     * 附件地址
     */
    @NotBlank(message = "附件地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;


    private Long ossId;


}
