diff --git a/server/map-library/internal/logic/getmaplibrarylistlogic.go b/server/map-library/internal/logic/getmaplibrarylistlogic.go index f5b5662c..93c67c8c 100644 --- a/server/map-library/internal/logic/getmaplibrarylistlogic.go +++ b/server/map-library/internal/logic/getmaplibrarylistlogic.go @@ -69,7 +69,7 @@ func (l *GetMapLibraryListLogic) GetMapLibraryList(userinfo *auth.UserInfo) (res } } //解析info - var info types.Info + var info interface{} if err = json.Unmarshal([]byte(*v.Info), &info); err != nil { logx.Error(err) return resp.SetStatusWithMessage(basic.CodeServiceErr, "json parse info err") diff --git a/server/map-library/internal/types/types.go b/server/map-library/internal/types/types.go index 53716651..dfed7845 100644 --- a/server/map-library/internal/types/types.go +++ b/server/map-library/internal/types/types.go @@ -9,7 +9,7 @@ type GetMapLibraryListRsp struct { Mid int64 `json:"mid"` Ctime string `json:"ctime"` Tag MapLibraryListTag `json:"tag"` - Info Info `json:"info"` + Info interface{} `json:"info"` } type MapLibraryListTag struct { diff --git a/server_api/map-library.api b/server_api/map-library.api index 9250ee9b..31e941a9 100644 --- a/server_api/map-library.api +++ b/server_api/map-library.api @@ -22,7 +22,7 @@ type GetMapLibraryListRsp { Mid int64 `json:"mid"` Ctime string `json:"ctime"` Tag MapLibraryListTag `json:"tag"` - Info Info `json:"info"` + Info interface{} `json:"info"` } type MapLibraryListTag { Id int64 `json:"id"`