queryAll();
+
+
+}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/tag/service/IMetaTagService.java b/pmapi/src/main/java/com/ningdatech/pmapi/meta/service/IMetaTagService.java
similarity index 50%
rename from pmapi/src/main/java/com/ningdatech/pmapi/tag/service/IMetaTagService.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/meta/service/IMetaTagService.java
index ce9005b..862fe70 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/tag/service/IMetaTagService.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/meta/service/IMetaTagService.java
@@ -1,7 +1,10 @@
-package com.ningdatech.pmapi.tag.service;
+package com.ningdatech.pmapi.meta.service;
-import com.ningdatech.pmapi.tag.entity.MetaTag;
+import com.ningdatech.pmapi.meta.model.entity.MetaTag;
import com.baomidou.mybatisplus.extension.service.IService;
+import com.ningdatech.pmapi.meta.model.dto.TagDTO;
+
+import java.util.List;
/**
*
@@ -13,4 +16,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface IMetaTagService extends IService {
+ List queryAll();
+
}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/impl/ExpertDictionaryServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/meta/service/impl/ExpertDictionaryServiceImpl.java
similarity index 57%
rename from pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/impl/ExpertDictionaryServiceImpl.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/meta/service/impl/ExpertDictionaryServiceImpl.java
index f9025cc..346f4ec 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/impl/ExpertDictionaryServiceImpl.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/meta/service/impl/ExpertDictionaryServiceImpl.java
@@ -1,8 +1,8 @@
-package com.ningdatech.pmapi.dictionary.service.impl;
+package com.ningdatech.pmapi.meta.service.impl;
-import com.ningdatech.pmapi.dictionary.entity.ExpertDictionary;
-import com.ningdatech.pmapi.dictionary.mapper.ExpertDictionaryMapper;
-import com.ningdatech.pmapi.dictionary.service.IExpertDictionaryService;
+import com.ningdatech.pmapi.meta.model.entity.ExpertDictionary;
+import com.ningdatech.pmapi.meta.mapper.ExpertDictionaryMapper;
+import com.ningdatech.pmapi.meta.service.IExpertDictionaryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/tag/service/impl/ExpertTagServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/meta/service/impl/ExpertTagServiceImpl.java
similarity index 59%
rename from pmapi/src/main/java/com/ningdatech/pmapi/tag/service/impl/ExpertTagServiceImpl.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/meta/service/impl/ExpertTagServiceImpl.java
index d62ceef..891089f 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/tag/service/impl/ExpertTagServiceImpl.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/meta/service/impl/ExpertTagServiceImpl.java
@@ -1,8 +1,8 @@
-package com.ningdatech.pmapi.tag.service.impl;
+package com.ningdatech.pmapi.meta.service.impl;
-import com.ningdatech.pmapi.tag.entity.ExpertTag;
-import com.ningdatech.pmapi.tag.mapper.ExpertTagMapper;
-import com.ningdatech.pmapi.tag.service.IExpertTagService;
+import com.ningdatech.pmapi.meta.model.entity.ExpertTag;
+import com.ningdatech.pmapi.meta.mapper.ExpertTagMapper;
+import com.ningdatech.pmapi.meta.service.IExpertTagService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/meta/service/impl/MetaDictionaryServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/meta/service/impl/MetaDictionaryServiceImpl.java
new file mode 100644
index 0000000..e55df9e
--- /dev/null
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/meta/service/impl/MetaDictionaryServiceImpl.java
@@ -0,0 +1,32 @@
+package com.ningdatech.pmapi.meta.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.ningdatech.pmapi.meta.model.entity.MetaDictionary;
+import com.ningdatech.pmapi.meta.mapper.MetaDictionaryMapper;
+import com.ningdatech.pmapi.meta.service.IMetaDictionaryService;
+import com.ningdatech.pmapi.meta.assembler.MetaDictionaryAssembler;
+import com.ningdatech.pmapi.meta.model.dto.DictionaryDTO;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+import java.util.stream.Collectors;
+
+/**
+ *
+ * 服务实现类
+ *
+ *
+ * @author Liuxinxin
+ * @since 2023-02-22
+ */
+@Service
+public class MetaDictionaryServiceImpl extends ServiceImpl implements IMetaDictionaryService {
+
+ @Override
+ public List queryAll() {
+ List dictionaryList = this.lambdaQuery().ne(MetaDictionary::getId, -1).list();
+ List dictionaryDTOList = dictionaryList.stream().map(MetaDictionaryAssembler::toDictionaryDTO).collect(Collectors.toList());
+ return dictionaryDTOList;
+ }
+
+}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/meta/service/impl/MetaTagServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/meta/service/impl/MetaTagServiceImpl.java
new file mode 100644
index 0000000..c60de04
--- /dev/null
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/meta/service/impl/MetaTagServiceImpl.java
@@ -0,0 +1,33 @@
+package com.ningdatech.pmapi.meta.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.ningdatech.pmapi.meta.assembler.MetaTagAssembler;
+import com.ningdatech.pmapi.meta.model.entity.MetaTag;
+import com.ningdatech.pmapi.meta.mapper.MetaTagMapper;
+import com.ningdatech.pmapi.meta.model.dto.TagDTO;
+import com.ningdatech.pmapi.meta.service.IMetaTagService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+import java.util.stream.Collectors;
+
+/**
+ *
+ * 服务实现类
+ *
+ *
+ * @author Liuxinxin
+ * @since 2023-02-22
+ */
+@Service
+public class MetaTagServiceImpl extends ServiceImpl implements IMetaTagService {
+
+
+ @Override
+ public List queryAll() {
+ List allTags = this.lambdaQuery().ne(MetaTag::getId, -1).list();
+ List allTagDTOList = allTags.stream().map(MetaTagAssembler::toTagDTO).collect(Collectors.toList());
+ return allTagDTOList;
+ }
+
+}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/meta/validate/TagListRequestValidator.java b/pmapi/src/main/java/com/ningdatech/pmapi/meta/validate/TagListRequestValidator.java
new file mode 100644
index 0000000..836c3c6
--- /dev/null
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/meta/validate/TagListRequestValidator.java
@@ -0,0 +1,31 @@
+package com.ningdatech.pmapi.meta.validate;
+
+
+import com.ningdatech.basic.exception.BizException;
+import com.ningdatech.pmapi.meta.constant.ExpertTagEnum;
+import com.ningdatech.pmapi.meta.model.po.ReqTagListPO;
+import org.apache.commons.collections4.CollectionUtils;
+
+import java.util.List;
+
+/**
+ * @author liuxinxin
+ * @date 2022/7/22 下午2:44
+ */
+
+public class TagListRequestValidator {
+
+ private TagListRequestValidator() {
+ }
+
+ public static void tagListRequestValidator(ReqTagListPO request) {
+ List rootTagCodeList = request.getRootTagCodeList();
+ if (CollectionUtils.isNotEmpty(rootTagCodeList)) {
+ for (String rootTagCode : rootTagCodeList) {
+ if (!ExpertTagEnum.contains(rootTagCode)) {
+ throw new BizException("Illegal rootTagCode:" + rootTagCode);
+ }
+ }
+ }
+ }
+}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/tag/service/impl/MetaTagServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/tag/service/impl/MetaTagServiceImpl.java
deleted file mode 100644
index 458b843..0000000
--- a/pmapi/src/main/java/com/ningdatech/pmapi/tag/service/impl/MetaTagServiceImpl.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.ningdatech.pmapi.tag.service.impl;
-
-import com.ningdatech.pmapi.tag.entity.MetaTag;
-import com.ningdatech.pmapi.tag.mapper.MetaTagMapper;
-import com.ningdatech.pmapi.tag.service.IMetaTagService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-
-/**
- *
- * 服务实现类
- *
- *
- * @author Liuxinxin
- * @since 2023-02-22
- */
-@Service
-public class MetaTagServiceImpl extends ServiceImpl implements IMetaTagService {
-
-}