package com.ylcm.sys.form;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author admin
 * @date 2020-07-04
 * @description 广告下拉 返回
 */
@Data
public class AdSelectForm implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "广告类型")
	private Integer type;
		
	@ApiModelProperty(value = "菜单名称")
	private String name;
	
	@ApiModelProperty(value = "父菜单名称")
	private String parentName;
	
	private Integer pageNo; 
	
	private Integer pageSize;

    public AdSelectForm page(){
        this.pageSize = this.pageSize != null && this.pageSize > 0 ? this.pageSize:20;
        this.pageNo = this.pageNo != null && this.pageNo > 0 ? (this.pageNo - 1)*this.pageSize : 0;
        return this;
    }
}
