1.app远程接口添加

This commit is contained in:
wr
2023-11-17 16:09:43 +08:00
parent bf6aec0f24
commit 56cb0bc38a
16 changed files with 161 additions and 17 deletions

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -25,4 +25,6 @@ public class OnlineRateParam {
@ApiModelProperty(name = "endTime", value = "结束时间")
private String endTime;
@ApiModelProperty(name = "type", value = "区分类型0topid搜索 1devid搜索")
private Integer type;
}