content: package me.flyray.rest.model;
  
  import java.io.Serializable;
  import java.util.List;
  import java.util.Map;
  
  import com.baomidou.mybatisplus.plugins.Page;
  
  /** 
  * @author: bolei
  * @date：2017年3月26日 下午2:01:49 
  * @description：类说明 
  */
  
  @SuppressWarnings("serial")
  public class Parameter implements Serializable{
  
  	public Parameter() {
  	}
  
  	public Parameter(String service, String method) {
  		this.service = service;
  		this.method = method;
  	}
  
  	public Parameter(Object result) {
  		if (result instanceof Long) {
  			this.id = (Long) result;
  		} else if (result instanceof BaseModel) {
  			this.model = (BaseModel) result;
  		} else if (result instanceof Map<?, ?>) {
  			this.map = (Map<?, ?>) result;
  		} else if (result instanceof List<?>) {
  			this.list = (List<?>) result;
  		}else if (result instanceof Page) {
  			this.page = (Page<?>) result;
  		}
  	}
  
  	private String service;
  	private String method;
  
  	private Long id;
  	private BaseModel model;
  	private Map<?, ?> map;
  	private List<?> list;
  	private Page<?> page;
  
  	public String getService() {
  		return service;
  	}
  
  	public void setService(String service) {
  		this.service = service;
  	}
  
  	public String getMethod() {
  		return method;
  	}
  
  	public Parameter setMethod(String method) {
  		this.method = method;
  		return this;
  	}
  
  	public Long getId() {
  		return id;
  	}
  
  	public Parameter setId(Long id) {
  		this.id = id;
  		return this;
  	}
  
  	public BaseModel getModel() {
  		return model;
  	}
  
  	public Parameter setModel(BaseModel model) {
  		this.model = model;
  		return this;
  	}
  
  	public Map<?, ?> getMap() {
  		return map;
  	}
  
  	public Parameter setMap(Map<?, ?> map) {
  		this.map = map;
  		return this;
  	}
  
  	public List<?> getList() {
  		return list;
  	}
  
  	public Parameter setList(List<?> list) {
  		this.list = list;
  		return this;
  	}
  
  	public Page<?> getPage() {
  		return page;
  	}
  
  	public void setPage(Page<?> page) {
  		this.page = page;
  	}
  	
  }
  