|
@@ -102,9 +102,7 @@ func (this *VideoController) List() {
|
|
|
currentIndex = 1
|
|
|
}
|
|
|
startSize = paging.StartIndex(currentIndex, pageSize)
|
|
|
- total := 0
|
|
|
resp := new(models.VideoListResp)
|
|
|
- page := paging.GetPaging(currentIndex, pageSize, total)
|
|
|
var condition string
|
|
|
var pars []interface{}
|
|
|
|
|
@@ -134,7 +132,6 @@ func (this *VideoController) List() {
|
|
|
} else {
|
|
|
list := make([]*models.VideoList, 0)
|
|
|
resp.List = list
|
|
|
- resp.Paging = page
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
br.Msg = "获取成功"
|
|
@@ -157,13 +154,6 @@ func (this *VideoController) List() {
|
|
|
pars = append(pars, publishDate)
|
|
|
}
|
|
|
if status == 0 {
|
|
|
- total, err = models.GetVideoListCount(condition, pars)
|
|
|
- if err != nil {
|
|
|
- br.Msg = "获取失败"
|
|
|
- br.ErrMsg = "获取数据总数失败,Err:" + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
list, err := models.GetVideoList(condition, pars, startSize, pageSize)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取失败"
|
|
@@ -180,7 +170,6 @@ func (this *VideoController) List() {
|
|
|
list := make([]*models.VideoList, 0)
|
|
|
resp.List = list
|
|
|
}
|
|
|
- resp.Paging = page
|
|
|
resp.Status = status
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|