refactor: 优化api包名接口,减少接口文件

This commit is contained in:
2026-04-29 16:48:25 +08:00
parent 1aa6016f1e
commit f42d63e93c
78 changed files with 1227 additions and 1634 deletions

View File

@@ -616,7 +616,7 @@ public class PushManager {
Map<String, String> params = new HashMap<>();
params.put("sn", Utils.getSerial(mContext));
params.put("createtime", String.valueOf(createTime));
Call<BaseResponse> call = NetInterfaceManager.getInstance().getScreenshotCall().sendScreenshot(params, body);
Call<BaseResponse> call = NetInterfaceManager.getInstance().getUploadInfoApi().sendScreenshot(params, body);
call.enqueue(new RetryCallback<BaseResponse>(call, 10, 30 * 1000) {
@Override
public void onRequestResponse(Call call, Response response) {
@@ -1066,7 +1066,7 @@ public class PushManager {
Map<String, String> params = new HashMap<>();
params.put("sn", Utils.getSerial(mContext));
params.put("createtime", String.valueOf(time));
Call<BaseResponse> call = NetInterfaceManager.getInstance().getScreenshotCall().sendScreenshot(params, body);
Call<BaseResponse> call = NetInterfaceManager.getInstance().getUploadInfoApi().sendScreenshot(params, body);
call.enqueue(new RetryCallback<BaseResponse>(call, 10, 30 * 1000) {
@Override
public void onRequestResponse(Call call, Response response) {
@@ -1504,7 +1504,7 @@ public class PushManager {
private void bind(final String id, int type) {
NetInterfaceManager.getInstance()
.getSnConfirmBindApi()
.getDevicesStatusApi()
.snConfirmBind(Utils.getSerial(mContext), id, type)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())