com.haoxuer.discover.web.freemaker.WebConfigDirectiveModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discover-website Show documentation
Show all versions of discover-website Show documentation
discover网站配置模块,主要管理网站主题,网站配置等功能
package com.haoxuer.discover.web.freemaker;
import com.haoxuer.discover.common.freemarker.ObjectDirectiveModel;
import com.haoxuer.discover.web.api.apis.WebConfigApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component("webConfigDirectiveModel")
public class WebConfigDirectiveModel extends ObjectDirectiveModel {
@Autowired
private WebConfigApi api;
@Override
public Object data() {
return api.config();
}
}