feat: swagger format
This commit is contained in:
@@ -50,7 +50,7 @@ func (s *TopicService) TopicPage(req common.PageInfo) (list interface{}, total i
|
||||
limit := req.PageSize
|
||||
offset := req.PageSize * (req.Current - 1)
|
||||
db := global.DB.Model(&plant.Topic{})
|
||||
var topics []*plant.Topic
|
||||
var topics []plant.Topic
|
||||
err = db.Count(&total).Error
|
||||
if err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user