package com.zhujizheng.IHome.generator.mapper; import com.zhujizheng.IHome.generator.dao.PYPrivacySpace; import org.apache.ibatis.annotations.Param; import java.util.List; public interface PYPrivacySpaceMapper { /** * @Description: 插入数据 * @Param: com.zhujizheng.IHome.generator.dao.PYPrivacySpace; * @return: 非0成功 否则失败 * @Author: 朱吉峥 * @Date: 2021/12/21 */ int insertPrivacySpace(PYPrivacySpace privacySpace); /** * @Description: 移动文件 * @Param: 文件id,目标文件夹id,时间 * @return: 非0成功 否则失败 * @Author: 朱吉峥 * @Date: 2021/12/29 */ int updateFileFolder(@Param("psId") int psId, @Param("folderId") int folderId, @Param("time") long time); /** * @Description: 重命名文件 * @Param: 文件id,文件名,时间 * @return: 非0成功 否则失败 * @Author: 朱吉峥 * @Date: 2021/12/29 */ int updateFileName(@Param("psId") int psId, @Param("name") String name, @Param("time") long time); /** * @Description: 删除数据 * @Param: 私密id * @return: 非0成功 否则失败 * @Author: 朱吉峥 * @Date: 2021/12/21 */ int deleteFile(@Param("psId") int psId); /** * @Description: 查询数据 * @Param: 用户id,文件夹id,文件id * @return: com.zhujizheng.IHome.generator.dao.PYPrivacySpace; * @Author: 朱吉峥 * @Date: 2021/12/21 */ List selectAllFile(@Param("userId") int userId, @Param("folderId") int folderId, @Param("psId") int psId); /** * @Description: 查询指定类型的数据 * @Param: 用户id,文件夹id,文件id,类型 * @return: com.zhujizheng.IHome.generator.dao.PYPrivacySpace; * @Author: 朱吉峥 * @Date: 2021/12/21 */ List selectAllFileWithType(@Param("userId") int userId, @Param("folderId") int folderId, @Param("psId") int psId, @Param("type") int type); /** * @Description: 获取指定id的数据 * @Param: 文件id * @return: com.zhujizheng.IHome.generator.dao.PYPrivacySpace; * @Author: 朱吉峥 * @Date: 2021/12/21 */ PYPrivacySpace selectFileWithId(@Param("psId") int psId); /** * @Description: 获取指定文件名和时间的数据 * @Param: 文件名,时间 * @return: com.zhujizheng.IHome.generator.dao.PYPrivacySpace; * @Author: 朱吉峥 * @Date: 2021/12/29 */ PYPrivacySpace selectFileWithNameAndTime(@Param("name") String name, @Param("time") long time); }