package cn.van.business.repository;

import cn.van.business.model.wx.Setting;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface SettingRepository extends JpaRepository<Setting, Integer> {

    // Find a setting by its unique key
    Optional<Setting> findBySettingKey(String settingKey);

    // You could add more queries if needed, example:
    // List<Setting> findBySettingKeyStartingWith(String prefix);
}
