Ai
1 Star 0 Fork 0

*&c++/webdisk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
oss.h 744 Bytes
一键复制 编辑 原始数据 按行查看 历史
geoff 提交于 2023-08-09 23:32 +08:00 . initialize webdisk project
#ifndef __WD_OssUploader_HPP__
#define __WD_OssUploader_HPP__
#include <string>
#include <alibabacloud/oss/OssClient.h>
using std::string;
struct OssInfo
{
string accessKeyId = "LTAI5t6CJLdHYEP2vAmRa7PT";
string accessKeySecret = "BXvRPQBYm8w7DGuJuzjRibKUpIR4eT";
string endpoint = "oss-cn-hangzhou.aliyuncs.com";
string bucketname = "bucket-lwh-test";
};
class OssUploader
{
public:
OssUploader(const OssInfo & info = OssInfo());
~OssUploader();
void doUpload(const string & key, const string & filename);
string genreateDownloadUrl(const string & key);
private:
OssInfo _ossinfo;
AlibabaCloud::OSS::ClientConfiguration _conf;
AlibabaCloud::OSS::OssClient _ossclient;
};
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/learntocodewithc/webdisk.git
git@gitee.com:learntocodewithc/webdisk.git
learntocodewithc
webdisk
webdisk
master

搜索帮助