@FeignClient(name="${app.services.resource-tpl-app:resource-tpl-app}")
@RequestMapping(value="/rest/tpl")
public interface TplClient
| 限定符和类型 | 方法和说明 |
|---|---|
String |
associateTplAndRoles(String tplId,
String roles)
associate menuId and roles
|
boolean |
delete(String id)
delete by id
|
List<Tpl> |
fetchAll()
find all
|
List<Tpl> |
fetchAllExceptContent()
find all except content
|
Tpl |
getOne(String id)
find one by id
|
org.springframework.data.domain.Page<Tpl> |
getPage(org.springframework.data.domain.Pageable pageable)
分页获取 tpl
|
List<Tpl> |
queryTplbyId(String roleId,
String sr)
根据id 和sr 查询tpl
|
Tpl |
queryTplByIdExceptContent(String id)
查询tpl并过滤content
|
String |
queryTplbyRoleIdAndSr(String roleId,
String sr)
根据id 和sr 查询tpl
|
List<Tpl> |
queryTplListByRegionCode(String regionCode)
query by regionCode
|
List<String> |
queryTplRoleRefsByRoleId(String roleId)
query by roleId
|
List<String> |
queryTplRoleRefsByTplId(String tplId)
query by tplId
|
List<Tpl> |
queryTplsByIdExceptContent(List<String> ids)
查询tpl并过滤content
|
Tpl |
saveTplConfig(Tpl tpl)
保存模板配置
|
@GetMapping(value="/find/{id}")
Tpl getOne(@PathVariable(value="id")
String id)
id - @GetMapping(value="/queryTplByIdExceptContent") Tpl queryTplByIdExceptContent(@RequestParam(value="id") String id)
id - @PostMapping(value="/save") Tpl saveTplConfig(@RequestBody Tpl tpl)
tpl - @GetMapping(value="/allExceptContent") List<Tpl> fetchAllExceptContent()
@RequestMapping(value="/page") org.springframework.data.domain.Page<Tpl> getPage(org.springframework.data.domain.Pageable pageable)
pageable - @GetMapping(value="/delete/{id}")
boolean delete(@PathVariable(value="id")
String id)
id - @PostMapping(value="/queryTplListByRegionCode") List<Tpl> queryTplListByRegionCode(@RequestParam(name="regionCode",required=false) String regionCode)
regionCode - @PostMapping(value="/query/queryTplRoleRefsByTplId") List<String> queryTplRoleRefsByTplId(@RequestParam(name="tplId") String tplId)
tplId - @PostMapping(value="/query/queryTplRoleRefsByRoleId") List<String> queryTplRoleRefsByRoleId(@RequestParam(name="roleId") String roleId)
roleId - @PostMapping(value="/associate/associateTplAndRoles") String associateTplAndRoles(@RequestParam(name="tplId") String tplId, @RequestParam(name="roleIds",required=false) String roles)
tplId - roles - @PostMapping(value="/queryTplbyId/{roleId}/{sr}")
List<Tpl> queryTplbyId(@PathVariable(name="roleId")
String roleId,
@PathVariable(name="sr")
String sr)
roleId - 用户角色 idsr - 坐标系标识@PostMapping(value="/queryTplbyRoleIdAndSr") String queryTplbyRoleIdAndSr(@RequestParam(name="roleId") String roleId, @RequestParam(name="sr") String sr)
roleId - 用户角色 idsr - 坐标系标识Copyright © 2020 GTMAP. All rights reserved.