Эх сурвалжийг харах

3.3.0 卡格式结构解析

xiaofei 1 жил өмнө
parent
commit
9467f24025

+ 16 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/bean/vo/parseCard/Columns.java

@@ -0,0 +1,16 @@
+package com.qmth.distributed.print.business.bean.vo.parseCard;
+
+import java.util.List;
+
+public class Columns {
+
+    private List<Elements> elements;
+
+    public List<Elements> getElements() {
+        return elements;
+    }
+
+    public void setElements(List<Elements> elements) {
+        this.elements = elements;
+    }
+}

+ 49 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/bean/vo/parseCard/ElementParent.java

@@ -0,0 +1,49 @@
+package com.qmth.distributed.print.business.bean.vo.parseCard;
+
+public class ElementParent {
+    private String id;
+    private int topicNo;
+    private int questionsCount;
+    private Integer startNumber;
+    private String topicName;
+
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public int getTopicNo() {
+        return topicNo;
+    }
+
+    public void setTopicNo(int topicNo) {
+        this.topicNo = topicNo;
+    }
+
+    public int getQuestionsCount() {
+        return questionsCount;
+    }
+
+    public void setQuestionsCount(int questionsCount) {
+        this.questionsCount = questionsCount;
+    }
+
+    public Integer getStartNumber() {
+        return startNumber;
+    }
+
+    public void setStartNumber(Integer startNumber) {
+        this.startNumber = startNumber;
+    }
+
+    public String getTopicName() {
+        return topicName;
+    }
+
+    public void setTopicName(String topicName) {
+        this.topicName = topicName;
+    }
+}

+ 50 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/bean/vo/parseCard/Elements.java

@@ -0,0 +1,50 @@
+package com.qmth.distributed.print.business.bean.vo.parseCard;
+
+public class Elements {
+
+    private String type;
+    private int optionCount;
+    private Boolean isBoolean;
+    private Boolean isMultiply;
+    private ElementParent parent;
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    public int getOptionCount() {
+        return optionCount;
+    }
+
+    public void setOptionCount(int optionCount) {
+        this.optionCount = optionCount;
+    }
+
+    public Boolean getBoolean() {
+        return isBoolean;
+    }
+
+    public void setBoolean(Boolean aBoolean) {
+        isBoolean = aBoolean;
+    }
+
+    public Boolean getMultiply() {
+        return isMultiply;
+    }
+
+    public void setMultiply(Boolean multiply) {
+        isMultiply = multiply;
+    }
+
+    public ElementParent getParent() {
+        return parent;
+    }
+
+    public void setParent(ElementParent parent) {
+        this.parent = parent;
+    }
+}

+ 16 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/bean/vo/parseCard/Pages.java

@@ -0,0 +1,16 @@
+package com.qmth.distributed.print.business.bean.vo.parseCard;
+
+import java.util.List;
+
+public class Pages {
+
+    private List<Columns> columns;
+
+    public List<Columns> getColumns() {
+        return columns;
+    }
+
+    public void setColumns(List<Columns> columns) {
+        this.columns = columns;
+    }
+}

+ 86 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/bean/vo/parseCard/Struct.java

@@ -0,0 +1,86 @@
+package com.qmth.distributed.print.business.bean.vo.parseCard;
+
+public class Struct {
+
+    private String qType;
+    private int mainNumber;
+    private int subNumber;
+    private String mainTitle;
+    private int type;
+    private String typeName;
+    private int optionCount;
+    private int paperIndex;
+    private int pageIndex;
+
+    public String getqType() {
+        return qType;
+    }
+
+    public void setqType(String qType) {
+        this.qType = qType;
+    }
+
+    public int getMainNumber() {
+        return mainNumber;
+    }
+
+    public void setMainNumber(int mainNumber) {
+        this.mainNumber = mainNumber;
+    }
+
+    public int getSubNumber() {
+        return subNumber;
+    }
+
+    public void setSubNumber(int subNumber) {
+        this.subNumber = subNumber;
+    }
+
+    public String getMainTitle() {
+        return mainTitle;
+    }
+
+    public void setMainTitle(String mainTitle) {
+        this.mainTitle = mainTitle;
+    }
+
+    public int getType() {
+        return type;
+    }
+
+    public void setType(int type) {
+        this.type = type;
+    }
+
+    public String getTypeName() {
+        return typeName;
+    }
+
+    public void setTypeName(String typeName) {
+        this.typeName = typeName;
+    }
+
+    public int getOptionCount() {
+        return optionCount;
+    }
+
+    public void setOptionCount(int optionCount) {
+        this.optionCount = optionCount;
+    }
+
+    public int getPaperIndex() {
+        return paperIndex;
+    }
+
+    public void setPaperIndex(int paperIndex) {
+        this.paperIndex = paperIndex;
+    }
+
+    public int getPageIndex() {
+        return pageIndex;
+    }
+
+    public void setPageIndex(int pageIndex) {
+        this.pageIndex = pageIndex;
+    }
+}

+ 113 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/bean/vo/parseCard/StructData.java

@@ -0,0 +1,113 @@
+package com.qmth.distributed.print.business.bean.vo.parseCard;
+
+public class StructData {
+
+    private int mainNumber;
+    private String mainTitle;
+    private int questionsCount;
+    private int startNumber;
+    private String cardTopicType;
+    private int optionCount;
+    private int type;
+    private String typeName;
+    private String qType;
+    private int paperIndex;
+    private int pageIndex;
+
+    public StructData() {
+    }
+
+    public StructData(int type, String typeName, String qType) {
+        this.type = type;
+        this.typeName = typeName;
+        this.qType = qType;
+    }
+
+    public int getMainNumber() {
+        return mainNumber;
+    }
+
+    public void setMainNumber(int mainNumber) {
+        this.mainNumber = mainNumber;
+    }
+
+    public String getMainTitle() {
+        return mainTitle;
+    }
+
+    public void setMainTitle(String mainTitle) {
+        this.mainTitle = mainTitle;
+    }
+
+    public int getQuestionsCount() {
+        return questionsCount;
+    }
+
+    public void setQuestionsCount(int questionsCount) {
+        this.questionsCount = questionsCount;
+    }
+
+    public int getStartNumber() {
+        return startNumber;
+    }
+
+    public void setStartNumber(int startNumber) {
+        this.startNumber = startNumber;
+    }
+
+    public String getCardTopicType() {
+        return cardTopicType;
+    }
+
+    public void setCardTopicType(String cardTopicType) {
+        this.cardTopicType = cardTopicType;
+    }
+
+    public int getOptionCount() {
+        return optionCount;
+    }
+
+    public void setOptionCount(int optionCount) {
+        this.optionCount = optionCount;
+    }
+
+    public int getType() {
+        return type;
+    }
+
+    public void setType(int type) {
+        this.type = type;
+    }
+
+    public String getTypeName() {
+        return typeName;
+    }
+
+    public void setTypeName(String typeName) {
+        this.typeName = typeName;
+    }
+
+    public String getqType() {
+        return qType;
+    }
+
+    public void setqType(String qType) {
+        this.qType = qType;
+    }
+
+    public int getPaperIndex() {
+        return paperIndex;
+    }
+
+    public void setPaperIndex(int paperIndex) {
+        this.paperIndex = paperIndex;
+    }
+
+    public int getPageIndex() {
+        return pageIndex;
+    }
+
+    public void setPageIndex(int pageIndex) {
+        this.pageIndex = pageIndex;
+    }
+}

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 113 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/util/CardParseUtils.java


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно