package com.lf.server.mapper.data;
|
|
import com.lf.server.entity.data.DirEntity;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
|
/**
|
* Dir
|
* @author sws
|
* @date 2022-09-24
|
*/
|
|
@Mapper
|
@Repository
|
public interface DirMapper {
|
/**
|
* 插入一条
|
*
|
* @param dirEntity
|
* @return
|
*/
|
public Integer insert(DirEntity dirEntity);
|
|
/**
|
* 插入多条
|
*
|
* @param list
|
* @return
|
*/
|
public Integer inserts(List<DirEntity> list);
|
|
/**
|
* 删除一条
|
*
|
* @param id
|
* @return
|
*/
|
public Integer deleteDir(int id);
|
|
/**
|
* 删除多条
|
*
|
* @param ids
|
* @return
|
*/
|
public Integer deleteDirs(List<Integer> ids);
|
|
/**
|
* 更新一条
|
*
|
* @param dirEntity
|
* @return
|
*/
|
public Integer update(DirEntity dirEntity);
|
|
/**
|
* 更新多条
|
*
|
* @param list
|
* @return
|
*/
|
public Integer updates(List<DirEntity> list);
|
|
/**
|
* 查询单条数据
|
*
|
* @param id
|
* @return
|
*/
|
public DirEntity selectDir(int id);
|
|
/**
|
* 查询多条数据
|
*
|
* @return
|
*/
|
public List<DirEntity> selectDirAll();
|
|
/**
|
* 查询根目录
|
*
|
* @return
|
*/
|
public List<DirEntity> selectDirRoot();
|
|
/**
|
* 查询项目
|
*
|
* @return
|
*/
|
public List<DirEntity> selectProject();
|
|
/**
|
* 递归查询
|
*
|
* @param id
|
* @return
|
*/
|
public List<DirEntity> selectRecursiveById(Integer id);
|
}
|