|
@@ -5,14 +5,12 @@ import cn.rankin.common.utils.api.model.APIResult;
|
|
|
import cn.rankin.common.utils.api.page.Page;
|
|
|
import cn.rankin.common.utils.dto.search.TagTypeSearchDTO;
|
|
|
import cn.rankin.common.utils.enums.BaseOrderEnum;
|
|
|
-import cn.rankin.data.api.app.vo.ItemVo;
|
|
|
import cn.rankin.data.api.product.dto.TagTypeDTO;
|
|
|
import cn.rankin.data.api.product.entity.Tag;
|
|
|
import cn.rankin.data.api.product.entity.TagType;
|
|
|
import cn.rankin.productservice.code.ProductServiceAPICode;
|
|
|
import cn.rankin.productservice.service.TagService;
|
|
|
import cn.rankin.productservice.service.TagTypeService;
|
|
|
-import cn.rankin.productservice.service.app.ItemService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -110,9 +108,8 @@ public class TagTypeController {
|
|
|
}
|
|
|
|
|
|
/* @RequestMapping(value = "/code/{typeCode}", method = RequestMethod.GET)
|
|
|
- public APIResult<TagType> getTagTypeByCode(@PathVariable("typeCode") String typeCode, @RequestParam("merchantId") String merchantId) {
|
|
|
+ public APIResult<List<Tag>> getTagTypeByCode(@PathVariable("typeCode") String typeCode, @RequestParam("merchantId") String merchantId) {
|
|
|
TagType tagType = tagTypeService.getTagTypeByCode(typeCode);
|
|
|
-
|
|
|
if (tagType == null) {
|
|
|
return APIResult.error(ProductServiceAPICode.NOT_EXISTS);
|
|
|
}else{
|
|
@@ -129,9 +126,8 @@ public class TagTypeController {
|
|
|
tag.setRecs(itemVoList);
|
|
|
|
|
|
});
|
|
|
- tagType.setTagList(tagList);
|
|
|
|
|
|
- return APIResult.ok(tagType);
|
|
|
+ return APIResult.ok(tagList);
|
|
|
}
|
|
|
|
|
|
}*/
|