feat: folder size

This commit is contained in:
Methapon2001 2023-12-07 15:45:03 +07:00
parent 8f42584423
commit 0a1265b78c
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
6 changed files with 431 additions and 0 deletions

View file

@ -375,6 +375,51 @@
]
}
},
"/cabinet/{cabinetName}/size": {
"get": {
"operationId": "Calc",
"responses": {
"200": {
"description": "สำเร็จ",
"content": {
"application/json": {
"schema": {
"properties": {
"size": {
"type": "number",
"format": "double"
}
},
"required": [
"size"
],
"type": "object"
}
}
}
}
},
"tags": [
"ตู้เอกสาร"
],
"security": [
{
"bearerAuth": []
}
],
"parameters": [
{
"in": "path",
"name": "cabinetName",
"required": true,
"schema": {
"type": "string"
},
"example": "ตู้เอกสาร 1"
}
]
}
},
"/cabinet/{cabinetName}/drawer": {
"get": {
"operationId": "ListDrawer",
@ -592,6 +637,60 @@
]
}
},
"/cabinet/{cabinetName}/drawer/{drawerName}/size": {
"get": {
"operationId": "Calc",
"responses": {
"200": {
"description": "สำเร็จ",
"content": {
"application/json": {
"schema": {
"properties": {
"size": {
"type": "number",
"format": "double"
}
},
"required": [
"size"
],
"type": "object"
}
}
}
}
},
"tags": [
"ลิ้นชัก"
],
"security": [
{
"bearerAuth": []
}
],
"parameters": [
{
"in": "path",
"name": "cabinetName",
"required": true,
"schema": {
"type": "string"
},
"example": "ตู้เอกสาร 1"
},
{
"in": "path",
"name": "drawerName",
"required": true,
"schema": {
"type": "string"
},
"example": "ลิ้นชัก 1"
}
]
}
},
"/cabinet/{cabinetName}/drawer/{drawerName}/folder/{folderName}/file": {
"get": {
"operationId": "GetFile",
@ -1461,6 +1560,69 @@
]
}
},
"/cabinet/{cabinetName}/drawer/{drawerName}/folder/{folderName}/size": {
"get": {
"operationId": "Calc",
"responses": {
"200": {
"description": "สำเร็จ",
"content": {
"application/json": {
"schema": {
"properties": {
"size": {
"type": "number",
"format": "double"
}
},
"required": [
"size"
],
"type": "object"
}
}
}
}
},
"tags": [
"แฟ้ม"
],
"security": [
{
"bearerAuth": []
}
],
"parameters": [
{
"in": "path",
"name": "cabinetName",
"required": true,
"schema": {
"type": "string"
},
"example": "ตู้เอกสาร 1"
},
{
"in": "path",
"name": "drawerName",
"required": true,
"schema": {
"type": "string"
},
"example": "ลิ้นชัก 1"
},
{
"in": "path",
"name": "folderName",
"required": true,
"schema": {
"type": "string"
},
"example": "แฟ้ม 1"
}
]
}
},
"/search": {
"post": {
"operationId": "SearchFile",
@ -1788,6 +1950,78 @@
]
}
},
"/cabinet/{cabinetName}/drawer/{drawerName}/folder/{folderName}/subfolder/{subFolderName}/size": {
"get": {
"operationId": "Calc",
"responses": {
"200": {
"description": "สำเร็จ",
"content": {
"application/json": {
"schema": {
"properties": {
"size": {
"type": "number",
"format": "double"
}
},
"required": [
"size"
],
"type": "object"
}
}
}
}
},
"tags": [
"แฟ้มย่อย"
],
"security": [
{
"bearerAuth": []
}
],
"parameters": [
{
"in": "path",
"name": "cabinetName",
"required": true,
"schema": {
"type": "string"
},
"example": "ตู้เอกสาร 1"
},
{
"in": "path",
"name": "drawerName",
"required": true,
"schema": {
"type": "string"
},
"example": "ลิ้นชัก 1"
},
{
"in": "path",
"name": "folderName",
"required": true,
"schema": {
"type": "string"
},
"example": "แฟ้ม 1"
},
{
"in": "path",
"name": "subFolderName",
"required": true,
"schema": {
"type": "string"
},
"example": "แฟ้มย่อย 1"
}
]
}
},
"/cabinet/{cabinetName}/drawer/{drawerName}/folder/{folderName}/subfolder/{subFolderName}/file": {
"get": {
"operationId": "GetFile",