From 30ad92fb8d96c6bc5291fb81838a00c3b13de6e3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 15 Jun 2023 00:25:38 -0400 Subject: [PATCH] refactor: rename to FileStatusResponse --- controller/files.go | 2 +- controller/response/{status.go => file_status.go} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename controller/response/{status.go => file_status.go} (60%) diff --git a/controller/files.go b/controller/files.go index 95c4972..4a9098f 100644 --- a/controller/files.go +++ b/controller/files.go @@ -128,7 +128,7 @@ func (f *FilesController) GetStatusBy(cidString string) { break } - f.respondJSON(&response.StatusResponse{Status: statusCode}) + f.respondJSON(&response.FileStatusResponse{Status: statusCode}) } diff --git a/controller/response/status.go b/controller/response/file_status.go similarity index 60% rename from controller/response/status.go rename to controller/response/file_status.go index 674f260..472fc57 100644 --- a/controller/response/status.go +++ b/controller/response/file_status.go @@ -1,5 +1,5 @@ package response -type StatusResponse struct { +type FileStatusResponse struct { Status string `json:"status"` }