软适配 WebService 功能开发
parent
a59f95080c
commit
e58aaf95b9
@ -1,26 +1,26 @@
|
||||
package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description : 数据模型转换对象
|
||||
* @Reference :
|
||||
* @Author : alwaysfrin
|
||||
* @CreateDate : 2019-04-29 11:11
|
||||
* @Modify:
|
||||
**/
|
||||
public class DataSwitchModel {
|
||||
|
||||
private String stringVal;
|
||||
|
||||
private Long longVal;
|
||||
|
||||
private Double doubleVal;
|
||||
|
||||
private List<?> listVal;
|
||||
|
||||
private Map<String,?> mapVal;
|
||||
|
||||
private Object[] arrayVal;
|
||||
}
|
||||
//package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
//
|
||||
//import java.util.List;
|
||||
//import java.util.Map;
|
||||
//
|
||||
///**
|
||||
// * @Description : 数据模型转换对象
|
||||
// * @Reference :
|
||||
// * @Author : alwaysfrin
|
||||
// * @CreateDate : 2019-04-29 11:11
|
||||
// * @Modify:
|
||||
// **/
|
||||
//public class DataSwitchModel {
|
||||
//
|
||||
// private String stringVal;
|
||||
//
|
||||
// private Long longVal;
|
||||
//
|
||||
// private Double doubleVal;
|
||||
//
|
||||
// private List<?> listVal;
|
||||
//
|
||||
// private Map<String,?> mapVal;
|
||||
//
|
||||
// private Object[] arrayVal;
|
||||
//}
|
||||
|
@ -1,50 +1,50 @@
|
||||
package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA;
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
||||
import com.thoughtworks.xstream.annotations.XStreamImplicit;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-7-25 下午3:31
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@XStreamAlias("auth")
|
||||
public class PojoAuth{
|
||||
|
||||
@XStreamAsAttribute
|
||||
private Long id;
|
||||
@XStreamAsAttribute
|
||||
private Integer authType;
|
||||
|
||||
@XStreamImplicit
|
||||
private List<Prop> params;
|
||||
|
||||
private String authPath;
|
||||
private String userName ="登录名称";
|
||||
private String password ="登录名称";
|
||||
private String languageCode ="登录名称";
|
||||
|
||||
// 认证令牌
|
||||
private String token;
|
||||
// // 认证令牌集合(复杂认证令牌)
|
||||
// private List<Prop> tokenList;
|
||||
// 原始认证数据
|
||||
@XStreamCDATA
|
||||
private String result;
|
||||
|
||||
public PojoAuth(Long id, Integer authType,String authPath, List<Prop> params) {
|
||||
this.id = id;
|
||||
this.authType = authType;
|
||||
this.authPath = authPath;
|
||||
this.params = params;
|
||||
}
|
||||
}
|
||||
//package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
//
|
||||
//import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA;
|
||||
//import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
//import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
||||
//import com.thoughtworks.xstream.annotations.XStreamImplicit;
|
||||
//import lombok.Data;
|
||||
//
|
||||
//import java.util.List;
|
||||
//import java.util.Map;
|
||||
//
|
||||
///**
|
||||
// * @Description :
|
||||
// * @Reference :
|
||||
// * @Author : wei.peng
|
||||
// * @CreateDate : 19-7-25 下午3:31
|
||||
// * @Modify:
|
||||
// **/
|
||||
//@Data
|
||||
//@XStreamAlias("auth")
|
||||
//public class PojoAuth{
|
||||
//
|
||||
// @XStreamAsAttribute
|
||||
// private Long id;
|
||||
// @XStreamAsAttribute
|
||||
// private Integer authType;
|
||||
//
|
||||
// @XStreamImplicit
|
||||
// private List<Prop> params;
|
||||
//
|
||||
// private String authPath;
|
||||
// private String userName ="登录名称";
|
||||
// private String password ="登录名称";
|
||||
// private String languageCode ="登录名称";
|
||||
//
|
||||
// // 认证令牌
|
||||
// private String token;
|
||||
//// // 认证令牌集合(复杂认证令牌)
|
||||
//// private List<Prop> tokenList;
|
||||
// // 原始认证数据
|
||||
// @XStreamCDATA
|
||||
// private String result;
|
||||
//
|
||||
// public PojoAuth(Long id, Integer authType,String authPath, List<Prop> params) {
|
||||
// this.id = id;
|
||||
// this.authType = authType;
|
||||
// this.authPath = authPath;
|
||||
// this.params = params;
|
||||
// }
|
||||
//}
|
@ -1,28 +1,28 @@
|
||||
package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-7-25 下午5:18
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@XStreamAlias("prop")
|
||||
public class Prop {
|
||||
|
||||
@XStreamAsAttribute
|
||||
private Long id;
|
||||
private String paramName;
|
||||
private String paramValue;
|
||||
|
||||
public Prop(Long id, String paramName, String paramValue) {
|
||||
this.id = id;
|
||||
this.paramName = paramName;
|
||||
this.paramValue = paramValue;
|
||||
}
|
||||
}
|
||||
//package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
//
|
||||
//import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
//import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
||||
//import lombok.Data;
|
||||
//
|
||||
///**
|
||||
// * @Description :
|
||||
// * @Reference :
|
||||
// * @Author : wei.peng
|
||||
// * @CreateDate : 19-7-25 下午5:18
|
||||
// * @Modify:
|
||||
// **/
|
||||
//@Data
|
||||
//@XStreamAlias("prop")
|
||||
//public class Prop {
|
||||
//
|
||||
// @XStreamAsAttribute
|
||||
// private Long id;
|
||||
// private String paramName;
|
||||
// private String paramValue;
|
||||
//
|
||||
// public Prop(Long id, String paramName, String paramValue) {
|
||||
// this.id = id;
|
||||
// this.paramName = paramName;
|
||||
// this.paramValue = paramValue;
|
||||
// }
|
||||
//}
|
||||
|
@ -1,33 +1,33 @@
|
||||
package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA;
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-7-25 下午3:31
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@XStreamAlias("request")
|
||||
public class Request{
|
||||
|
||||
@XStreamAsAttribute
|
||||
private Long id;
|
||||
@XStreamAsAttribute
|
||||
private Integer requestType;
|
||||
private String requestPath;
|
||||
|
||||
@XStreamCDATA
|
||||
private String result;
|
||||
|
||||
public Request(Long id, Integer requestType,String requestPath) {
|
||||
this.id = id;
|
||||
this.requestType = requestType;
|
||||
this.requestPath = requestPath;
|
||||
}
|
||||
}
|
||||
//package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
//
|
||||
//import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA;
|
||||
//import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
//import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
||||
//import lombok.Data;
|
||||
//
|
||||
///**
|
||||
// * @Description :
|
||||
// * @Reference :
|
||||
// * @Author : wei.peng
|
||||
// * @CreateDate : 19-7-25 下午3:31
|
||||
// * @Modify:
|
||||
// **/
|
||||
//@Data
|
||||
//@XStreamAlias("request")
|
||||
//public class Request{
|
||||
//
|
||||
// @XStreamAsAttribute
|
||||
// private Long id;
|
||||
// @XStreamAsAttribute
|
||||
// private Integer requestType;
|
||||
// private String requestPath;
|
||||
//
|
||||
// @XStreamCDATA
|
||||
// private String result;
|
||||
//
|
||||
// public Request(Long id, Integer requestType,String requestPath) {
|
||||
// this.id = id;
|
||||
// this.requestType = requestType;
|
||||
// this.requestPath = requestPath;
|
||||
// }
|
||||
//}
|
@ -0,0 +1,35 @@
|
||||
package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-9-5 下午7:30
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@XStreamAlias("model")
|
||||
public class SuitServerModel {
|
||||
|
||||
// 执行方法命令
|
||||
private String action;
|
||||
// 执行类型固定类型(SoftSwitchEnumUtil.CASE_TYPE)
|
||||
private Integer caseType;
|
||||
/* 认证使用 以后使用 */
|
||||
private String token;
|
||||
// 传输单对象
|
||||
private Object obj;
|
||||
// 传输集合
|
||||
private List list;
|
||||
// 传输键值对
|
||||
private Map<String,Object> map;
|
||||
// 传输 JSON 数据
|
||||
private String json;
|
||||
|
||||
}
|
Loading…
Reference in New Issue