1. 程式人生 > >SwaggerUI+SpringMVC——構建RestFul API的視覺化介面

SwaggerUI+SpringMVC——構建RestFul API的視覺化介面

package com.gochina.mis.vo;

import com.wordnik.swagger.annotations.ApiModelProperty;

public class RequestAlbumVo {
	
	@ApiModelProperty(value = "專輯名稱", required = true)
	private String name;
	
	@ApiModelProperty(value = "第三方專輯Id", required = true)
	private String thirdAlbumId;//第三方專輯Id
	
	@ApiModelProperty(value = "第三方專輯Id", required = true)
	private String thirdSystemId;//第三方系統Id
	
	@ApiModelProperty(value = "標準圖", required = false)
	private String standardPic;//標準圖
	
	@ApiModelProperty(value = "豎圖", required = false)
	private String ystandardPic;//豎圖
	
	@ApiModelProperty(value = "水印圖片", required = false)  
	private String markPic;//水印圖片
	
	@ApiModelProperty(value = "水印圖片位置", required = false)
	private String markPosition;//水印圖片位置
	
	@ApiModelProperty(value = "標籤", required = false)
	private String tag;//標籤
	
	@ApiModelProperty(value = "評分", required = false)
	private String score;//評分
	
	@ApiModelProperty(value = "描述", required = false)
	private String description;//描述

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getThirdAlbumId() {
		return thirdAlbumId;
	}

	public void setThirdAlbumId(String thirdAlbumId) {
		this.thirdAlbumId = thirdAlbumId;
	}

	public String getThirdSystemId() {
		return thirdSystemId;
	}

	public void setThirdSystemId(String thirdSystemId) {
		this.thirdSystemId = thirdSystemId;
	}

	public String getStandardPic() {
		return standardPic;
	}

	public void setStandardPic(String standardPic) {
		this.standardPic = standardPic;
	}

	public String getYstandardPic() {
		return ystandardPic;
	}

	public void setYstandardPic(String ystandardPic) {
		this.ystandardPic = ystandardPic;
	}

	public String getMarkPic() {
		return markPic;
	}

	public void setMarkPic(String markPic) {
		this.markPic = markPic;
	}

	public String getMarkPosition() {
		return markPosition;
	}

	public void setMarkPosition(String markPosition) {
		this.markPosition = markPosition;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
}
返回引數,這裡也是用的實體