src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/BaseSearchResultVo.kt
@@ -1,6 +1,9 @@
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
@@ -12,11 +15,21 @@
    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{