object_storage_sdk/
storage.rs

1use serde;
2use serde::{Deserialize, Serialize};
3// use tihu::Api;
4// use tihu::SharedString;
5
6#[derive(Serialize, Deserialize, Debug)]
7pub struct GetReq {
8    pub key: String,
9}
10
11/**
12 * 删除
13 */
14// pub const DELETE_API: &str = "/api/oss/delete";
15#[derive(Serialize, Deserialize, Debug)]
16pub struct DeleteReq {
17    pub key: String,
18}
19
20pub type DeleteResp = bool;
21// pub struct DeleteApi;
22// impl Api for DeleteApi {
23//     type Input = DeleteReq;
24//     type Output = DeleteResp;
25//     fn namespace() -> SharedString {
26//         return SharedString::from_static(DELETE_API);
27//     }
28// }