package jnpf.model.certificate.req;

import jnpf.model.certificate.req.app.CertificateAppBusinessLicenseUpdateReq;
import jnpf.model.certificate.req.app.CertificateAppHealthCertificateUpdateReq;
import jnpf.model.certificate.req.app.CertificateAppHygieneLicenseUpdateReq;
import jnpf.model.certificate.req.app.CertificateAppStoreCustomUpdateReq;
import jnpf.permission.dto.v2.organzie.SaveStoreDTO;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Collection;

/**
 * 保存门店及门店证照请求参数。
 */
@Data
public class CertificateStoreSaveReq implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 门店保存参数。
     */
    @Valid
    @NotNull(message = "门店信息不能为空")
    private SaveStoreDTO store;

    /**
     * 营业执照参数。
     */
    private CertificateAppBusinessLicenseUpdateReq businessLicense;

    /**
     * 食品经营许可证参数。
     */
    private CertificateAppHygieneLicenseUpdateReq hygieneLicense;

    /**
     * 门店自定义证照参数集合。
     */
    private Collection<CertificateAppStoreCustomUpdateReq> storeCustomCertificates;
}
