潘志宝
8 天以前 e54ce4959bca1fdeda01701989f8debd9467d4bd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
### 请求 /infra/file-config/create 接口 => 成功
POST {{baseUrl}}/infra/file-config/create
Content-Type: application/json
tenant-id: {{adminTenentId}}
Authorization: Bearer {{token}}
 
{
  "name": "S3 - 七牛云",
  "remark": "",
  "storage": 20,
  "config": {
    "accessKey": "b7yvuhBSAGjmtPhMFcn9iMOxUOY_I06cA_p0ZUx8",
    "accessSecret": "kXM1l5ia1RvSX3QaOEcwI3RLz3Y2rmNszWonKZtP",
    "bucket": "ruoyi-vue-pro",
    "endpoint": "s3-cn-south-1.qiniucs.com",
    "domain": "http://test.iailab.iocoder.cn",
    "region": "oss-cn-beijing"
  }
}
 
### 请求 /infra/file-config/update 接口 => 成功
PUT {{baseUrl}}/infra/file-config/update
Content-Type: application/json
tenant-id: {{adminTenentId}}
Authorization: Bearer {{token}}
 
{
  "id": 2,
  "name": "S3 - 七牛云",
  "remark": "",
  "config": {
    "accessKey": "b7yvuhBSAGjmtPhMFcn9iMOxUOY_I06cA_p0ZUx8",
    "accessSecret": "kXM1l5ia1RvSX3QaOEcwI3RLz3Y2rmNszWonKZtP",
    "bucket": "ruoyi-vue-pro",
    "endpoint": "s3-cn-south-1.qiniucs.com",
    "domain": "http://test.iailab.iocoder.cn",
    "region": "oss-cn-beijing"
  }
}
 
### 请求 /infra/file-config/test 接口 => 成功
GET {{baseUrl}}/infra/file-config/test?id=2
Content-Type: application/json
tenant-id: {{adminTenentId}}
Authorization: Bearer {{token}}