拆分redis中device与channel的存储方式
支持分页 接口直接返回播放地址
This commit is contained in:
44
src/main/java/com/genersoft/iot/vmp/common/PageResult.java
Normal file
44
src/main/java/com/genersoft/iot/vmp/common/PageResult.java
Normal file
@@ -0,0 +1,44 @@
|
||||
package com.genersoft.iot.vmp.common;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class PageResult<T> {
|
||||
|
||||
private int page;
|
||||
private int count;
|
||||
private int total;
|
||||
|
||||
private List<T> data;
|
||||
|
||||
public List<T> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<T> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public int getPage() {
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(int page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public int getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(int count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public int getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(int total) {
|
||||
this.total = total;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user