mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
🎉 初始化提交
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package im.zhaojun.common.service;
|
||||
|
||||
import im.zhaojun.common.mapper.SystemConfigMapper;
|
||||
import im.zhaojun.common.model.SystemConfig;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Service
|
||||
public class SystemConfigService {
|
||||
|
||||
@Resource
|
||||
private SystemConfigMapper systemConfigMapper;
|
||||
|
||||
@Cacheable("zfile")
|
||||
public SystemConfig getSystemConfig() {
|
||||
return systemConfigMapper.selectFirstConfig();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user