Commit 5dd34078 authored by yanzg's avatar yanzg

接口文档的支持

parent ca89c8d4
package com.yanzuoguang.excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 列设置
*
* @author 颜佐光
*/
@ApiModel("合并列")
public class ExportColumn {
/**
* 列标题,如 A.B
*/
@ApiModelProperty(notes = "列标题,如 A.B")
private String title;
/**
* 数据单元格
*/
@ApiModelProperty(notes = "数据列名称")
private String name;
/**
* 数据是否合并
*/
@ApiModelProperty(notes = "数据是否合并")
private boolean merger;
/**
* 高度
* 合并組
*/
@ApiModelProperty(notes = "合并組")
private String megerGroup;
/**
* 宽度
*/
@ApiModelProperty(notes = "列标题,如 A.B")
private short width;
public String getTitle() {
......@@ -50,10 +65,15 @@ public class ExportColumn {
this.merger = merger;
}
public String getMegerGroup() {
return megerGroup;
}
public void setMegerGroup(String megerGroup) {
this.megerGroup = megerGroup;
}
public short getWidth() {
if(width < 1){
return ExportData.COLUMN_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