@FeignClient(value="resource-core")
@RequestMapping(value="/catalog")
public interface CatalogClient
@RequestMapping(value="/query/root/{type}")
List<CatalogView> findRootCatalog(@PathVariable(name="type")
String type)
type - @RequestMapping(value="/default/root") List<CatalogView> findRootCatalog()
@GetMapping(value="/root/groups") Map findRootCatalogGroups()
@GetMapping(value="/root/getDataDownloadCatalogGroups") Map getDataDownloadCatalogGroups()
@RequestMapping(value="/query/{id}/children")
List<CatalogView> findChildCatalog(@PathVariable(name="id")
String id)
id - @GetMapping(value="/query/children/{parentId}")
List<CatalogView> findByParentId(@PathVariable(name="parentId")
String parentId)
parentId - @RequestMapping(value="/query/type/{type}")
List<Catalog> findCatalogByType(@PathVariable(name="type")
String type)
type - @RequestMapping(value="/query/id/{id}")
Catalog findCatalogById(@PathVariable(name="id")
String id)
id - @RequestMapping(value="/query/findAllCatalogByType/{type}")
List<CatalogView> findAllCatalogByType(@PathVariable(name="type")
String type)
@GetMapping(value="/query/findParentByChild/{id}")
List findParentByChild(@PathVariable(name="id")
String id)
@GetMapping(value="/region/child/{id}")
Iterable<Region> findRegionChild(@PathVariable(name="id")
String id)
id - @PostMapping(value="/saveCatalog") Catalog saveCatalog(@RequestBody Catalog catalog)
@RequestMapping(value="/saveCatalogParams") Catalog saveCatalogParams(@RequestParam(name="parentId",required=false) String parentId, @RequestParam(name="parentType",required=false) String parentType, @RequestParam(name="catalogId",required=false) String catalogId, @RequestParam(name="catalogType",required=false) String catalogType, @RequestParam(name="catalogTitle",required=false) String catalogTitle, @RequestParam(name="catalogRemark",required=false) String catalogRemark, @RequestParam(name="isAdd",required=false) boolean isAdd, @RequestParam(name="dicId",required=false) String dicId)
@RequestMapping(value="/deleteCatalog/{id}")
void deleteCatalog(@PathVariable(name="id")
String id)
id - @RequestMapping(value="/deleteCatalogByType/{type}")
void deleteCatalogByType(@PathVariable(name="type")
String type)
type - @RequestMapping(value="/deleteRef/{id}")
void deleteRef(@PathVariable(name="id")
String id)
id - @GetMapping(value="/findAllRootCatalog/{parentId}")
List<Catalog> findAllRootCatalog(@PathVariable(name="parentId")
String parentId)
@GetMapping(value="/findCatRefList/{id}")
List<String> findCatRefList(@PathVariable(name="id")
String id)
@RequestMapping(value="/associate/catalogAndResource") Catalog associateCatalogAndResources(@RequestParam(name="catalogId") String catalogId, @RequestParam(name="resources[]") String[] resourceIds, @RequestParam(name="replaceAll",required=false) boolean replace)
@RequestMapping(value="/updateCatalog") Catalog updateCatalog(@RequestParam(name="nodeArr[]") String[] nodeArr, @RequestParam(name="type") String type)
@RequestMapping(value="/remove/resource/ref") Catalog removeCatalogAndResources(@RequestParam(name="catalogId") String catalogId, @RequestParam(name="resources[]") String[] resourceIds)
@GetMapping(value="/sourcesCount") Map<String,Integer> getSourcesCountByType()
@GetMapping(value="/findCatalogIdsByIds/{catalogIds}")
List<Catalog> findCatalogIdsByIds(@PathVariable(name="catalogIds")
String catalogIds)
Copyright © 2019 GTMAP. All rights reserved.