diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/base/BaseController.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/base/BaseController.java new file mode 100644 index 00000000..0052d6c5 --- /dev/null +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/base/BaseController.java @@ -0,0 +1,25 @@ +package com.anjiplus.template.gaea.business.base; + +import org.springframework.context.i18n.LocaleContextHolder; + +import com.anji.plus.gaea.curd.controller.GaeaBaseController; +import com.anji.plus.gaea.curd.dto.BaseDTO; +import com.anji.plus.gaea.curd.entity.BaseEntity; +import com.anji.plus.gaea.curd.params.PageParam; + +/** + * 项目级的Controller公共处理基类 + * + * @author WongBin + * @date 2021/3/26 + */ +public abstract class BaseController
+ extends GaeaBaseController
{ + /** + * 获取当前语言类型 + * @return + */ + public String getI18nLang(){ + return LocaleContextHolder.getLocale().getLanguage(); + } +} diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/base/BaseService.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/base/BaseService.java new file mode 100644 index 00000000..6808cb91 --- /dev/null +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/base/BaseService.java @@ -0,0 +1,15 @@ +package com.anjiplus.template.gaea.business.base; + +import com.anji.plus.gaea.curd.entity.BaseEntity; +import com.anji.plus.gaea.curd.params.PageParam; +import com.anji.plus.gaea.curd.service.GaeaBaseService; +import org.springframework.context.i18n.LocaleContextHolder; + +/** + * 项目级的Service公共处理基类 + * @author WongBin + * @date 2021/3/26 + */ +public interface BaseService
extends GaeaBaseService
{ + +}