Commit 5dd34078 authored by yanzg's avatar yanzg

接口文档的支持

parent ca89c8d4
package com.yanzuoguang.excel; package com.yanzuoguang.excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 列设置 * 列设置
*
* @author 颜佐光 * @author 颜佐光
*/ */
@ApiModel("合并列")
public class ExportColumn { public class ExportColumn {
/** /**
* 列标题,如 A.B * 列标题,如 A.B
*/ */
@ApiModelProperty(notes = "列标题,如 A.B")
private String title; private String title;
/** /**
* 数据单元格 * 数据单元格
*/ */
@ApiModelProperty(notes = "数据列名称")
private String name; private String name;
/** /**
* 数据是否合并 * 数据是否合并
*/ */
@ApiModelProperty(notes = "数据是否合并")
private boolean merger; private boolean merger;
/** /**
* 高度 * 合并組
*/
@ApiModelProperty(notes = "合并組")
private String megerGroup;
/**
* 宽度
*/ */
@ApiModelProperty(notes = "列标题,如 A.B")
private short width; private short width;
public String getTitle() { public String getTitle() {
...@@ -50,10 +65,15 @@ public class ExportColumn { ...@@ -50,10 +65,15 @@ public class ExportColumn {
this.merger = merger; this.merger = merger;
} }
public String getMegerGroup() {
return megerGroup;
}
public void setMegerGroup(String megerGroup) {
this.megerGroup = megerGroup;
}
public short getWidth() { public short getWidth() {
if(width < 1){
return ExportData.COLUMN_WIDTH;
}
return width; return width;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment