系统
-
修改bucket表,增加了type字段,用于保存bucket的类型,方便计费时进行查找
-
编写计费系统,增加文件及流统计大小的工具类
-
增加price表,用于保存价格信息
create table price
(
id int auto_increment
primary key,
platform varchar(10) not null,
type int not null,
price double not null
);
- 增加计费系统 增加history表,增加price表 增加工具类
create table history
(
id int auto_increment
primary key,
url varchar(255) null,
user int null,
size double(22, 15) null,
price double(22, 15) null,
time varchar(255) null,
type int null,
bucketName varchar(255) null,
platform varchar(10) null,
ud varchar(10) null
);
云平台接入
- 修改bucket平台的判断逻辑,由之前的通过数据库查找每个用户的平台改变为通过bucketName来查找对应的平台并执行操作。
- 接入桶的标签的云平台操作的接口
接口展示