增加作者头像

This commit is contained in:
haomingming
2025-12-12 15:10:08 +08:00
parent 81e89623e7
commit 69d661c8ea
2 changed files with 10 additions and 6 deletions
+3 -1
View File
@@ -6,6 +6,7 @@ import (
type VideoAuthorDto struct {
AuthorName string `json:"author_name"` // 作者姓名
AuthorAvatar string `json:"author_avatar"` // 作者头像
HospitalName string `json:"hospital_name"` // 作者所属医院
}
@@ -17,7 +18,8 @@ func GetVideoAuthorListDto(m []*model.VideoAuthor) []*VideoAuthorDto {
if len(m) > 0 {
for i, v := range m {
response := &VideoAuthorDto{
AuthorName: v.AuthorName,
AuthorName: v.AuthorName,
AuthorAvatar: v.AuthorAvatar,
}
// 加载数据-医院属性