1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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{
 
}