package com.czg.service.system.mapper;

import com.czg.system.entity.SysParams;
import com.mybatisflex.core.BaseMapper;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

/**
 *  映射层。
 *
 * @author mac
 * @since 2025-02-07
 */
@CacheConfig(cacheNames = "params")
public interface SysParamsMapper extends BaseMapper<SysParams> {

    @Cacheable(key = "#code")
    SysParams getSysParam(String code);

}
