mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
chore(v0.11): 全路径纳入版本库与走查整改
- .gitignore:显式放行全部 maven-*、scripts、dev-support、frontend、反1、artifacts、历史导出目录
- 新增跟踪:device-manager/device-sdk/legacy-public、davinci-manager、cwos-*、cwos-resource 等源码与附属资源
- davinci FileStorageManagerImpl:Feign Response 关闭、绝对 URL 拉流 SSRF 校验(协议/主机/解析地址)
- davinci OuterCallFeignClient:补充契约说明
- cwos-common-aks AksConstant:final 类 + 私有构造防误实例化
- device-manager DeviceConstant:沿用 DEFAULT_APPLICATIONID 拼写修正
Made-with: Cursor
Former-commit-id: 0a34c76a82
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cwos-device-authentication</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>cwos-device-authentication-interface</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>cwos-device-authentication-interface</name>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-common-result</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-common-service</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate.validator</groupId>
|
||||
<artifactId>hibernate-validator</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-annotations</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-device-manager-interface</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cwos-common-aks-interface</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk</groupId>
|
||||
<artifactId>cloudwalk-device-sdk-protocol-entity</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
+78
@@ -0,0 +1,78 @@
|
||||
package cn.cloudwalk.client.device.auth.authetication.param;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceAuthFormParam
|
||||
{
|
||||
@NotNull(message = "10000101")
|
||||
private Long timestamp;
|
||||
@NotBlank(message = "10000102")
|
||||
private String nonce;
|
||||
@NotBlank(message = "10000105")
|
||||
@JsonProperty("access_token")
|
||||
private String accessToken;
|
||||
@JsonProperty("gateway_uri")
|
||||
private String gatewayUri;
|
||||
|
||||
public Long getTimestamp() {
|
||||
return this.timestamp;
|
||||
}
|
||||
|
||||
public void setTimestamp(Long timestamp) {
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
public String getNonce() {
|
||||
return this.nonce;
|
||||
}
|
||||
|
||||
public void setNonce(String nonce) {
|
||||
this.nonce = nonce;
|
||||
}
|
||||
|
||||
public String getAccessToken() {
|
||||
return this.accessToken;
|
||||
}
|
||||
|
||||
public void setAccessToken(String accessToken) {
|
||||
this.accessToken = accessToken;
|
||||
}
|
||||
|
||||
public String getGatewayUri() {
|
||||
return this.gatewayUri;
|
||||
}
|
||||
|
||||
public void setGatewayUri(String gatewayUri) {
|
||||
this.gatewayUri = gatewayUri;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
package cn.cloudwalk.client.device.auth.authetication.param;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceAuthParam
|
||||
{
|
||||
@NotNull(message = "10000103")
|
||||
@JsonProperty("sign_type")
|
||||
private Integer signType;
|
||||
private String sign;
|
||||
@NotNull(message = "10000104")
|
||||
@JsonProperty("json_content")
|
||||
private String jsonContent;
|
||||
|
||||
public Integer getSignType() {
|
||||
return this.signType;
|
||||
}
|
||||
|
||||
public void setSignType(Integer signType) {
|
||||
this.signType = signType;
|
||||
}
|
||||
|
||||
public String getSign() {
|
||||
return this.sign;
|
||||
}
|
||||
|
||||
public void setSign(String sign) {
|
||||
this.sign = sign;
|
||||
}
|
||||
|
||||
public String getJsonContent() {
|
||||
return this.jsonContent;
|
||||
}
|
||||
|
||||
public void setJsonContent(String jsonContent) {
|
||||
this.jsonContent = jsonContent;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
package cn.cloudwalk.client.device.auth.authetication.param;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceJsonContentParam
|
||||
{
|
||||
@JsonProperty("device_id")
|
||||
@JSONField(name = "device_id")
|
||||
private String deviceId;
|
||||
@JsonProperty("api_key")
|
||||
@JSONField(name = "api_key")
|
||||
private String apiKey;
|
||||
@JsonProperty("secret_key")
|
||||
@JSONField(name = "secret_key")
|
||||
private String secretKey;
|
||||
@JSONField(name = "refresh_token")
|
||||
@JsonProperty("refresh_token")
|
||||
private String refreshToken;
|
||||
@JSONField(name = "log_id")
|
||||
@JsonProperty("log_id")
|
||||
private String logId;
|
||||
@JSONField(name = "reserve_info")
|
||||
@JsonProperty("reserve_info")
|
||||
private String reserveInfo;
|
||||
|
||||
public String getDeviceId() {
|
||||
/* 59 */ return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
/* 63 */ this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getApiKey() {
|
||||
/* 67 */ return this.apiKey;
|
||||
}
|
||||
|
||||
public void setApiKey(String apiKey) {
|
||||
/* 71 */ this.apiKey = apiKey;
|
||||
}
|
||||
|
||||
public String getSecretKey() {
|
||||
/* 75 */ return this.secretKey;
|
||||
}
|
||||
|
||||
public void setSecretKey(String secretKey) {
|
||||
/* 79 */ this.secretKey = secretKey;
|
||||
}
|
||||
|
||||
public String getRefreshToken() {
|
||||
/* 83 */ return this.refreshToken;
|
||||
}
|
||||
|
||||
public void setRefreshToken(String refreshToken) {
|
||||
/* 87 */ this.refreshToken = refreshToken;
|
||||
}
|
||||
|
||||
public String getLogId() {
|
||||
/* 91 */ return this.logId;
|
||||
}
|
||||
|
||||
public void setLogId(String logId) {
|
||||
/* 95 */ this.logId = logId;
|
||||
}
|
||||
|
||||
public String getReserveInfo() {
|
||||
/* 99 */ return this.reserveInfo;
|
||||
}
|
||||
|
||||
public void setReserveInfo(String reserveInfo) {
|
||||
this.reserveInfo = reserveInfo;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
package cn.cloudwalk.client.device.auth.authetication.result;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceAuthResult
|
||||
implements Serializable
|
||||
{
|
||||
@JSONField(name = "access_token")
|
||||
@JsonProperty("access_token")
|
||||
private String accessToken;
|
||||
@JSONField(name = "expires_in")
|
||||
@JsonProperty("expires_in")
|
||||
private Long expiresIn;
|
||||
@JSONField(name = "encryption_type")
|
||||
@JsonProperty("encryption_type")
|
||||
private Integer encryptionType;
|
||||
@JSONField(name = "secret_key")
|
||||
@JsonProperty("secret_key")
|
||||
private String secretKey;
|
||||
@JSONField(name = "refresh_token")
|
||||
@JsonProperty("refresh_token")
|
||||
private String refreshToken;
|
||||
|
||||
public String getAccessToken() {
|
||||
return this.accessToken;
|
||||
}
|
||||
|
||||
public void setAccessToken(String accessToken) {
|
||||
this.accessToken = accessToken;
|
||||
}
|
||||
|
||||
public Long getExpiresIn() {
|
||||
return this.expiresIn;
|
||||
}
|
||||
|
||||
public void setExpiresIn(Long expiresIn) {
|
||||
this.expiresIn = expiresIn;
|
||||
}
|
||||
|
||||
public Integer getEncryptionType() {
|
||||
return this.encryptionType;
|
||||
}
|
||||
|
||||
public void setEncryptionType(Integer encryptionType) {
|
||||
this.encryptionType = encryptionType;
|
||||
}
|
||||
|
||||
public String getSecretKey() {
|
||||
return this.secretKey;
|
||||
}
|
||||
|
||||
public void setSecretKey(String secretKey) {
|
||||
this.secretKey = secretKey;
|
||||
}
|
||||
|
||||
public String getRefreshToken() {
|
||||
return this.refreshToken;
|
||||
}
|
||||
|
||||
public void setRefreshToken(String refreshToken) {
|
||||
this.refreshToken = refreshToken;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+105
@@ -0,0 +1,105 @@
|
||||
package cn.cloudwalk.client.device.auth.authetication.result;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class TokenInfoResult
|
||||
{
|
||||
private String deviceId;
|
||||
private String apiKey;
|
||||
private String businessId;
|
||||
private String applicationId;
|
||||
private String salt;
|
||||
private String serviceCode;
|
||||
private String custId;
|
||||
|
||||
public String getDeviceId() {
|
||||
/* 49 */ return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
/* 53 */ this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getApiKey() {
|
||||
/* 57 */ return this.apiKey;
|
||||
}
|
||||
|
||||
public void setApiKey(String apiKey) {
|
||||
/* 61 */ this.apiKey = apiKey;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
/* 65 */ return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
/* 69 */ this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getApplicationId() {
|
||||
/* 73 */ return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
/* 77 */ this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getSalt() {
|
||||
/* 81 */ return this.salt;
|
||||
}
|
||||
|
||||
public void setSalt(String salt) {
|
||||
/* 85 */ this.salt = salt;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
/* 89 */ return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
/* 93 */ this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public String getCustId() {
|
||||
/* 97 */ return this.custId;
|
||||
}
|
||||
|
||||
public void setCustId(String custId) {
|
||||
this.custId = custId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package cn.cloudwalk.client.device.auth.authetication.service;
|
||||
|
||||
import cn.cloudwalk.client.device.auth.authetication.param.DeviceAuthFormParam;
|
||||
import cn.cloudwalk.client.device.auth.authetication.param.DeviceAuthParam;
|
||||
import cn.cloudwalk.client.device.auth.authetication.param.DeviceJsonContentParam;
|
||||
import cn.cloudwalk.client.device.auth.authetication.result.DeviceAuthResult;
|
||||
import cn.cloudwalk.client.device.auth.authetication.result.TokenInfoResult;
|
||||
import cn.cloudwalk.client.device.auth.common.CloudwalkDeviceAuthResult;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.device.sdk.protocol.entity.v2proto.http.result.AuthenticationResult;
|
||||
import cn.cloudwalk.device.sdk.protocol.entity.v2proto.http.result.UpdateTokenResult;
|
||||
|
||||
public interface DeviceAuthHttpService {
|
||||
CloudwalkDeviceAuthResult<DeviceAuthResult> token(DeviceAuthFormParam paramDeviceAuthFormParam, DeviceAuthParam paramDeviceAuthParam);
|
||||
|
||||
CloudwalkDeviceAuthResult<TokenInfoResult> validateToken(DeviceAuthFormParam paramDeviceAuthFormParam, DeviceAuthParam paramDeviceAuthParam);
|
||||
|
||||
CloudwalkDeviceAuthResult<DeviceAuthResult> updateToken(DeviceAuthFormParam paramDeviceAuthFormParam, DeviceAuthParam paramDeviceAuthParam);
|
||||
|
||||
CloudwalkResult<AuthenticationResult> tokenV2(DeviceJsonContentParam paramDeviceJsonContentParam);
|
||||
|
||||
CloudwalkResult<TokenInfoResult> validateTokenV2(DeviceAuthFormParam paramDeviceAuthFormParam);
|
||||
|
||||
CloudwalkResult<UpdateTokenResult> updateTokenV2(DeviceJsonContentParam paramDeviceJsonContentParam);
|
||||
}
|
||||
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package cn.cloudwalk.client.device.auth.authetication.service;
|
||||
|
||||
import cn.cloudwalk.client.device.auth.authetication.param.DeviceAuthFormParam;
|
||||
import cn.cloudwalk.client.device.auth.authetication.param.DeviceJsonContentParam;
|
||||
import cn.cloudwalk.client.device.auth.authetication.result.DeviceAuthResult;
|
||||
import cn.cloudwalk.client.device.auth.authetication.result.TokenInfoResult;
|
||||
import cn.cloudwalk.client.device.auth.common.CloudwalkDeviceAuthResult;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.device.sdk.protocol.entity.v2proto.tcp.param.CheckTokenParam;
|
||||
import cn.cloudwalk.device.sdk.protocol.entity.v2proto.tcp.result.CheckTokenResult;
|
||||
|
||||
public interface DeviceAuthTcpService {
|
||||
CloudwalkDeviceAuthResult<DeviceAuthResult> token(DeviceJsonContentParam paramDeviceJsonContentParam);
|
||||
|
||||
CloudwalkDeviceAuthResult<TokenInfoResult> validateToken(DeviceAuthFormParam paramDeviceAuthFormParam);
|
||||
|
||||
CloudwalkDeviceAuthResult<DeviceAuthResult> updateToken(DeviceJsonContentParam paramDeviceJsonContentParam);
|
||||
|
||||
CloudwalkResult<CheckTokenResult> validateTokenV2(CheckTokenParam paramCheckTokenParam);
|
||||
}
|
||||
|
||||
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
package cn.cloudwalk.client.device.auth.common;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class CloudwalkDeviceAuthResult<T>
|
||||
{
|
||||
private String code;
|
||||
private String message;
|
||||
@JsonProperty("auth_data")
|
||||
@JSONField(name = "auth_data")
|
||||
private T authData;
|
||||
@JSONField(name = "salt")
|
||||
private String salt;
|
||||
@JSONField(name = "timestamp")
|
||||
private Long timestamp;
|
||||
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public T getAuthData() {
|
||||
return this.authData;
|
||||
}
|
||||
|
||||
public void setAuthData(T authData) {
|
||||
this.authData = authData;
|
||||
}
|
||||
|
||||
public String getSalt() {
|
||||
return this.salt;
|
||||
}
|
||||
|
||||
public void setSalt(String salt) {
|
||||
this.salt = salt;
|
||||
}
|
||||
|
||||
public Long getTimestamp() {
|
||||
return this.timestamp;
|
||||
}
|
||||
|
||||
public void setTimestamp(Long timestamp) {
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
package cn.cloudwalk.client.device.auth.common;
|
||||
|
||||
public class DeviceAuthRespCode {
|
||||
public static final String SUCCESS = "00000000";
|
||||
|
||||
public static final String UNKNOWN_ERROR = "00000001";
|
||||
|
||||
public static final String SERVICE_UNAVAILABLE = "00000002";
|
||||
|
||||
public static final String UNSUPPORTED_OPEN_API_METHOD = "00000003";
|
||||
|
||||
public static final String OPEN_API_REQUEST_LIMIT_REACHED = "00000004";
|
||||
|
||||
public static final String UNAUTHORIZED_CLIENT_IP_ADDRESS = "00000005";
|
||||
|
||||
public static final String NO_PERMISSION_TO_ACCESS_USER_DATA = "00000006";
|
||||
|
||||
public static final String NO_PERMISSION_TO_ACCESS_DATA_FOR_THIS_REFERER = "00000007";
|
||||
|
||||
public static final String REQUEST_TIMEOUT = "00000008";
|
||||
|
||||
public static final String SECONDARY_REQUEST = "00000009";
|
||||
|
||||
public static final String INVALID_PARAMETER = "00000100";
|
||||
|
||||
public static final String INVALID_API_KEY = "00000101";
|
||||
|
||||
public static final String INVALID_SECRET_KEY = "00000102";
|
||||
|
||||
public static final String INCORRECT_SIGNATURE = "00000104";
|
||||
|
||||
public static final String TOO_MANY_PARAMETERS = "00000105";
|
||||
|
||||
public static final String UNSUPPORTED_SIGNATURE_METHOD = "00000106";
|
||||
|
||||
public static final String INVALID_TIMESTAMP_PARAMETER = "00000107";
|
||||
|
||||
public static final String INVALID_USER_INFO_FIELD = "00000109";
|
||||
|
||||
public static final String ACCESS_TOKEN_INVALID = "00000110";
|
||||
|
||||
public static final String ACCESS_TOKEN_EXPIRED = "00000111";
|
||||
|
||||
public static final String REFRESH_TOKEN_INVALID = "00000113";
|
||||
|
||||
public static final String REFRESH_TOKEN_EXPIRED = "00000114";
|
||||
|
||||
public static final String INVALID_DEVICE_CODE_APPLICATION_MISMATCH = "00000112";
|
||||
|
||||
public static final String INVALID_DEVICE_CODE_TOKEN_MISMATCH = "00000115";
|
||||
|
||||
public static final String INVALID_DEVICE_CODE_REFRESH_TOKEN_MISMATCH = "00000116";
|
||||
|
||||
public static final String DEVICE_UNAVAILABLE = "00000117";
|
||||
|
||||
public static final String API_KEY_UNAVAILABLE = "00000118";
|
||||
|
||||
public static final String USER_UNAVAILABLE = "00000210";
|
||||
|
||||
public static final String UNSUPPORTED_PERMISSION = "00000211";
|
||||
|
||||
public static final String UNKNOWN_DATA_STORE_API_ERROR = "00000800";
|
||||
|
||||
public static final String NO_SUCH_APPLICATION_EXISTS = "00000900";
|
||||
|
||||
public static final String INVALID_REQUEST = "10000000";
|
||||
|
||||
public static final String INVALID_CLIENT = "10000001";
|
||||
|
||||
public static final String INVALID_GRANT = "10000002";
|
||||
|
||||
public static final String UNAUTHORIZED_CLIENT = "10000003";
|
||||
|
||||
public static final String UNSUPPORTED_GRANT_TYPE = "10000004";
|
||||
|
||||
public static final String INVALID_SCOPE = "10000005";
|
||||
|
||||
public static final String EXPIRED_TOKEN = "10000006";
|
||||
|
||||
public static final String REDIRECT_URI_MISMATCH = "10000007";
|
||||
|
||||
public static final String UNSUPPORTED_RESPONSE_TYPE = "10000008";
|
||||
|
||||
public static final String ACCESS_DENIED = "10000009";
|
||||
|
||||
public static final String TIMESTAMP_NOT_EMPTY = "10000101";
|
||||
|
||||
public static final String NONCE_NOT_EMPTY = "10000102";
|
||||
|
||||
public static final String SIGN_TYPE_NOT_EMPTY = "10000103";
|
||||
|
||||
public static final String JSON_CONTENT_NOT_EMPTY = "10000104";
|
||||
|
||||
public static final String TOKEN_NOT_EMPTY = "10000105";
|
||||
|
||||
public static final String GENERATE_TOKEN_ERROR = "10000106";
|
||||
|
||||
public static final String SERVICE_EXCEPTION = "99999999";
|
||||
|
||||
public static final String DEVICE_TYPE_ID_EMPTY = "10000107";
|
||||
|
||||
public static final String SERVICE_CODE_EMPTY = "10000108";
|
||||
|
||||
public static final String UPGRADE_STATUS_EMPTY = "10000109";
|
||||
}
|
||||
|
||||
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package cn.cloudwalk.client.device.auth.device.info.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceAuthInfoParam
|
||||
implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = -5546153067410825011L;
|
||||
private String deviceCode;
|
||||
private String applicationId;
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package cn.cloudwalk.client.device.auth.device.info.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.hibernate.validator.constraints.NotEmpty;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceExtendGetsParam
|
||||
implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = -5546153067410825011L;
|
||||
@NotEmpty(message = "51000031")
|
||||
@Size(max = 999, message = "51000032")
|
||||
private List<String> ids;
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
package cn.cloudwalk.client.device.auth.device.info.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceSettingQueryParam
|
||||
implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1801515556301267387L;
|
||||
private String deviceTypeId;
|
||||
private String accessKeyId;
|
||||
private String businessId;
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public String getAccessKeyId() {
|
||||
return this.accessKeyId;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public void setAccessKeyId(String accessKeyId) {
|
||||
this.accessKeyId = accessKeyId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package cn.cloudwalk.client.device.auth.device.info.param;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceUpdateStatusItemParam
|
||||
{
|
||||
private String id;
|
||||
private Short status;
|
||||
private Long lastUpdateTime;
|
||||
private String lastUpdateUserId;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Short getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Short status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Long getLastUpdateTime() {
|
||||
return this.lastUpdateTime;
|
||||
}
|
||||
|
||||
public void setLastUpdateTime(Long lastUpdateTime) {
|
||||
this.lastUpdateTime = lastUpdateTime;
|
||||
}
|
||||
|
||||
public String getLastUpdateUserId() {
|
||||
return this.lastUpdateUserId;
|
||||
}
|
||||
|
||||
public void setLastUpdateUserId(String lastUpdateUserId) {
|
||||
this.lastUpdateUserId = lastUpdateUserId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package cn.cloudwalk.client.device.auth.device.info.param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceUpdateStatusParam
|
||||
{
|
||||
private List<DeviceUpdateStatusItemParam> items;
|
||||
|
||||
public List<DeviceUpdateStatusItemParam> getItems() {
|
||||
return this.items;
|
||||
}
|
||||
|
||||
public void setItems(List<DeviceUpdateStatusItemParam> items) {
|
||||
this.items = items;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
package cn.cloudwalk.client.device.auth.device.info.result;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceAuthInfoResult
|
||||
{
|
||||
private String deviceCode;
|
||||
private String deviceTypeId;
|
||||
private String deviceGroupId;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private String businessId;
|
||||
private Integer status;
|
||||
private Long lastHeartbeatTime;
|
||||
|
||||
public String getDeviceCode() {
|
||||
/* 55 */ return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
/* 59 */ this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
/* 63 */ return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
/* 67 */ this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getDeviceGroupId() {
|
||||
/* 71 */ return this.deviceGroupId;
|
||||
}
|
||||
|
||||
public void setDeviceGroupId(String deviceGroupId) {
|
||||
/* 75 */ this.deviceGroupId = deviceGroupId;
|
||||
}
|
||||
|
||||
public String getApplicationId() {
|
||||
/* 79 */ return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
/* 83 */ this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
/* 87 */ return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
/* 91 */ this.businessId = businessId;
|
||||
}
|
||||
|
||||
public Long getLastHeartbeatTime() {
|
||||
/* 95 */ return this.lastHeartbeatTime;
|
||||
}
|
||||
|
||||
public void setLastHeartbeatTime(Long lastHeartbeatTime) {
|
||||
/* 99 */ this.lastHeartbeatTime = lastHeartbeatTime;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+124
@@ -0,0 +1,124 @@
|
||||
package cn.cloudwalk.client.device.auth.device.info.result;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceSettingResult
|
||||
extends CloudwalkBaseTimes
|
||||
{
|
||||
private static final long serialVersionUID = -5491608482855593983L;
|
||||
private String deviceTypeId;
|
||||
private String accessKeyId;
|
||||
private String accessKeySecret;
|
||||
private String aesSalt;
|
||||
private Long newTokenTime;
|
||||
private String encryptionSecret;
|
||||
private Integer encryptionType;
|
||||
private String businessId;
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
/* 60 */ return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
/* 64 */ this.deviceTypeId = (deviceTypeId == null) ? null : deviceTypeId.trim();
|
||||
}
|
||||
|
||||
public String getAccessKeyId() {
|
||||
/* 68 */ return this.accessKeyId;
|
||||
}
|
||||
|
||||
public void setAccessKeyId(String accessKeyId) {
|
||||
/* 72 */ this.accessKeyId = (accessKeyId == null) ? null : accessKeyId.trim();
|
||||
}
|
||||
|
||||
public String getAccessKeySecret() {
|
||||
/* 76 */ return this.accessKeySecret;
|
||||
}
|
||||
|
||||
public void setAccessKeySecret(String accessKeySecret) {
|
||||
/* 80 */ this.accessKeySecret = (accessKeySecret == null) ? null : accessKeySecret.trim();
|
||||
}
|
||||
|
||||
public String getAesSalt() {
|
||||
/* 84 */ return this.aesSalt;
|
||||
}
|
||||
|
||||
public void setAesSalt(String aesSalt) {
|
||||
/* 88 */ this.aesSalt = (aesSalt == null) ? null : aesSalt.trim();
|
||||
}
|
||||
|
||||
public Long getNewTokenTime() {
|
||||
/* 92 */ return this.newTokenTime;
|
||||
}
|
||||
|
||||
public void setNewTokenTime(Long newTokenTime) {
|
||||
/* 96 */ this.newTokenTime = newTokenTime;
|
||||
}
|
||||
|
||||
public String getEncryptionSecret() {
|
||||
return this.encryptionSecret;
|
||||
}
|
||||
|
||||
public void setEncryptionSecret(String encryptionSecret) {
|
||||
this.encryptionSecret = (encryptionSecret == null) ? null : encryptionSecret.trim();
|
||||
}
|
||||
|
||||
public Integer getEncryptionType() {
|
||||
return this.encryptionType;
|
||||
}
|
||||
|
||||
public void setEncryptionType(Integer encryptionType) {
|
||||
this.encryptionType = encryptionType;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package cn.cloudwalk.client.device.auth.device.info.service;
|
||||
|
||||
import cn.cloudwalk.client.device.auth.device.info.param.DeviceAuthInfoParam;
|
||||
import cn.cloudwalk.client.device.auth.device.info.result.DeviceAuthInfoResult;
|
||||
|
||||
public interface DeviceAuthInfoService {
|
||||
DeviceAuthInfoResult get(DeviceAuthInfoParam paramDeviceAuthInfoParam);
|
||||
}
|
||||
|
||||
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package cn.cloudwalk.client.device.auth.device.info.service;
|
||||
|
||||
import cn.cloudwalk.client.device.auth.device.info.param.DeviceExtendGetsParam;
|
||||
import cn.cloudwalk.client.device.auth.device.info.param.DeviceUpdateStatusParam;
|
||||
import cn.cloudwalk.client.device.auth.pkg.param.DeviceExtendQueryParam;
|
||||
import cn.cloudwalk.client.device.device.param.DeviceEditParam;
|
||||
import cn.cloudwalk.client.device.device.result.DeviceResult;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import java.util.List;
|
||||
|
||||
public interface DeviceExtendService {
|
||||
CloudwalkResult<List<DeviceResult>> gets(DeviceExtendGetsParam paramDeviceExtendGetsParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<List<DeviceResult>> query(DeviceExtendQueryParam paramDeviceExtendQueryParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<CloudwalkPageAble<DeviceResult>> page(DeviceExtendQueryParam paramDeviceExtendQueryParam, CloudwalkPageInfo paramCloudwalkPageInfo, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<Integer> updateDeviceStatus(DeviceUpdateStatusParam paramDeviceUpdateStatusParam);
|
||||
|
||||
CloudwalkResult<Integer> edit(DeviceEditParam paramDeviceEditParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package cn.cloudwalk.client.device.auth.device.info.service;
|
||||
|
||||
import cn.cloudwalk.client.device.auth.device.info.param.DeviceSettingQueryParam;
|
||||
import cn.cloudwalk.client.device.auth.device.info.result.DeviceSettingResult;
|
||||
import java.util.List;
|
||||
|
||||
public interface DeviceSettingService {
|
||||
List<DeviceSettingResult> query(DeviceSettingQueryParam paramDeviceSettingQueryParam);
|
||||
}
|
||||
|
||||
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package cn.cloudwalk.client.device.auth.device.validator.result;
|
||||
|
||||
import cn.cloudwalk.client.aks.secret.result.SecretInfoResult;
|
||||
import cn.cloudwalk.client.device.auth.device.info.result.DeviceAuthInfoResult;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceAuthCheckResult
|
||||
{
|
||||
private SecretInfoResult secretInfoResult;
|
||||
private DeviceAuthInfoResult deviceAuthInfoResult;
|
||||
|
||||
public SecretInfoResult getSecretInfoResult() {
|
||||
return this.secretInfoResult;
|
||||
}
|
||||
|
||||
public void setSecretInfoResult(SecretInfoResult secretInfoResult) {
|
||||
this.secretInfoResult = secretInfoResult;
|
||||
}
|
||||
|
||||
public DeviceAuthInfoResult getDeviceAuthInfoResult() {
|
||||
return this.deviceAuthInfoResult;
|
||||
}
|
||||
|
||||
public void setDeviceAuthInfoResult(DeviceAuthInfoResult deviceAuthInfoResult) {
|
||||
this.deviceAuthInfoResult = deviceAuthInfoResult;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package cn.cloudwalk.client.device.auth.device.validator.service;
|
||||
|
||||
import cn.cloudwalk.client.device.auth.authetication.param.DeviceJsonContentParam;
|
||||
import cn.cloudwalk.client.device.auth.authetication.result.TokenInfoResult;
|
||||
import cn.cloudwalk.client.device.auth.device.validator.result.DeviceAuthCheckResult;
|
||||
|
||||
public interface DeviceAuthCheckService {
|
||||
DeviceAuthCheckResult check4Acquire(DeviceJsonContentParam paramDeviceJsonContentParam);
|
||||
|
||||
DeviceAuthCheckResult check4Update(DeviceJsonContentParam paramDeviceJsonContentParam);
|
||||
|
||||
DeviceAuthCheckResult check4Validate(TokenInfoResult paramTokenInfoResult);
|
||||
}
|
||||
|
||||
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package cn.cloudwalk.client.device.auth.pkg.param;
|
||||
|
||||
import cn.cloudwalk.client.device.device.param.DeviceQueryParam;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceExtendQueryParam
|
||||
extends DeviceQueryParam
|
||||
{
|
||||
private static final long serialVersionUID = -7400306798138693157L;
|
||||
private List<String> deviceIds;
|
||||
private String protocol;
|
||||
|
||||
public List<String> getDeviceIds() {
|
||||
return this.deviceIds;
|
||||
}
|
||||
|
||||
public void setDeviceIds(List<String> deviceIds) {
|
||||
this.deviceIds = deviceIds;
|
||||
}
|
||||
|
||||
public String getProtocol() {
|
||||
return this.protocol;
|
||||
}
|
||||
|
||||
public void setProtocol(String protocol) {
|
||||
this.protocol = protocol;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
package cn.cloudwalk.client.device.auth.pkg.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
import org.hibernate.validator.constraints.Range;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceUpgradeConfEditParam
|
||||
implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 2919413833099606618L;
|
||||
@NotBlank(message = "52000163")
|
||||
@Size(max = 32, message = "52000164")
|
||||
private String id;
|
||||
@Size(max = 32, message = "51000008")
|
||||
private String deviceTypeId;
|
||||
@Size(max = 16, message = "52000161")
|
||||
private String timeLimit;
|
||||
private Integer netLimit;
|
||||
@Size(max = 200, message = "52000162")
|
||||
private String remark;
|
||||
@Size(max = 64, message = "52000244")
|
||||
private String name;
|
||||
private Long endTime;
|
||||
@Size(min = 32, max = 32, message = "52000246")
|
||||
private String upgradeId;
|
||||
@Range(min = 1L, max = 7L, message = "52000172")
|
||||
private Integer status;
|
||||
|
||||
public String getId() {
|
||||
/* 79 */ return this.id;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
/* 83 */ return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public String getTimeLimit() {
|
||||
/* 87 */ return this.timeLimit;
|
||||
}
|
||||
|
||||
public Integer getNetLimit() {
|
||||
/* 91 */ return this.netLimit;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
/* 95 */ return this.remark;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
/* 99 */ return this.name;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public String getUpgradeId() {
|
||||
return this.upgradeId;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public void setTimeLimit(String timeLimit) {
|
||||
this.timeLimit = timeLimit;
|
||||
}
|
||||
|
||||
public void setNetLimit(Integer netLimit) {
|
||||
this.netLimit = netLimit;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public void setUpgradeId(String upgradeId) {
|
||||
this.upgradeId = upgradeId;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package cn.cloudwalk.client.device.auth.pkg.param;
|
||||
|
||||
import cn.cloudwalk.client.device.pkg.param.DeviceUpgradeConfQueryParam;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceUpgradeConfExtendQueryParam
|
||||
extends DeviceUpgradeConfQueryParam
|
||||
{
|
||||
private static final long serialVersionUID = -4548860584011459581L;
|
||||
private List<String> upgradeIds;
|
||||
private List<Integer> statusList;
|
||||
|
||||
public List<String> getUpgradeIds() {
|
||||
return this.upgradeIds;
|
||||
}
|
||||
|
||||
public void setUpgradeIds(List<String> upgradeIds) {
|
||||
this.upgradeIds = upgradeIds;
|
||||
}
|
||||
|
||||
public List<Integer> getStatusList() {
|
||||
return this.statusList;
|
||||
}
|
||||
|
||||
public void setStatusList(List<Integer> statusList) {
|
||||
this.statusList = statusList;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package cn.cloudwalk.client.device.auth.pkg.param;
|
||||
|
||||
import cn.cloudwalk.client.device.pkg.param.DeviceUpgradeQueryParam;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceUpgradeExtendQueryParam
|
||||
extends DeviceUpgradeQueryParam
|
||||
{
|
||||
private static final long serialVersionUID = 464739582258612873L;
|
||||
private List<String> upgradeIds;
|
||||
|
||||
public List<String> getUpgradeIds() {
|
||||
return this.upgradeIds;
|
||||
}
|
||||
|
||||
public void setUpgradeIds(List<String> upgradeIds) {
|
||||
this.upgradeIds = upgradeIds;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
package cn.cloudwalk.client.device.auth.pkg.param;
|
||||
|
||||
import cn.cloudwalk.client.device.pkg.param.DeviceUpgradeRevertQueryParam;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DeviceUpgradeRevertExtendQueryParam
|
||||
extends DeviceUpgradeRevertQueryParam
|
||||
{
|
||||
private static final long serialVersionUID = -6771152722272226960L;
|
||||
private List<String> deviceIds;
|
||||
private List<String> deviceCodeList;
|
||||
private List<Integer> statusList;
|
||||
|
||||
public List<String> getDeviceIds() {
|
||||
return this.deviceIds;
|
||||
}
|
||||
|
||||
public List<String> getDeviceCodeList() {
|
||||
return this.deviceCodeList;
|
||||
}
|
||||
|
||||
public List<Integer> getStatusList() {
|
||||
return this.statusList;
|
||||
}
|
||||
|
||||
public void setDeviceIds(List<String> deviceIds) {
|
||||
this.deviceIds = deviceIds;
|
||||
}
|
||||
|
||||
public void setDeviceCodeList(List<String> deviceCodeList) {
|
||||
this.deviceCodeList = deviceCodeList;
|
||||
}
|
||||
|
||||
public void setStatusList(List<Integer> statusList) {
|
||||
this.statusList = statusList;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package cn.cloudwalk.client.device.auth.pkg.service;
|
||||
|
||||
import cn.cloudwalk.client.device.auth.pkg.param.DeviceUpgradeConfEditParam;
|
||||
import cn.cloudwalk.client.device.auth.pkg.param.DeviceUpgradeConfExtendQueryParam;
|
||||
import cn.cloudwalk.client.device.pkg.result.DeviceUpgradeConfResult;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
|
||||
public interface DeviceUpgradeConfExtendService {
|
||||
CloudwalkResult<Integer> edit(DeviceUpgradeConfEditParam paramDeviceUpgradeConfEditParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<CloudwalkPageAble<DeviceUpgradeConfResult>> page(DeviceUpgradeConfExtendQueryParam paramDeviceUpgradeConfExtendQueryParam, CloudwalkPageInfo paramCloudwalkPageInfo, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package cn.cloudwalk.client.device.auth.pkg.service;
|
||||
|
||||
import cn.cloudwalk.client.device.auth.pkg.param.DeviceUpgradeExtendQueryParam;
|
||||
import cn.cloudwalk.client.device.pkg.param.DeviceUpgradeEditParam;
|
||||
import cn.cloudwalk.client.device.pkg.result.DeviceUpgradeResult;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
|
||||
public interface DeviceUpgradeExtendService {
|
||||
CloudwalkResult<CloudwalkPageAble<DeviceUpgradeResult>> page(DeviceUpgradeExtendQueryParam paramDeviceUpgradeExtendQueryParam, CloudwalkPageInfo paramCloudwalkPageInfo, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<DeviceUpgradeResult> add(DeviceUpgradeEditParam paramDeviceUpgradeEditParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package cn.cloudwalk.client.device.auth.pkg.service;
|
||||
|
||||
import cn.cloudwalk.client.device.auth.pkg.param.DeviceUpgradeRevertExtendQueryParam;
|
||||
import cn.cloudwalk.client.device.pkg.result.DeviceUpgradeRevertResult;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import java.util.List;
|
||||
|
||||
public interface DeviceUpgradeRevertExtendService {
|
||||
CloudwalkResult<List<DeviceUpgradeRevertResult>> query(DeviceUpgradeRevertExtendQueryParam paramDeviceUpgradeRevertExtendQueryParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user