WongBin 3 years ago
parent 72af01a824
commit 66d94a018e

@ -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<P extends PageParam, T extends BaseEntity, D extends BaseDTO>
extends GaeaBaseController<P,T,D> {
/**
*
* @return
*/
public String getI18nLang(){
return LocaleContextHolder.getLocale().getLanguage();
}
}

@ -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<P extends PageParam, T extends BaseEntity> extends GaeaBaseService<P, T> {
}
Loading…
Cancel
Save