docs: summary and text
This commit is contained in:
parent
b6d9e8447b
commit
f7d04d780e
1 changed files with 17 additions and 5 deletions
|
|
@ -322,10 +322,10 @@ export class StorageController extends Controller {
|
|||
}
|
||||
|
||||
/**
|
||||
* ยา้ยแฟ้มภายในตำแหน่งหนึ่งไปภายในอีกแฟ้มหนึ่ง
|
||||
* ย้ายแฟ้มภายในตำแหน่งหนึ่งไปภายในอีกแฟ้มหนึ่ง
|
||||
* หรือเปลี่ยนชื่อได้
|
||||
*
|
||||
* @summary ยา้ยแฟ้ม
|
||||
* @summary ย้ายแฟ้ม
|
||||
*/
|
||||
@Put("folder")
|
||||
@Tags("Storage Folder")
|
||||
|
|
@ -420,6 +420,9 @@ export class StorageController extends Controller {
|
|||
return this.setStatus(HttpStatusCode.NO_CONTENT);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary ร้องขอขนาดของแฟ้ม มีหน่อยเป็นไบต์
|
||||
*/
|
||||
@Post("folder/size")
|
||||
@Tags("Storage Folder")
|
||||
@Security("bearerAuth", ["management-role", "admin"])
|
||||
|
|
@ -432,7 +435,8 @@ export class StorageController extends Controller {
|
|||
}
|
||||
|
||||
/**
|
||||
* ลบ Folder ออกจากระบบ
|
||||
* ลบแฟ้มออกจากระบบ
|
||||
* @summary ลบแฟ้มออกจากระบบ
|
||||
*/
|
||||
@Delete("folder")
|
||||
@Tags("Storage Folder")
|
||||
|
|
@ -464,7 +468,9 @@ export class StorageController extends Controller {
|
|||
}
|
||||
|
||||
/**
|
||||
* ร้องขอการอัพโหลดไฟล์ โดยเมื่อร้องขอจะได้ URL สำหรับอัพโหลดไฟล์มาพร้อมข้อมูลของไฟล์ที่จะทำการอัพโหลด
|
||||
* ร้องขอการอัปโหลดไฟล์ โดยเมื่อร้องขอจะได้ URL สำหรับอัพโหลดไฟล์มาพร้อมข้อมูลของไฟล์ที่จะทำการอัพโหลด
|
||||
*
|
||||
* @summary ร้องขอการอัปโหลดไฟล์
|
||||
*/
|
||||
@Post("file")
|
||||
@Tags("Storage File")
|
||||
|
|
@ -558,6 +564,9 @@ export class StorageController extends Controller {
|
|||
return { ...metadata, uploadUrl: presignedUrl };
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary ย้ายไฟล์หรือเปลี่ยนชื่อไฟล์
|
||||
*/
|
||||
@Put("file")
|
||||
@Tags("Storage File")
|
||||
@Security("bearerAuth", ["management-role", "admin"])
|
||||
|
|
@ -722,7 +731,7 @@ export class StorageController extends Controller {
|
|||
}
|
||||
|
||||
/**
|
||||
* ลบ File ออกจากระบบ
|
||||
* @summary ลบไฟล์ออกจากระบบ
|
||||
*/
|
||||
@Delete("file")
|
||||
@Tags("Storage File")
|
||||
|
|
@ -746,6 +755,9 @@ export class StorageController extends Controller {
|
|||
return this.setStatus(HttpStatusCode.NO_CONTENT);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary ขอข้อมูลการโหลดไฟล์
|
||||
*/
|
||||
@Post("file/download")
|
||||
@Tags("Download")
|
||||
@Security("bearerAuth", ["management-role", "admin"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue