package com.pictc.jdbc.model;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@ApiModel
@Accessors(chain = true)
@Data
public class QueryOrder implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(name = "属性")
	private String field;
	
	@ApiModelProperty(name = "排序方式：ASC,DESC,NONE,默认 ASC")
	private QueryOrderType type = QueryOrderType.ASC;
	
	public enum QueryOrderType{
		ASC,DESC,NONE
	}

}
