package com.ibeetl.admin.core.dao;

import com.ibeetl.admin.core.entity.CoreFunction;
import com.ibeetl.admin.core.entity.CoreRoute;
import java.util.List;
import org.beetl.sql.mapper.BaseMapper;
import org.beetl.sql.mapper.annotation.Param;
import org.beetl.sql.mapper.annotation.Sql;
import org.beetl.sql.mapper.annotation.SqlResource;

@SqlResource("core.coreFunction")
public interface CoreFunctionDao extends BaseMapper<CoreFunction> {

  @Sql("select * from core_function where code = ?")
  CoreFunction getFunctionByCode(@Param(value = "code") String code);

  List<CoreRoute> getAllRoutes(@Param(value = "roleIds") List<Long> roleIds);

}
