package com.zt.plat.module.base.service.tmpltp;

import java.util.*;

import com.zt.plat.module.base.controller.admin.templtp.vo.DepartmentInstanceRelativityPageReqVO;
import com.zt.plat.module.base.controller.admin.templtp.vo.DepartmentInstanceRelativityRespVO;
import com.zt.plat.module.base.controller.admin.templtp.vo.DepartmentInstanceRelativitySaveReqVO;
import com.zt.plat.module.base.dal.dataobject.tmpltp.DepartmentInstanceRelativityDO;
import jakarta.validation.*;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.PageParam;

/**
 * 部门与实例关联 Service 接口
 *
 * @author 后台管理
 */
public interface DepartmentInstanceRelativityService {

    /**
     * 创建部门与实例关联
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    DepartmentInstanceRelativityRespVO createDepartmentInstanceRelativity(@Valid DepartmentInstanceRelativitySaveReqVO createReqVO);

    /**
     * 更新部门与实例关联
     *
     * @param updateReqVO 更新信息
     */
    void updateDepartmentInstanceRelativity(@Valid DepartmentInstanceRelativitySaveReqVO updateReqVO);

    /**
     * 删除部门与实例关联
     *
     * @param id 编号
     */
    void deleteDepartmentInstanceRelativity(String id);

    /**
    * 批量删除部门与实例关联
    *
    * @param ids 编号
    */
    void deleteDepartmentInstanceRelativityListByIds(List<Long> ids);

    /**
     * 获得部门与实例关联
     *
     * @param id 编号
     * @return 部门与实例关联
     */
    DepartmentInstanceRelativityDO getDepartmentInstanceRelativity(String id);

    /**
     * 获得部门与实例关联分页
     *
     * @param pageReqVO 分页查询
     * @return 部门与实例关联分页
     */
    PageResult<DepartmentInstanceRelativityDO> getDepartmentInstanceRelativityPage(DepartmentInstanceRelativityPageReqVO pageReqVO);

}
