Files
usdt/ruoyi-system/src/main/java/com/ruoyi/system/mapper/AppsMapper.java
T
2026-10-08 21:18:59 -04:00

76 lines
2.0 KiB
Java

package com.ruoyi.system.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.system.domain.Apps;
import com.ruoyi.system.domain.AppsPlus;
/**
* 【请填写功能名称】Mapper接口
*
* @author luqj
* @date 2025-11-20
*/
public interface AppsMapper extends BaseMapper<AppsPlus>
{
/** 锁定所属用户,串行化同一用户的应用创建。 */
Long lockUserById(@Param("userId") Long userId);
/** 查询用户当前未删除的应用数量。 */
int countActiveAppsByUserId(@Param("userId") Long userId);
int updatePublicKey(@Param("id") Long id, @Param("publicKey") String publicKey,
@Param("updatedAt") java.util.Date updatedAt);
int softDeleteAppsByIds(@Param("ids") Long[] ids, @Param("deletedAt") java.util.Date deletedAt);
/**
* 查询【请填写功能名称】
*
* @param id 【请填写功能名称】ID
* @return 【请填写功能名称】
*/
public Apps selectAppsById(Long id);
/**
* 查询【请填写功能名称】列表
*
* @param apps 【请填写功能名称】
* @return 【请填写功能名称】集合
*/
public List<Apps> selectAppsList(Apps apps);
/**
* 新增【请填写功能名称】
*
* @param apps 【请填写功能名称】
* @return 结果
*/
public int insertApps(Apps apps);
/**
* 修改【请填写功能名称】
*
* @param apps 【请填写功能名称】
* @return 结果
*/
public int updateApps(Apps apps);
/**
* 删除【请填写功能名称】
*
* @param id 【请填写功能名称】ID
* @return 结果
*/
public int deleteAppsById(Long id);
/**
* 批量删除【请填写功能名称】
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteAppsByIds(Long[] ids);
}