ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/ICodeClassifyClient.java ÐÞ¸Ä |
| | |
| | | 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"; |
| | | |
| | | /** |
| | | * è·å主é¢åºå®ä¹è¡¨å表 |
| | |
| | | @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); |
| | | } |