package cn.estsh.i3plus.pojo.base.bean;

import cn.estsh.i3plus.pojo.base.common.Pager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @Description :
 * @Reference :
 * @Author : alwaysfrin
 * @CreateDate : 2018-09-04 15:58
 * @Modify:
 **/
@Getter
@Setter
@ToString
public class BaseModelBean<Obj> {

    @ApiParam("操作对象")
    private Obj obj;

    @ApiParam("翻页")
    private Pager pager;

    @ApiParam("排序SQL")
    private String ordersString;

    @ApiParam("整型参数")
    private long paramLong;

    @ApiParam("浮点数字参数")
    private double paramDouble;

    @ApiParam("字符串参数")
    private String paramString;

    public BaseModelBean(Obj obj, Pager pager) {
        this.obj = obj;
        this.pager = pager;
    }

    public BaseModelBean() {
    }
}
