软适配 WebService 功能开发

yun-zuoyi
wei.peng 6 years ago
parent a59f95080c
commit e58aaf95b9

@ -1,26 +1,26 @@
package cn.estsh.i3plus.pojo.model.softswitch; //package cn.estsh.i3plus.pojo.model.softswitch;
//
import java.util.List; //import java.util.List;
import java.util.Map; //import java.util.Map;
//
/** ///**
* @Description : // * @Description : 数据模型转换对象
* @Reference : // * @Reference :
* @Author : alwaysfrin // * @Author : alwaysfrin
* @CreateDate : 2019-04-29 11:11 // * @CreateDate : 2019-04-29 11:11
* @Modify: // * @Modify:
**/ // **/
public class DataSwitchModel { //public class DataSwitchModel {
//
private String stringVal; // private String stringVal;
//
private Long longVal; // private Long longVal;
//
private Double doubleVal; // private Double doubleVal;
//
private List<?> listVal; // private List<?> listVal;
//
private Map<String,?> mapVal; // private Map<String,?> mapVal;
//
private Object[] arrayVal; // private Object[] arrayVal;
} //}

@ -1,50 +1,50 @@
package cn.estsh.i3plus.pojo.model.softswitch; //package cn.estsh.i3plus.pojo.model.softswitch;
//
import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA; //import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA;
import com.thoughtworks.xstream.annotations.XStreamAlias; //import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute; //import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit; //import com.thoughtworks.xstream.annotations.XStreamImplicit;
import lombok.Data; //import lombok.Data;
//
import java.util.List; //import java.util.List;
import java.util.Map; //import java.util.Map;
//
/** ///**
* @Description : // * @Description :
* @Reference : // * @Reference :
* @Author : wei.peng // * @Author : wei.peng
* @CreateDate : 19-7-25 3:31 // * @CreateDate : 19-7-25 下午3:31
* @Modify: // * @Modify:
**/ // **/
@Data //@Data
@XStreamAlias("auth") //@XStreamAlias("auth")
public class PojoAuth{ //public class PojoAuth{
//
@XStreamAsAttribute // @XStreamAsAttribute
private Long id; // private Long id;
@XStreamAsAttribute // @XStreamAsAttribute
private Integer authType; // private Integer authType;
//
@XStreamImplicit // @XStreamImplicit
private List<Prop> params; // private List<Prop> params;
//
private String authPath; // private String authPath;
private String userName ="登录名称"; // private String userName ="登录名称";
private String password ="登录名称"; // private String password ="登录名称";
private String languageCode ="登录名称"; // private String languageCode ="登录名称";
//
// 认证令牌 // // 认证令牌
private String token; // private String token;
// // 认证令牌集合(复杂认证令牌) //// // 认证令牌集合(复杂认证令牌)
// private List<Prop> tokenList; //// private List<Prop> tokenList;
// 原始认证数据 // // 原始认证数据
@XStreamCDATA // @XStreamCDATA
private String result; // private String result;
//
public PojoAuth(Long id, Integer authType,String authPath, List<Prop> params) { // public PojoAuth(Long id, Integer authType,String authPath, List<Prop> params) {
this.id = id; // this.id = id;
this.authType = authType; // this.authType = authType;
this.authPath = authPath; // this.authPath = authPath;
this.params = params; // this.params = params;
} // }
} //}

@ -1,28 +1,28 @@
package cn.estsh.i3plus.pojo.model.softswitch; //package cn.estsh.i3plus.pojo.model.softswitch;
//
import com.thoughtworks.xstream.annotations.XStreamAlias; //import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute; //import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import lombok.Data; //import lombok.Data;
//
/** ///**
* @Description : // * @Description :
* @Reference : // * @Reference :
* @Author : wei.peng // * @Author : wei.peng
* @CreateDate : 19-7-25 5:18 // * @CreateDate : 19-7-25 下午5:18
* @Modify: // * @Modify:
**/ // **/
@Data //@Data
@XStreamAlias("prop") //@XStreamAlias("prop")
public class Prop { //public class Prop {
//
@XStreamAsAttribute // @XStreamAsAttribute
private Long id; // private Long id;
private String paramName; // private String paramName;
private String paramValue; // private String paramValue;
//
public Prop(Long id, String paramName, String paramValue) { // public Prop(Long id, String paramName, String paramValue) {
this.id = id; // this.id = id;
this.paramName = paramName; // this.paramName = paramName;
this.paramValue = paramValue; // this.paramValue = paramValue;
} // }
} //}

@ -1,33 +1,33 @@
package cn.estsh.i3plus.pojo.model.softswitch; //package cn.estsh.i3plus.pojo.model.softswitch;
//
import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA; //import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA;
import com.thoughtworks.xstream.annotations.XStreamAlias; //import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute; //import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import lombok.Data; //import lombok.Data;
//
/** ///**
* @Description : // * @Description :
* @Reference : // * @Reference :
* @Author : wei.peng // * @Author : wei.peng
* @CreateDate : 19-7-25 3:31 // * @CreateDate : 19-7-25 下午3:31
* @Modify: // * @Modify:
**/ // **/
@Data //@Data
@XStreamAlias("request") //@XStreamAlias("request")
public class Request{ //public class Request{
//
@XStreamAsAttribute // @XStreamAsAttribute
private Long id; // private Long id;
@XStreamAsAttribute // @XStreamAsAttribute
private Integer requestType; // private Integer requestType;
private String requestPath; // private String requestPath;
//
@XStreamCDATA // @XStreamCDATA
private String result; // private String result;
//
public Request(Long id, Integer requestType,String requestPath) { // public Request(Long id, Integer requestType,String requestPath) {
this.id = id; // this.id = id;
this.requestType = requestType; // this.requestType = requestType;
this.requestPath = requestPath; // 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…
Cancel
Save