cn.wizzer.app.cms.modules.services.impl.CmsSiteServiceImpl Maven / Gradle / Ivy
package cn.wizzer.app.cms.modules.services.impl;
import cn.wizzer.framework.base.service.BaseServiceImpl;
import cn.wizzer.app.cms.modules.models.Cms_site;
import cn.wizzer.app.cms.modules.services.CmsSiteService;
import com.alibaba.dubbo.config.annotation.Service;
import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.plugins.wkcache.annotation.CacheDefaults;
import org.nutz.plugins.wkcache.annotation.CacheRemoveAll;
import org.nutz.plugins.wkcache.annotation.CacheResult;
@IocBean(args = {"refer:dao"})
@Service(interfaceClass = CmsSiteService.class)
@CacheDefaults(cacheName = "cms_site")
public class CmsSiteServiceImpl extends BaseServiceImpl implements CmsSiteService {
public CmsSiteServiceImpl(Dao dao) {
super(dao);
}
@CacheResult
public Cms_site getSite(String code) {
return this.fetch(Cnd.where("id", "=", code));
}
@CacheRemoveAll
public void clearCache() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy