mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
refactor(backend): rename file_name to name in GetShareInfo response for consistency
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user