Skip to content

Commit

Permalink
FIX typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
karminski committed Nov 9, 2023
1 parent 4ea375f commit 7fc8dec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions src/utils/illadrivesdk/drive_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ import (
)

const (
DRIVE_API_ACTION_GENERATE_TINY_URLS = "GenerateTinyURLs"
DRIVE_API_ACTION_GET_FOLDER_ID_BY_PATH = "GetFolderIDByPath"
DRIVE_API_ACTION_LIST_FILES = "ListFiles"
DRIVE_API_ACTION_GET_UPLOAD_ADDRESS = "GetUploadAddress"
DRIVE_API_ACTION_UPDATE_FILE_STATUS = "UpdateFileStatus"
DRIVE_API_ACTION_GET_MUTIPLE_UPLOAD_ADDRESS = "GetMutipleUploadAddres"
DRIVE_API_ACTION_GET_DOWNLOAD_ADDRESS = "GetDownloadAddress"
DRIVE_API_ACTION_GET_MUTIPLE_DOWNLOAD_ADDRESS = "GetMutipleDownloadAddress"
DRIVE_API_ACTION_DELETE_FILES = "DeleteFiles"
DRIVE_API_ACTION_DELETE_FILE = "DeleteFile"
DRIVE_API_ACTION_DELETE_MUTIPLE_FILE = "DeleteMutipleFile"
DRIVE_API_ACTION_RENAME_FILE = "RenameFile"
DRIVE_API_ACTION_GENERATE_TINY_URLS = "GenerateTinyURLs"
DRIVE_API_ACTION_GET_FOLDER_ID_BY_PATH = "GetFolderIDByPath"
DRIVE_API_ACTION_LIST_FILES = "ListFiles"
DRIVE_API_ACTION_GET_UPLOAD_ADDRESS = "GetUploadAddress"
DRIVE_API_ACTION_UPDATE_FILE_STATUS = "UpdateFileStatus"
DRIVE_API_ACTION_GET_MULTIPLE_UPLOAD_ADDRESS = "GetMultipleUploadAddres"
DRIVE_API_ACTION_GET_DOWNLOAD_ADDRESS = "GetDownloadAddress"
DRIVE_API_ACTION_GET_MULTIPLE_DOWNLOAD_ADDRESS = "GetMultipleDownloadAddress"
DRIVE_API_ACTION_DELETE_FILES = "DeleteFiles"
DRIVE_API_ACTION_DELETE_FILE = "DeleteFile"
DRIVE_API_ACTION_DELETE_MULTIPLE_FILE = "DeleteMultipleFile"
DRIVE_API_ACTION_RENAME_FILE = "RenameFile"
)

type DriveAuthClaims struct {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/illadrivesdk/illa_drive_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func (r *IllaDriveRestAPI) UpdateFileStatus(teamID int, fileID string, status st
return updateStatusResponse, nil
}

func (r *IllaDriveRestAPI) GetMutipleUploadAddress(teamID int, overwriteDuplicate bool, path string, fileNames []string, fileSizes []int64, contentTypes []string) ([]map[string]interface{}, error) {
func (r *IllaDriveRestAPI) GetMultipleUploadAddress(teamID int, overwriteDuplicate bool, path string, fileNames []string, fileSizes []int64, contentTypes []string) ([]map[string]interface{}, error) {
ret := make([]map[string]interface{}, 0)
for serial, fileName := range fileNames {
uploadAddressInfo, errInGetUploadAddress := r.GetUploadAddres(teamID, overwriteDuplicate, path, fileName, fileSizes[serial], contentTypes[serial])
Expand Down Expand Up @@ -382,7 +382,7 @@ func (r *IllaDriveRestAPI) GetDownloadAddress(teamID int, fileID string) (map[st
return downloadAddress, nil
}

func (r *IllaDriveRestAPI) GetMutipleDownloadAddres(teamID int, fileIDs []string) ([]map[string]interface{}, error) {
func (r *IllaDriveRestAPI) GetMultipleDownloadAddres(teamID int, fileIDs []string) ([]map[string]interface{}, error) {
ret := make([]map[string]interface{}, 0)
for _, fileID := range fileIDs {
fileDownloadAddressInfo, errInGetDownloadAddress := r.GetDownloadAddress(teamID, fileID)
Expand Down

0 comments on commit 7fc8dec

Please sign in to comment.