当前位置:网站首页>Internship: complex JSON format data compilation interface
Internship: complex JSON format data compilation interface
2022-07-01 20:11:00 【ahyo】
It is more cumbersome than the previous data content , But it is easier to implement without involving table structure and contacting table and table relationship to write implementation classes , But neither of them involves algorithms .
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
import java.util.List;
@Data
@Accessors(chain = true)
public class ModuleDemoinfo1 {
@ApiModelProperty(value = "headStyle")
private HeadStyle headStyle;
@ApiModelProperty(value = "cells")
private Cells cells;
@ApiModelProperty(value = "cols")
private List<Cols> cols;
@ApiModelProperty(value = "colFooterCount")
private int colFooterCount;
@ApiModelProperty(value = "width")
private int width;
@ApiModelProperty(value = "rowCount")
private int rowCount;
@ApiModelProperty(value = "colCount")
private int colCount;
@ApiModelProperty(value = "mergeCells")
private List<String> mergeCells;
@ApiModelProperty(value = "rows")
private List<Rows> rows;
@ApiModelProperty(value = "rowHeaderCount")
private int rowHeaderCount;
@ApiModelProperty(value = "defaultEditorId")
private String defaultEditorId;
@ApiModelProperty(value = "height")
private int height;
@ApiModelProperty(value = "colHeaderCount")
private int colHeaderCount;
@ApiModelProperty(value = "rowFooterCount")
private int rowFooterCount;
@ApiModelProperty(value = "colResizeIndex")
private int colResizeIndex;
@ApiModelProperty(value = "defaultStyle")
private DefaultStyle defaultStyle;
@ApiModelProperty(value = "rowResizeIndex")
private int rowResizeIndex;
@ApiModelProperty(value = "options")
private Options options;
@Data
@Accessors(chain = true)
public static class HeadStyle {
@ApiModelProperty(value = "horzAlign")
private int horzAlign;
@ApiModelProperty(value = "backStyle")
private int backStyle;
@ApiModelProperty(value = "borderColor")
private List<String> borderColor;
@ApiModelProperty(value = "decoration")
private int decoration;
@ApiModelProperty(value = "backImageStyle")
private int backImageStyle;
@ApiModelProperty(value = "fontSize")
private int fontSize;
@ApiModelProperty(value = "editable")
private boolean editable;
@ApiModelProperty(value = "vertAlign")
private int vertAlign;
@ApiModelProperty(value = "fontSizeUnit")
private int fontSizeUnit;
@ApiModelProperty(value = "colSpan")
private int colSpan;
@ApiModelProperty(value = "selectable")
private boolean selectable;
@ApiModelProperty(value = "rowSpan")
private int rowSpan;
@ApiModelProperty(value = "backImageHorizion")
private int backImageHorizion;
@ApiModelProperty(value = "border")
private Integer[] border;
@ApiModelProperty(value = "backImageVertical")
private int backImageVertical;
@ApiModelProperty(value = "backColor")
private String backColor;
}
@Data
@Accessors(chain = true)
public static class RowList {
@ApiModelProperty(value = "one")
private String one;
@ApiModelProperty(value = "two")
private String two;
@ApiModelProperty(value = "three")
private int three;
@ApiModelProperty(value = "four")
private int four;
@ApiModelProperty(value = "fontColor")
private String fontColor;
@ApiModelProperty(value = "fontName")
private String fontName;
@ApiModelProperty(value = "fontBold")
private boolean fontBold;
@ApiModelProperty(value = "padding")
private List<Integer> padding;
@ApiModelProperty(value = "fontSize")
private int fontSize;
@ApiModelProperty(value = "editable")
private boolean editable;
@ApiModelProperty(value = "fontItalic")
private boolean fontItalic;
@ApiModelProperty(value = "fontSizeUnit")
private int fontSizeUnit;
@ApiModelProperty(value = "colSpan")
private int colSpan;
@ApiModelProperty(value = "selectable")
private boolean selectable;
@ApiModelProperty(value = "rowSpan")
private int rowSpan;
@ApiModelProperty(value = "border")
private Integer[] border;
@ApiModelProperty(value = "backColor")
private String backColor;
}
@Data
@Accessors(chain = true)
public static class Cells {
@ApiModelProperty(value = "rowList")
private List<List<RowList>> rowList;
}
@Data
@Accessors(chain = true)
public static class Cols {
@ApiModelProperty(value = "grab")
private boolean grab;
@ApiModelProperty(value = "hidden")
private boolean hidden;
@ApiModelProperty(value = "auto")
private boolean auto;
@ApiModelProperty(value = "clientSize")
private int clientSize;
@ApiModelProperty(value = "size")
private int size;
}
@Data
@Accessors(chain = true)
public static class Rows {
@ApiModelProperty(value = "hidden")
private boolean hidden;
@ApiModelProperty(value = "auto")
private boolean auto;
@ApiModelProperty(value = "clientSize")
private int clientSize;
@ApiModelProperty(value = "size")
private int size;
}
@Data
@Accessors(chain = true)
public static class DefaultStyle {
@ApiModelProperty(value = "horzAlign")
private int horzAlign;
@ApiModelProperty(value = "fontName")
private String fontName;
@ApiModelProperty(value = "borderColor")
private List<String> borderColor;
@ApiModelProperty(value = "decoration")
private int decoration;
@ApiModelProperty(value = "backImageStyle")
private int backImageStyle;
@ApiModelProperty(value = "padding")
private List<Integer> padding;
@ApiModelProperty(value = "fontSize")
private int fontSize;
@ApiModelProperty(value = "editable")
private boolean editable;
@ApiModelProperty(value = "vertAlign")
private int vertAlign;
@ApiModelProperty(value = "fontSizeUnit")
private int fontSizeUnit;
@ApiModelProperty(value = "colSpan")
private int colSpan;
@ApiModelProperty(value = "selectable")
private boolean selectable;
@ApiModelProperty(value = "multiLine")
private boolean multiLine;
@ApiModelProperty(value = "rowSpan")
private int rowSpan;
@ApiModelProperty(value = "backImageHorizion")
private int backImageHorizion;
@ApiModelProperty(value = "border")
private Integer[] border;
@ApiModelProperty(value = "backImageVertical")
private int backImageVertical;
}
@Data
@Accessors(chain = true)
public static class Options {
@ApiModelProperty(value = "currentCellBorderHidden")
private boolean currentCellBorderHidden;
@ApiModelProperty(value = "showSelectionBorder")
private boolean showSelectionBorder;
@ApiModelProperty(value = "mergeCellShowMode")
private int mergeCellShowMode;
@ApiModelProperty(value = "simpleInsert")
private boolean simpleInsert;
@ApiModelProperty(value = "passReadOnly")
private boolean passReadOnly;
@ApiModelProperty(value = "currentCellShowType")
private boolean currentCellShowType;
@ApiModelProperty(value = "blurCurrentCellColor")
private String blurCurrentCellColor;
@ApiModelProperty(value = "showMergeChildBorder")
private boolean showMergeChildBorder;
@ApiModelProperty(value = "enterNext")
private int enterNext;
@ApiModelProperty(value = "colExchangeable")
private boolean colExchangeable;
@ApiModelProperty(value = "selectionMode")
private int selectionMode;
@ApiModelProperty(value = "loadMode")
private int loadMode;
@ApiModelProperty(value = "selectionBorderColor")
private String selectionBorderColor;
@ApiModelProperty(value = "colSelectable")
private boolean colSelectable;
@ApiModelProperty(value = "rowResizeable")
private boolean rowResizeable;
@ApiModelProperty(value = "colGrabable")
private boolean colGrabable;
@ApiModelProperty(value = "colResizeable")
private boolean colResizeable;
@ApiModelProperty(value = "currentCellColor")
private String currentCellColor;
@ApiModelProperty(value = "colFreeResizeable")
private boolean colFreeResizeable;
@ApiModelProperty(value = "ignoreHidden")
private boolean ignoreHidden;
@ApiModelProperty(value = "selectionColor")
private String selectionColor;
@ApiModelProperty(value = "rowSelectable")
private boolean rowSelectable;
@ApiModelProperty(value = "hideSingleSelect")
private boolean hideSingleSelect;
@ApiModelProperty(value = "showSelectionChange")
private boolean showSelectionChange;
@ApiModelProperty(value = "loadByRow")
private boolean loadByRow;
@ApiModelProperty(value = "rowFreeResizeable")
private boolean rowFreeResizeable;
@ApiModelProperty(value = "editMode")
private int editMode;
@ApiModelProperty(value = "defaultBorderColor")
private String defaultBorderColor;
@ApiModelProperty(value = "tableCell")
private boolean tableCell;
}
}
@Override
public List<ModuleDemoinfo1> arg1() {
ModuleDemoinfo1 moduleDemoInfo1=new ModuleDemoinfo1();
ModuleDemoinfo1.Cells cells=new ModuleDemoinfo1.Cells();
ModuleDemoinfo1.Cols cols=new ModuleDemoinfo1.Cols();
ModuleDemoinfo1.Cols cols1=new ModuleDemoinfo1.Cols();
ModuleDemoinfo1.DefaultStyle defaultStyle=new ModuleDemoinfo1.DefaultStyle();
ModuleDemoinfo1.HeadStyle headStyle=new ModuleDemoinfo1.HeadStyle();
ModuleDemoinfo1.Options options=new ModuleDemoinfo1.Options();
ModuleDemoinfo1.RowList rowList=new ModuleDemoinfo1.RowList();
ModuleDemoinfo1.RowList rowList1=new ModuleDemoinfo1.RowList();
ModuleDemoinfo1.RowList rowList2=new ModuleDemoinfo1.RowList();
ModuleDemoinfo1.RowList rowList3=new ModuleDemoinfo1.RowList();
ModuleDemoinfo1.RowList rowList4=new ModuleDemoinfo1.RowList();
ModuleDemoinfo1.RowList rowList5=new ModuleDemoinfo1.RowList();
ModuleDemoinfo1.RowList rowList6=new ModuleDemoinfo1.RowList();
ModuleDemoinfo1.Rows rows1=new ModuleDemoinfo1.Rows();
ModuleDemoinfo1.Rows rows2=new ModuleDemoinfo1.Rows();
Integer[] integer=new Integer[2];
integer[0]=1;integer[1]=1;
List<String> list1=new ArrayList<>();
list1.add("#a2d1e2");list1.add("#a2d1e2");
List<List<ModuleDemoinfo1.RowList>> list2=new ArrayList<>();
List<ModuleDemoinfo1.Cols> colsList=new ArrayList<>();
List<ModuleDemoinfo1.Rows> rowsList=new ArrayList<>();
List<ModuleDemoinfo1> listInfo=new ArrayList<>();
headStyle.setHorzAlign(3)
.setBackStyle(1)
.setBorderColor(list1)
.setDecoration(0)
.setBackImageStyle(0)
.setFontSize(0)
.setEditable(true)
.setVertAlign(3)
.setFontSizeUnit(1)
.setColSpan(1)
.setSelectable(true)
.setRowSpan(1)
.setBackImageHorizion(3)
.setBorder(integer)
.setBackImageVertical(3)
.setBackColor("#ecf7fc");
List<Integer> list=new ArrayList<>();
list.add(2);list.add(2);list.add(0);list.add(2);
List<ModuleDemoinfo1.RowList> rowLists=new ArrayList<>();
List<ModuleDemoinfo1.RowList> rowLists1=new ArrayList<>();
List<ModuleDemoinfo1.RowList> rowLists2=new ArrayList<>();
rowList.setOne(" Serial number ")
.setThree(0)
.setFour(0)
.setFontColor("#000000")
.setFontName(" Song style ")
.setFontBold(true)
.setPadding(list)
.setFontSize(9)
.setEditable(true)
.setFontItalic(false)
.setFontSizeUnit(1)
.setColSpan(1)
.setSelectable(true)
.setRowSpan(1)
.setBorder(integer)
.setBackColor("#ecf7fc");
rowList1.setOne(" Line identification ")
.setThree(2)
.setFour(0)
.setFontColor("#000000")
.setFontName(" Song style ")
.setFontBold(true)
.setPadding(list)
.setFontSize(9)
.setEditable(true)
.setFontItalic(false)
.setFontSizeUnit(1)
.setColSpan(1)
.setSelectable(true)
.setRowSpan(1)
.setBorder(integer)
.setBackColor("#ecf7fc");
rowList2.setOne(" Document definition ")
.setThree(3)
.setFour(0)
.setFontColor("#000000")
.setFontName(" Song style ")
.setFontBold(true)
.setPadding(list)
.setFontSize(9)
.setEditable(true)
.setFontItalic(false)
.setFontSizeUnit(1)
.setColSpan(1)
.setSelectable(true)
.setRowSpan(1)
.setBorder(integer)
.setBackColor("#ecf7fc");
rowLists.add(rowList);rowLists.add(rowList1);rowLists.add(rowList2);
rowList3.setOne("1")
.setThree(0)
.setFour(1)
.setFontName(" Song style ")
.setFontBold(false)
.setPadding(list)
.setFontSize(9)
.setEditable(true)
.setFontSizeUnit(1)
.setFontItalic(false)
.setColSpan(1)
.setSelectable(true)
.setRowSpan(1)
.setBorder(integer);
rowList4.setOne("7F643F456000000128ACEA5EB5AD563D")
.setThree(2)
.setFour(1)
.setBackColor("#ffffff");
rowLists1.add(rowList3);rowLists1.add(rowList4);
rowList5.setOne(" furniture 、 appliance 、 Fittings, animals and plants ")
.setThree(5)
.setFour(25)
.setBackColor("#ffffff");
rowList6.setOne(" Chairs and stools ")
.setThree(6)
.setFour(25)
.setBackColor("#ffffff");
rowLists2.add(rowList5);rowLists2.add(rowList6);
list2.add(rowLists);list2.add(rowLists1);list2.add(rowLists2);
cols.setGrab(false)
.setHidden(false)
.setAuto(false)
.setClientSize(50)
.setSize(50);
cols1.setGrab(false)
.setHidden(false)
.setAuto(false)
.setClientSize(30)
.setSize(50);
colsList.add(cols);colsList.add(cols1);
rows1.setHidden(false)
.setAuto(false)
.setClientSize(20)
.setSize(20);
rows2.setHidden(false)
.setAuto(true)
.setClientSize(20)
.setSize(20);
rowsList.add(rows1);rowsList.add(rows2);
cells.setRowList(list2);
List<String> l=new ArrayList<>();
l.add("#bfe5f7");l.add("#bfe5f7");
defaultStyle.setHorzAlign(1)
.setFontName(" Song style ")
.setBorderColor(l)
.setDecoration(0)
.setBackImageStyle(5)
.setPadding(list)
.setFontSize(9)
.setEditable(true)
.setVertAlign(3)
.setFontSizeUnit(1)
.setColSpan(1)
.setSelectable(true)
.setMultiLine(true)
.setRowSpan(1)
.setBackImageHorizion(3)
.setBorder(integer)
.setBackImageVertical(3);
options.setCurrentCellBorderHidden(false)
.setShowSelectionBorder(false)
.setMergeCellShowMode(1)
.setSimpleInsert(false)
.setPassReadOnly(true)
.setCurrentCellShowType(true)
.setBlurCurrentCellColor("rgba(252,218,154,1)")
.setShowMergeChildBorder(false)
.setEnterNext(3)
.setColExchangeable(false)
.setSelectionMode(3)
.setLoadMode(1)
.setSelectionBorderColor("#000000")
.setColSelectable(false)
.setRowResizeable(false)
.setColGrabable(false)
.setColResizeable(true)
.setCurrentCellColor("rgba(253,140,70,1)")
.setColFreeResizeable(false)
.setIgnoreHidden(false)
.setSelectionColor("rgba(120,255,0,0.2)")
.setRowSelectable(false)
.setHideSingleSelect(true)
.setShowSelectionBorder(false)
.setLoadByRow(true)
.setRowFreeResizeable(false)
.setEditMode(1)
.setDefaultBorderColor("#bfe5f7")
.setTableCell(true);
moduleDemoInfo1.setHeadStyle(headStyle)
.setCells(cells)
.setColFooterCount(0)
.setWidth(7059)
.setRowCount(33)
.setColCount(84)
.setMergeCells(new ArrayList<String>())
.setRowHeaderCount(1)
.setDefaultEditorId("_e_1865")
.setHeight(660)
.setColHeaderCount(2)
.setRowFooterCount(0)
.setColResizeIndex(0)
.setDefaultStyle(defaultStyle)
.setRowResizeIndex(0)
.setOptions(options);
listInfo.add(moduleDemoInfo1);
return listInfo;
pure set get list.add There is really nothing to write
边栏推荐
- cocoaPods 添加成功后,导入不了头文件或者not found file 报错
- 网上开户是安全的吗?新手可以开炒股账户吗。
- [multithreading] lock strategy
- 如何用OpenMesh创建一个四棱锥
- Redis installation and startup in Windows environment (background startup)
- STC 32-bit 8051 single chip microcomputer development example tutorial II i/o working mode and its configuration
- 8K HDR!|为 Chromium 实现 HEVC 硬解 - 原理/实测指南
- 3D全景模型展示可视化技术演示
- Modsim basic use (Modbus simulator)
- 关于一个神奇函数的用法
猜你喜欢
Use of common built-in classes of JS
Items in richview documents
Niuke programming question -- must brush the string of 101 (brush the question efficiently, draw inferences from one instance)
8K HDR!|为 Chromium 实现 HEVC 硬解 - 原理/实测指南
Error in installing sharp
Hls4ml reports an error the board_ part definition was not found for tul. com. tw:pynq-z2:part0:1.0.
STC 32-bit 8051 single chip microcomputer development example tutorial three program compilation setting and download
A quietly rising domestic software, low-key and powerful!
Easycvr accesses the equipment through the national standard gb28181 protocol. What is the reason for the automatic streaming of the equipment?
Principle of motion capture system
随机推荐
docker ubuntu容器中安装mysql遇到的问题
PHP获取微信小程序和小程序商店外链地址
C#聯合halcon應用——大華相機采集類
独家消息:阿里云悄然推出RPA云电脑,已与多家RPA厂商开放合作
由浅入深学会白盒测试用例设计
Review the collection container again
Is Dao safe? Build finance encountered a malicious governance takeover and was looted!
3D全景模型展示可视化技术演示
February 15, 2022: sweeping robot. There is a floor sweeping robot in the room (represented by a grid). Each grid in the grid has two possibilities: empty and obstacles. The sweeping robot provides fo
【蓝桥杯Web】2022年第十三届蓝桥杯Web大学组国赛真题解析
一个悄然崛起的国产软件,低调又强大!
Hls4ml entry method
Using qeventloop to realize synchronous waiting for the return of slot function
对金额进行求和
渗透工具-TrustedSec 公司的渗透测试框架 (PTF)
C#联合halcon应用——大华相机采集类
Niuke programming question -- must brush the string of 101 (brush the question efficiently, draw inferences from one instance)
人脸识别系统 —— OpenCV人脸检测
[research materials] Huawei Technology ICT 2021: at the beginning of the "Yuan" year, the industry is "new" -- download attached