软适配接口制作完成
parent
1de613a09c
commit
b5c204f873
@ -0,0 +1,42 @@
|
||||
package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
|
||||
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 ="登录名称";
|
||||
|
||||
public PojoAuth(Long id, Integer authType,String authPath, List<Prop> params) {
|
||||
this.id = id;
|
||||
this.authType = authType;
|
||||
this.authPath = authPath;
|
||||
this.params = params;
|
||||
}
|
||||
}
|
@ -0,0 +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;
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
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 下午3:31
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@XStreamAlias("request")
|
||||
public class Request{
|
||||
|
||||
@XStreamAsAttribute
|
||||
private Long id;
|
||||
@XStreamAsAttribute
|
||||
private Integer requestType;
|
||||
private String requestPath;
|
||||
|
||||
public Request(Long id, Integer requestType,String requestPath) {
|
||||
this.id = id;
|
||||
this.requestType = requestType;
|
||||
this.requestPath = requestPath;
|
||||
}
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
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 下午3:29
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@XStreamAlias("model")
|
||||
public class XmlModel {
|
||||
|
||||
@XStreamAsAttribute
|
||||
private Long id;
|
||||
@XStreamAsAttribute
|
||||
private Integer caseType;
|
||||
private String suitCaseStatus;
|
||||
|
||||
private String key;
|
||||
private PojoAuth auth;
|
||||
private Request request;
|
||||
|
||||
public XmlModel(Long id, Integer caseType,String suitCaseStatus, String key, PojoAuth auth,Request request) {
|
||||
this.id = id;
|
||||
this.caseType = caseType;
|
||||
this.suitCaseStatus = suitCaseStatus;
|
||||
this.key = key;
|
||||
this.auth = auth;
|
||||
this.request = request;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue