mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-11 02:51:01 +08:00
列表总数获取失败
This commit is contained in:
@@ -47,7 +47,7 @@ func (Service ArticleCollectService) List(page request.PageReq, listReq ArticleC
|
||||
// 总数
|
||||
var count int64
|
||||
err := dbModel.Count(&count).Error
|
||||
if e = response.CheckErr(err, "List Count err"); e != nil {
|
||||
if e = response.CheckErr(err, "列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
// 数据
|
||||
|
@@ -56,7 +56,7 @@ func (albSrv albumService) AlbumList(page request.PageReq, listReq CommonAlbumLi
|
||||
// 总数
|
||||
var count int64
|
||||
err := albumModel.Count(&count).Error
|
||||
if e = response.CheckErr(err, "AlbumList Count err"); e != nil {
|
||||
if e = response.CheckErr(err, "Album列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
// 数据
|
||||
|
@@ -70,7 +70,7 @@ func (Service flowApplyService) List(page request.PageReq, listReq FlowApplyList
|
||||
// 总数
|
||||
var count int64
|
||||
err := dbModel.Count(&count).Error
|
||||
if e = response.CheckErr(err, "List Count err"); e != nil {
|
||||
if e = response.CheckErr(err, "列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
// 数据
|
||||
|
@@ -83,7 +83,7 @@ func (Service flowHistoryService) List(page request.PageReq, listReq FlowHistory
|
||||
// 总数
|
||||
var count int64
|
||||
err := dbModel.Count(&count).Error
|
||||
if e = response.CheckErr(err, "List Count err"); e != nil {
|
||||
if e = response.CheckErr(err, "列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
// 数据
|
||||
|
@@ -56,7 +56,7 @@ func (Service flowTemplateService) List(page request.PageReq, listReq FlowTempla
|
||||
// 总数
|
||||
var count int64
|
||||
err := dbModel.Count(&count).Error
|
||||
if e = response.CheckErr(err, "List Count err"); e != nil {
|
||||
if e = response.CheckErr(err, "列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
// 数据
|
||||
|
@@ -90,7 +90,7 @@ func (genSrv generateService) List(page request.PageReq, listReq ListTableReq) (
|
||||
// 总数
|
||||
var count int64
|
||||
err := genModel.Count(&count).Error
|
||||
if e = response.CheckErr(err, "List Count err"); e != nil {
|
||||
if e = response.CheckErr(err, "列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
// 数据
|
||||
|
@@ -77,7 +77,7 @@ func (service monitorClientService) List(page request.PageReq, listReq MonitorCl
|
||||
// 总数
|
||||
var count int64
|
||||
err := dbModel.Count(&count).Error
|
||||
if e = response.CheckErr(err, "List Count err"); e != nil {
|
||||
if e = response.CheckErr(err, "列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
// 数据
|
||||
|
@@ -53,7 +53,7 @@ func (service monitorProjectService) List(page request.PageReq, listReq MonitorP
|
||||
// 总数
|
||||
var count int64
|
||||
err := dbModel.Count(&count).Error
|
||||
if e = response.CheckErr(err, "List Count err"); e != nil {
|
||||
if e = response.CheckErr(err, "列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
// 数据
|
||||
|
@@ -72,7 +72,7 @@ func (service monitorWebService) List(page request.PageReq, listReq MonitorWebLi
|
||||
// 总数
|
||||
var count int64
|
||||
err := dbModel.Count(&count).Error
|
||||
if e = response.CheckErr(err, "List Count err"); e != nil {
|
||||
if e = response.CheckErr(err, "列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
// 数据
|
||||
|
@@ -85,7 +85,7 @@ func (ddSrv settingDictDataService) List(page request.PageReq, listReq SettingDi
|
||||
}
|
||||
var count int64
|
||||
e = ddModel.Count(&count).Error
|
||||
if e = response.CheckErr(e, "List Count err"); e != nil {
|
||||
if e = response.CheckErr(e, "列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
var dds []setting_model.DictData
|
||||
|
@@ -59,7 +59,7 @@ func (dtSrv settingDictTypeService) List(page request.PageReq, listReq SettingDi
|
||||
}
|
||||
var count int64
|
||||
err := dtModel.Count(&count).Error
|
||||
if e = response.CheckErr(err, "List Count err"); e != nil {
|
||||
if e = response.CheckErr(err, "列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
var dts []setting_model.DictType
|
||||
|
@@ -180,7 +180,7 @@ func (adminSrv systemAuthAdminService) List(page request.PageReq, listReq System
|
||||
// 总数
|
||||
var count int64
|
||||
err := adminModel.Count(&count).Error
|
||||
if e = response.CheckErr(err, "List Count err"); e != nil {
|
||||
if e = response.CheckErr(err, "列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
// 数据
|
||||
|
@@ -62,7 +62,7 @@ func (service systemAuthPostService) List(page request.PageReq, listReq SystemAu
|
||||
// 总数
|
||||
var count int64
|
||||
err := postModel.Count(&count).Error
|
||||
if e = response.CheckErr(err, "List Count err"); e != nil {
|
||||
if e = response.CheckErr(err, "列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
// 数据
|
||||
|
@@ -54,7 +54,7 @@ func (roleSrv systemAuthRoleService) List(page request.PageReq) (res response.Pa
|
||||
roleModel := roleSrv.db.Model(&system_model.SystemAuthRole{})
|
||||
var count int64
|
||||
err := roleModel.Count(&count).Error
|
||||
if e = response.CheckErr(err, "List Count err"); e != nil {
|
||||
if e = response.CheckErr(err, "列表总数获取失败"); e != nil {
|
||||
return
|
||||
}
|
||||
var roles []system_model.SystemAuthRole
|
||||
|
Reference in New Issue
Block a user