1.app远程接口添加
This commit is contained in:
@@ -147,10 +147,10 @@ public interface GeneralDeviceInfoClient {
|
||||
HttpResult<List<DevDetail>> getDevInfoByIds(@RequestBody List<String> devIds);
|
||||
|
||||
/**
|
||||
* @Description: 根据topIds集合获取终端信息
|
||||
* @Description: 根据id集合获取终端消息信息
|
||||
* @Author: wr
|
||||
* @Date: 2023/11/9 13:55
|
||||
*/
|
||||
@PostMapping("/getTopMsgInfoByIds")
|
||||
HttpResult<List<TopMsgPO>> getTopMsgInfoByIds(@RequestBody List<String> topIds);
|
||||
HttpResult<List<TopMsgPO>> getTopMsgInfoByIds(@RequestBody OnlineRateParam param);
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ public class GeneralDeviceInfoClientFallbackFactory implements FallbackFactory<G
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<TopMsgPO>> getTopMsgInfoByIds(List<String> topIds) {
|
||||
public HttpResult<List<TopMsgPO>> getTopMsgInfoByIds(OnlineRateParam param) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "根据topIds集合获取终端信息", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@@ -25,4 +25,6 @@ public class OnlineRateParam {
|
||||
@ApiModelProperty(name = "endTime", value = "结束时间")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(name = "type", value = "区分类型0:topid搜索 1:devid搜索")
|
||||
private Integer type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user