@FeignClient(name="account")
@RequestMapping(value="/account/rest/v1/collections")
public interface CollectionManagerClient
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
deleteCollection(String code) |
boolean |
deleteRelation(String username,
String code) |
boolean |
deleteRelationByType(String username,
String code,
String type) |
List<UserCollectionDto> |
listUserCollectionByType(String username,
String type) |
UserCollectionDto |
saveCollection(UserCollectionDto userCollectionDto) |
UserCollectionDto |
saveUserCollection(String username,
UserCollectionDto userCollectionDto) |
@PostMapping(value="/user/relation") UserCollectionDto saveUserCollection(@RequestParam(name="username") String username, @RequestBody UserCollectionDto userCollectionDto)
@DeleteMapping(value="/user/relation")
boolean deleteRelation(@RequestParam(name="username")
String username,
@RequestParam(name="code")
String code)
username: - 用户名code: - 收藏编码@DeleteMapping
boolean deleteCollection(@RequestParam(name="code")
String code)
code:收藏编码 - @DeleteMapping(value="/user/relationByType")
boolean deleteRelationByType(@RequestParam(name="username")
String username,
@RequestParam(name="code")
String code,
@RequestParam(name="type")
String type)
username: - 用户名code: - 收藏编码type: - 收藏类型@PostMapping UserCollectionDto saveCollection(@RequestBody UserCollectionDto userCollectionDto)
@GetMapping List<UserCollectionDto> listUserCollectionByType(@RequestParam(name="username") String username, @RequestParam(name="type") String type)
username - 用户名type - 收藏类型Copyright © 2019 GTMAP. All rights reserved.