@Headers({"Content-Type: application/json"})
public interface ClientAppConnector {
/**
* POST请求方式
*
* @param rq
* @return
*/
@RequestLine("POST /v1/agg/aatch")
@Body("{rq}")
BaseResponse<AsyncAggRespVo> kdcVisitSearch(CrowdVisitPoiBatchAggReq rq);
/**
* GET 请求方式
* @param type
* @return
*/
@RequestLine("GET /v1/brand/categoryTag?type={type}")
BaseResponse<List<CategoryResultVo>> kdcGetIndustryCategories(@Param("type")String type);
}
更多参数设置说明参考:
https://cloud.tencent.com/developer/article/1588511
Get请求自动转为Post问题:
(默认POJO对象的参数会放在body当中发送。需要在参数千加上@QueryMap注解)
参考:https://blog.csdn.net/AWen_Jack/article/details/106475991?utm_medium=distribute.pc_relevant.none-task-blog-searchFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-searchFromBaidu-1.control