package com.microservices.pms.productLibrary.service;

import com.microservices.common.core.web.page.GenericsTableDataInfo;
import com.microservices.pms.productLibrary.domain.PmsProductLibraryRepositories;
import com.microservices.pms.productLibrary.domain.vo.PmsProductLibrarySnapshotSimpleVo;
import com.microservices.pms.productLibrary.domain.vo.ProductRepositoriesSnapshotInputVo;

/**
 * @author OTTO
 */
public interface IPmsProductLibrarySnapshotRepoService {

    GenericsTableDataInfo<PmsProductLibrarySnapshotSimpleVo> selectPmsProductLibrarySnapshotPageList(String enterpriseIdentifier, String repoName, String snapshotName);

    /**
     * 新增快照库
     *
     * @param productRepositoriesSnapshotInputVo 快照库输入对象
     * @return 结果
     */
    Long insertPmsProductLibrarySnapshot(ProductRepositoriesSnapshotInputVo productRepositoriesSnapshotInputVo);

    PmsProductLibrarySnapshotSimpleVo selectPmsProductLibrarySnapshotDataByName(String enterpriseIdentifier, String repoName, String snapshotName);

    PmsProductLibraryRepositories selectPmsProductLibrarySnapshotByName(String enterpriseIdentifier, String repoName, String snapshotName);

    int deletePmsProductLibrarySnapshotRepoByName(String enterpriseIdentifier, String repoName, String snapshotName);
}
