| | |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import com.vci.ubcs.code.entity.CodeClassify; |
| | | import com.vci.ubcs.code.entity.CodeClassifyTemplateAttr; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 主题库定义表 Feign接口类 |
| | |
| | | |
| | | String API_PREFIX = "/codeClass"; |
| | | String TOP = API_PREFIX + "/top"; |
| | | |
| | | String CODE_CLASSIFY_TREE=API_PREFIX+"/referCodeClassifyTree"; |
| | | String CODE_ATTRIBUTE_LIST=API_PREFIX+"/listCodeAttributeByClassId"; |
| | | String CODE_GETBYID="/getById"; |
| | | /** |
| | | * 获取主题库定义表列表 |
| | | * |
| | |
| | | @GetMapping(TOP) |
| | | BladePage<CodeClassify> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
| | | |
| | | /*** |
| | | * 获取主题库分类层级树 |
| | | * @param treeQueryObject |
| | | * @return 主题库分类 |
| | | */ |
| | | @PostMapping(CODE_CLASSIFY_TREE) |
| | | public List<Tree> referCodeClassifyTree(@RequestBody TreeQueryObject treeQueryObject); |
| | | |
| | | /*** |
| | | * 获取主数据模板属性信息 |
| | | * @param codeClassifyId |
| | | * reutn 返回主数据模板属性信息 |
| | | */ |
| | | @GetMapping(CODE_ATTRIBUTE_LIST) |
| | | public List<CodeClassifyTemplateAttrVO> listCodeAttributeByClassId(@RequestParam("codeClassifyId") String codeClassifyId); |
| | | |
| | | /*** |
| | | * 根据分类id差爱心分类信息 |
| | | * @param classifyId |
| | | * @return |
| | | */ |
| | | @GetMapping(CODE_GETBYID) |
| | | CodeClassify getById(@RequestParam("classifyId")String classifyId); |
| | | } |