增加作者头像
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
// 加载数据-医院属性
|
||||
|
||||
Reference in New Issue
Block a user