完成课程内容实现层
This commit is contained in:
@@ -59,7 +59,7 @@ func (l *GetContentListLogic) GetContentList(req *types.GetContentListReq) (resp
|
||||
Title: modelItem.Title,
|
||||
// 若数据库中Content是sql.NullString,需转换为普通string(复用工具函数)
|
||||
Content: NullStringToString(modelItem.Content),
|
||||
Sort: modelItem.Sort,
|
||||
Sort: int(modelItem.Sort),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user