|
@@ -0,0 +1,51 @@
|
|
|
+package com.webserver.core.ward.result;
|
|
|
+
|
|
|
+import com.webserver.core.ward.model.Ward;
|
|
|
+
|
|
|
+import javax.jws.WebResult;
|
|
|
+import javax.xml.bind.annotation.*;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@XmlRootElement(name = "response")
|
|
|
+@XmlAccessorType(XmlAccessType.FIELD)
|
|
|
+public class ResponseData {
|
|
|
+ // 类定义
|
|
|
+
|
|
|
+ @XmlElement(name = "result")
|
|
|
+ private String result;
|
|
|
+
|
|
|
+ @XmlElement(name = "message")
|
|
|
+ private String message;
|
|
|
+
|
|
|
+ @XmlElementWrapper(name = "content")
|
|
|
+ @XmlElement(name = "data")
|
|
|
+ private List<Ward> content = new ArrayList<>();
|
|
|
+
|
|
|
+ // Getters and Setters
|
|
|
+
|
|
|
+
|
|
|
+ public String getResult() {
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setResult(String result) {
|
|
|
+ this.result = result;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getMessage() {
|
|
|
+ return message;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMessage(String message) {
|
|
|
+ this.message = message;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<Ward> getContent() {
|
|
|
+ return content;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setContent(List<Ward> content) {
|
|
|
+ this.content = content;
|
|
|
+ }
|
|
|
+}
|