代码规范性优化
This commit is contained in:
@@ -71,6 +71,9 @@ func (autoCodeExampleService *AutoCodeExampleService) GetAutoCodeExampleInfoList
|
||||
db = db.Where("label LIKE ?", "%"+info.AutoCodeExampleField+"%")
|
||||
}
|
||||
err = db.Count(&total).Error
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
err = db.Limit(limit).Offset(offset).Find(&autoCodeExamples).Error
|
||||
return err, autoCodeExamples, total
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user