refactor(backend): rename file_name to name in GetShareInfo response for consistency

This commit is contained in:
keven1024
2025-05-15 11:13:01 +08:00
parent 7d28ea0bc6
commit 038487b482

View File

@@ -115,7 +115,7 @@ func GetShareInfo(c echo.Context) error {
return utils.HTTPSuccessHandler(c, map[string]any{
"id": shareId,
"type": shareInfo.Type,
"file_name": shareInfo.FileName,
"name": shareInfo.FileName,
"download_nums": shareInfo.ViewNum,
"expire_at": shareInfo.ExpireAt,
"owner": shareInfo.Owner,
@@ -127,7 +127,7 @@ func GetShareInfo(c echo.Context) error {
return utils.HTTPSuccessHandler(c, map[string]any{
"id": shareId,
"type": shareInfo.Type,
"file_name": shareInfo.FileName,
"name": shareInfo.FileName,
"download_nums": shareInfo.ViewNum,
"expire_at": shareInfo.ExpireAt,
"owner": shareInfo.Owner,