feat: update cdr info
This commit is contained in:
@@ -14,6 +14,7 @@ import org.wfc.common.core.domain.LoginUser;
|
||||
import org.wfc.common.core.domain.R;
|
||||
import org.wfc.common.core.web.page.TableDataInfo;
|
||||
import org.wfc.user.api.domain.UUser;
|
||||
import org.wfc.user.api.domain.bo.UClientBo;
|
||||
import org.wfc.user.api.factory.RemoteUUserFallbackFactory;
|
||||
|
||||
/**
|
||||
@@ -75,6 +76,12 @@ public interface RemoteUUserService
|
||||
/**
|
||||
* 添加话单信息通过OmadaApi
|
||||
*/
|
||||
@GetMapping("/user/uCdr/addCdrInfo")
|
||||
@GetMapping("/cdr/addCdrInfo")
|
||||
public R<Boolean> addCdrInfoByOmadaApi();
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@GetMapping("/user/uClient/recordClientUser")
|
||||
public R<Boolean> recordClientUser(@RequestBody UClientBo clientBo);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
package org.wfc.user.api.domain.bo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 用户平台_用户设备bo
|
||||
* </p>
|
||||
*
|
||||
* @author cyc
|
||||
* @since 2024-12-09
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class UClientBo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Long userId;
|
||||
|
||||
private String clientName;
|
||||
|
||||
private String clientDeviceType;
|
||||
|
||||
private String clientMac;
|
||||
}
|
||||
@@ -10,6 +10,7 @@ import org.wfc.common.core.domain.R;
|
||||
import org.wfc.common.core.web.page.TableDataInfo;
|
||||
import org.wfc.user.api.RemoteUUserService;
|
||||
import org.wfc.user.api.domain.UUser;
|
||||
import org.wfc.user.api.domain.bo.UClientBo;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
@@ -65,6 +66,11 @@ public class RemoteUUserFallbackFactory implements FallbackFactory<RemoteUUserSe
|
||||
public R<Boolean> addCdrInfoByOmadaApi() {
|
||||
return R.fail("添加话单信息失败:" + throwable.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<Boolean> recordClientUser(UClientBo clientBo) {
|
||||
return R.fail("根据设备mac保存或更新设备信息失败:" + throwable.getMessage());
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user