package com.testor.ddd.safetyControl.domain.riskOwner.entity;

import com.testor.ddd.safetyControl.interfaces.model.dto.riskOwner.TSafeRiskOwnerDTO;
import com.testor.ddd.safetyControl.interfaces.model.dto.riskOwner.TSafeRiskOwnerDTOParam;
import com.testor.ddd.safetyControl.interfaces.model.vo.riskOwner.TSafeRiskOwnerVO;
import com.tongtech.tfw.backend.common.biz.models.BaseResponseList;

import java.util.List;

/**
 *
 * 连接持久化的接口，具体实现类为 infrastructure.repository.impl
 *
 */
public interface TSafeRiskOwnerRepo {


    TSafeRiskOwnerDTO insert(TSafeRiskOwnerDTO riskOwnerDTO);


//    int insert(TSafeRiskSourceDTO riskSourceDTO);
//
//    int updateById(TSafeRiskSourceDTO riskSourceDTO);
//

    BaseResponseList<TSafeRiskOwnerVO> listPage(TSafeRiskOwnerDTOParam param);

//    TSafeRiskSourceDTO findById(String id);
//
//    boolean deleteById(String id);
//
//    List<TSafeRiskSourceDTO> listAllEntity(TSafeRiskSourceDTOParam param);
//
    boolean saveBatch(List<TSafeRiskOwnerDTO> riskOwnerDTOList);

    boolean deleteByRiskBizId(String riskBizId);

    List<TSafeRiskOwnerVO> listAll(TSafeRiskOwnerDTOParam param);
}
