32444
This commit is contained in:
parent
ad5a9273b2
commit
2fa7f8af42
@ -26,12 +26,13 @@ func GetArticleListDto(m []*model.Article) []*ArticleDto {
|
|||||||
if len(m) > 0 {
|
if len(m) > 0 {
|
||||||
for i, v := range m {
|
for i, v := range m {
|
||||||
response := &ArticleDto{
|
response := &ArticleDto{
|
||||||
ArticleId: fmt.Sprintf("%d", v.ArticleId),
|
ArticleId: fmt.Sprintf("%d", v.ArticleId),
|
||||||
ArticleTitle: v.ArticleTitle,
|
ArticleTitle: v.ArticleTitle,
|
||||||
ArticleStatus: v.ArticleStatus,
|
ArticleStatus: v.ArticleStatus,
|
||||||
VoteNum: v.VoteNum,
|
VoteNum: v.VoteNum,
|
||||||
CreatedAt: v.CreatedAt,
|
ArticleContent: v.ArticleContent,
|
||||||
UpdatedAt: v.UpdatedAt,
|
CreatedAt: v.CreatedAt,
|
||||||
|
UpdatedAt: v.UpdatedAt,
|
||||||
}
|
}
|
||||||
|
|
||||||
// 加载数据-作者
|
// 加载数据-作者
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user