Modify: use pure tree structure in file system scheme

This commit is contained in:
HFO4
2019-12-07 19:47:22 +08:00
parent 10a2ef4267
commit 56b1ae9f31
13 changed files with 1728 additions and 1620 deletions

View File

@@ -124,7 +124,7 @@ func TestObjectDelete(t *testing.T) {
// 路径不存在,返回无错误
{
GetRequest: func() *http.Request {
body := explorer.ItemService{
body := explorer.ItemServiceTemp{
Items: []string{"/TestObjectDelete.txt"},
}
bodyStr, _ := json.Marshal(body)
@@ -141,7 +141,7 @@ func TestObjectDelete(t *testing.T) {
{
Mock: []string{"INSERT INTO `files` (`id`, `created_at`, `updated_at`, `deleted_at`, `name`, `source_name`, `user_id`, `size`, `pic_info`, `folder_id`, `policy_id`, `dir`) VALUES(5, '2019-11-30 07:08:33', '2019-11-30 07:08:33', NULL, 'pigeon.zip', '65azil3B_pigeon.zip', 1, 1667217, '', 1, 1, '/');"},
GetRequest: func() *http.Request {
body := explorer.ItemService{
body := explorer.ItemServiceTemp{
Items: []string{"/pigeon.zip"},
}
bodyStr, _ := json.Marshal(body)