地址

DEV 环境 Pigeon服务治理
https://dev-boss.amh-group.com/pigeonAdmin/#/

在服务治理中找到所需要的Pigeon服务所在的IP地址信息

基于pigeon的http协议,提供了服务的测试工具,可以访问每一台机器的url,默认 http://ip:4080/services

入参

传递类型为基本数据类型

Long Integer String

直接写值

传递类型为自定义对象

自定义对象结构注入即可,前提是属性也是基本数据类型

{
    "id": 1243,
    "name": "fangshriui"
}

传递类型为Collection

服务方法参数类型是Collection泛型,需要在参数值指定@class属性。
Collection包括 List Set

参数为 List<TestDTO> testDTOList

 [
     {"@class":"com.pigeon.demo.api.dto.TestDTO","id":1,"name":"test1"},       
     {"@class":"com.pigeon.demo.api.dto.TestDTO","id":2,"name":"test2"}
 ]

参数为 List<Long>

[
    {"@class":"java.lang.Long","value":1236},
    {"@class":"java.lang.Long","value":1232132}
]

传递对象为Map

传递参数为: Map<String, String>,对于String类型可以直接写

{
    "key1":"value1",
    "key2":"value2"
}

传递参数为: Map<Integer,Integer>

{
  "{"@class": "java.lang.Integer","value": 1}": "{"@class": "java.lang.Integer","value": 1}", 
  "{"@class": "java.lang.Integer","value": 2}": "{"@class": "java.lang.Integer","value": 3}"
 }

参考地址

http://techface.amh-group.com/doc/426

最后修改:2021 年 11 月 16 日
如果觉得我的文章对你有用,请随意赞赏