添加头像

This commit is contained in:
haomingming
2025-12-11 15:34:42 +08:00
parent 4f8a2bb90c
commit cdd133eb71
5 changed files with 105 additions and 19 deletions
+6 -4
View File
@@ -11,6 +11,7 @@ type VideoAuthorDto struct {
HospitalId string `json:"hospital_id"` // 作者所属id
HospitalName string `json:"hospital_name"` // 作者所属医院
AuthorName string `json:"author_name"` // 作者姓名
AuthorAvatar string `json:"author_avatar"` // 作者头像
}
// GetVideoAuthorListDto 列表-分页
@@ -21,10 +22,11 @@ func GetVideoAuthorListDto(m []*model.VideoAuthor) []*VideoAuthorDto {
if len(m) > 0 {
for i, v := range m {
response := &VideoAuthorDto{
AuthorId: fmt.Sprintf("%d", v.AuthorId),
VideoId: fmt.Sprintf("%d", v.VideoId),
AuthorName: v.AuthorName,
HospitalId: fmt.Sprintf("%d", v.HospitalId),
AuthorId: fmt.Sprintf("%d", v.AuthorId),
VideoId: fmt.Sprintf("%d", v.VideoId),
AuthorName: v.AuthorName,
AuthorAvatar: v.AuthorAvatar,
HospitalId: fmt.Sprintf("%d", v.HospitalId),
}
// 加载数据-医院属性