package cn.flightfeather.supervision.lightshare.vo
|
|
import com.fasterxml.jackson.annotation.JsonInclude
|
import com.github.pagehelper.Page
|
import io.swagger.annotations.ApiModel
|
import io.swagger.annotations.ApiModelProperty
|
|
/**
|
* @author riku
|
* Date: 2020/6/12
|
*/
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
open class BaseSearchResultVo {
|
var head: DataHead? = null
|
var data: MutableList<Any> = mutableListOf()
|
}
|
|
@ApiModel("请求返回数据头")
|
data class DataHead(
|
@ApiModelProperty("当前页码")
|
var page: Int = 1,
|
@ApiModelProperty("总页数")
|
var totalPage: Int = 1,
|
@ApiModelProperty("总记录数")
|
var totalCount:Long = 0
|
){
|
constructor(p: Page<*>) : this() {
|
this.page = p.pageNum
|
this.totalPage = p.pages
|
this.totalCount = p.total
|
}
|
}
|
|
open class DataContent{
|
|
}
|