package com.qqchen.deploy.backend.deploy.repository;

import com.qqchen.deploy.backend.deploy.entity.ApplicationCategory;
import com.qqchen.deploy.backend.framework.repository.IBaseRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * 应用分类Repository
 */
@Repository
public interface IApplicationCategoryRepository extends IBaseRepository<ApplicationCategory, Long> {

    /**
     * 根据编码查询（忽略已删除）
     */
    Optional<ApplicationCategory> findByCodeAndDeletedFalse(String code);

    /**
     * 检查编码是否存在
     */
    boolean existsByCodeAndDeletedFalse(String code);
}

