@FeignClient(name="${app.services.resource-core: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)
@PostMapping(value="/saveCatalog") Catalog saveCatalog(@RequestBody Catalog catalog)
@PostMapping(value="/saveCatalogParams") Catalog saveCatalogParams(@RequestBody Map params)
@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)
@RequestMapping(value="/saveCatalogAndTplRef") Object saveCatTplRef(@RequestParam(name="catalogId",required=false) String catalogId, @RequestParam(name="tplIds",required=false) String tplIds, @RequestParam(name="replace",required=false) boolean replace)
@RequestMapping(value="/findTplsByCatalogId") List<Tpl> findTplsByCatalogId(@RequestParam(name="catalogId",required=false) String catalogId)
@RequestMapping(value="/findCatalogsByTplId") List<Catalog> findCatalogsByTplId(@RequestParam(name="tplId",required=false) String tplId)
@RequestMapping(value="/queryCatalogs") List<Catalog> queryCatalogs(@RequestParam(name="catTypes",required=false) String catTypes)
@RequestMapping(value="/handleCatResData") boolean handleCatResData()
@RequestMapping(value="/buildJSONTree") String buildJSONTree(@RequestParam(name="type",required=false) String type)
Copyright © 2020 GTMAP. All rights reserved.