com.github.rexsheng.springboot.faster.system.locale.domain.DictDomainService Maven / Gradle / Ivy
The newest version!
package com.github.rexsheng.springboot.faster.system.locale.domain;
import com.github.rexsheng.springboot.faster.system.dict.application.DictService;
import com.github.rexsheng.springboot.faster.system.dict.application.dto.DictDetailResponse;
import com.github.rexsheng.springboot.faster.system.dict.application.dto.QueryDictRequest;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.stream.Collectors;
@Service
public class DictDomainService {
@Resource
private DictService dictService;
public List getDictList(){
QueryDictRequest request=new QueryDictRequest();
request.setFetchTypeCode(true);
request.setFetchDeleted(true);
List dataList=dictService.queryList(request);
return dataList.stream().map(SysLocaleSource::of).collect(Collectors.toList());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy