package com.hr.repository.jpa;

import com.hr.repository.domain.IpTokenInterfacePO;
import com.yy.basedevelop.common.data.BasePageResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * token与接口关系表;(ip_token_interface)表数据库访问层
 * @author : Longhoo
 * @date : 2025-10-10
 */
public interface IpTokenInterfaceRepository extends JpaRepository<IpTokenInterfacePO,Long> {

    IpTokenInterfacePO findByAidAndIid(Long aid, Long iid);

    BasePageResult<IpTokenInterfacePO> queryList(@Param("aid") Long aid, @Param("statusList") List<String> statusList);

    List<IpTokenInterfacePO> queryRefList(@Param("accountId") Long accountId, @Param("interfaceId") Long interfaceId);

    IpTokenInterfacePO getByAidAndIid(@Param("accountId") Long accountId, @Param("interfaceId") Long interfaceId);
}