Skip to content

Commit

Permalink
feat: code adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
withchao committed Sep 26, 2024
1 parent d2f919f commit a5f3883
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
24 changes: 0 additions & 24 deletions open_im_sdk/file.go

This file was deleted.

5 changes: 5 additions & 0 deletions open_im_sdk/third.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package open_im_sdk

import (
"github.com/openimsdk/openim-sdk-core/v3/internal/third/file"
"github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback"
"github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs"
)
Expand All @@ -38,3 +39,7 @@ func Logs(callback open_im_sdk_callback.Base, operationID string, logLevel int,
}
call(callback, operationID, UserForSDK.Third().Log, logLevel, file, line, msgs, err, keyAndValue)
}

func UploadFile(callback open_im_sdk_callback.Base, operationID string, req string, progress open_im_sdk_callback.UploadFileCallback) {
call(callback, operationID, UserForSDK.File().UploadFile, req, file.UploadFileCallback(progress))
}

0 comments on commit a5f3883

Please sign in to comment.