refactor: rabbitmq implement
This commit is contained in:
parent
24350a11a4
commit
3fc70daed0
12 changed files with 676 additions and 545 deletions
|
|
@ -79,6 +79,9 @@
|
|||
},
|
||||
"type": "array"
|
||||
},
|
||||
"upload": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"updatedAt": {
|
||||
"anyOf": [
|
||||
{
|
||||
|
|
@ -117,6 +120,7 @@
|
|||
"description",
|
||||
"category",
|
||||
"keyword",
|
||||
"upload",
|
||||
"updatedAt",
|
||||
"updatedBy",
|
||||
"createdAt",
|
||||
|
|
@ -178,9 +182,9 @@
|
|||
}
|
||||
},
|
||||
"info": {
|
||||
"title": "BMA EHR - Test Service API",
|
||||
"version": "0.0.1",
|
||||
"description": "Best practice for initialize express project",
|
||||
"title": "Enterprise Document Management(EDM) - API",
|
||||
"version": "0.0.2",
|
||||
"description": "Open API Specfication for Enterprise Document Management ",
|
||||
"license": {
|
||||
"name": "by Frappet",
|
||||
"url": "https://frappet.com"
|
||||
|
|
@ -193,7 +197,7 @@
|
|||
"operationId": "ListCabinet",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"description": "สำเร็จ",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
|
|
@ -204,19 +208,9 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"Cabinet"
|
||||
],
|
||||
"security": [],
|
||||
"parameters": []
|
||||
},
|
||||
"post": {
|
||||
"operationId": "CreateCabinet",
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": ""
|
||||
},
|
||||
"500": {
|
||||
"description": "เกิดข้อผิดพลาด ไม่สามารถแสดงรายการตู้เอกสารได้ กรุณาลองใหม่ในภายหลัง"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -227,6 +221,28 @@
|
|||
"bearerAuth": []
|
||||
}
|
||||
],
|
||||
"parameters": []
|
||||
},
|
||||
"post": {
|
||||
"operationId": "CreateCabinet",
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "สำเร็จ"
|
||||
},
|
||||
"500": {
|
||||
"description": "เกิดข้อผิดพลาดกับระบบจัดการไฟล์"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"Cabinet"
|
||||
],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"parameters": [],
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
|
|
@ -253,7 +269,10 @@
|
|||
"operationId": "EditCabinet",
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "Success"
|
||||
"description": "สำเร็จ"
|
||||
},
|
||||
"500": {
|
||||
"description": "เกิดข้อผิดพลาดไม่สามารถย้ายไฟล์ได้"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -261,7 +280,9 @@
|
|||
],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
"bearerAuth": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
|
|
@ -297,12 +318,10 @@
|
|||
"operationId": "DeleteCabinet",
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
"description": "สำเร็จ"
|
||||
},
|
||||
"500": {
|
||||
"description": "เกิดข้อผิดพลาด ไม่สามารถลบไฟล์ได้"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -310,7 +329,9 @@
|
|||
],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
"bearerAuth": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
|
|
@ -330,7 +351,7 @@
|
|||
"operationId": "ListDrawer",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"description": "สำเร็จ",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
|
|
@ -341,12 +362,19 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "เกิดข้อผิดพลาด ไม่สามารถแสดงรายการลิ้นชักได้ กรุณาลองใหม่ในภายหลัง"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"Drawer"
|
||||
],
|
||||
"security": [],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
|
|
@ -362,7 +390,13 @@
|
|||
"operationId": "CreateDrawer",
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": ""
|
||||
"description": "สำเร็จ"
|
||||
},
|
||||
"404": {
|
||||
"description": "ไม่พบลิ้นชัก"
|
||||
},
|
||||
"500": {
|
||||
"description": "เกิดข้อผิดพลาดกับระบบจัดการไฟล์"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -370,7 +404,9 @@
|
|||
],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
"bearerAuth": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
|
|
@ -408,7 +444,10 @@
|
|||
"operationId": "EditDrawer",
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": ""
|
||||
"description": "สำเร็จ"
|
||||
},
|
||||
"500": {
|
||||
"description": "เกิดข้อผิดพลาดไม่สามารถย้ายไฟล์ได้"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -416,7 +455,9 @@
|
|||
],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
"bearerAuth": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
|
|
@ -460,12 +501,7 @@
|
|||
"operationId": "DeleteDrawer",
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
"description": "สำเร็จ"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -473,7 +509,9 @@
|
|||
],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
"bearerAuth": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
|
|
@ -501,7 +539,74 @@
|
|||
"operationId": "UploadFile",
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": ""
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"properties": {
|
||||
"keyword": {
|
||||
"type": "string"
|
||||
},
|
||||
"category": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"file": {
|
||||
"type": "string"
|
||||
},
|
||||
"upload": {
|
||||
"type": "string"
|
||||
},
|
||||
"updatedBy": {
|
||||
"type": "string"
|
||||
},
|
||||
"updatedAt": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
]
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "string"
|
||||
},
|
||||
"createdAt": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"keyword",
|
||||
"category",
|
||||
"description",
|
||||
"title",
|
||||
"file",
|
||||
"upload",
|
||||
"updatedBy",
|
||||
"updatedAt",
|
||||
"createdBy",
|
||||
"createdAt"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -541,34 +646,33 @@
|
|||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"multipart/form-data": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"file": {
|
||||
"type": "string",
|
||||
"format": "binary"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"keyword": {
|
||||
"type": "string"
|
||||
},
|
||||
"category": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"file": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"file",
|
||||
"title",
|
||||
"description",
|
||||
"keyword",
|
||||
"category"
|
||||
]
|
||||
"category",
|
||||
"description",
|
||||
"title",
|
||||
"file"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -628,7 +732,27 @@
|
|||
"operationId": "UpdateFile",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": ""
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{},
|
||||
{
|
||||
"properties": {
|
||||
"upload": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"upload"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -674,29 +798,28 @@
|
|||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"required": false,
|
||||
"required": true,
|
||||
"content": {
|
||||
"multipart/form-data": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"file": {
|
||||
"type": "string",
|
||||
"format": "binary"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"keyword": {
|
||||
"type": "string"
|
||||
},
|
||||
"category": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"file": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -789,6 +912,9 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"upload": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"keyword": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
|
|
@ -829,6 +955,7 @@
|
|||
"createdAt",
|
||||
"updatedBy",
|
||||
"updatedAt",
|
||||
"upload",
|
||||
"keyword",
|
||||
"category",
|
||||
"description",
|
||||
|
|
@ -890,7 +1017,7 @@
|
|||
"operationId": "ListFolder",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"description": "สำเร็จ",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
|
|
@ -901,12 +1028,19 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "เกิดข้อผิดพลาด ไม่สามารถแสดงรายการแฟ้มได้ กรุณาลองใหม่ในภายหลัง"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"Folder"
|
||||
],
|
||||
"security": [],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
|
|
@ -930,7 +1064,13 @@
|
|||
"operationId": "CreateFolder",
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": ""
|
||||
"description": "สำเร็จ"
|
||||
},
|
||||
"404": {
|
||||
"description": "ไม่พบของแฟ้ม"
|
||||
},
|
||||
"500": {
|
||||
"description": "เกิดข้อผิดพลาดกับระบบจัดการไฟล์"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -938,7 +1078,9 @@
|
|||
],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
"bearerAuth": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
|
|
@ -984,7 +1126,10 @@
|
|||
"operationId": "EditFolder",
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": ""
|
||||
"description": "สำเร็จ"
|
||||
},
|
||||
"500": {
|
||||
"description": "เกิดข้อผิดพลาดไม่สามารถย้ายไฟล์ได้"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -992,7 +1137,9 @@
|
|||
],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
"bearerAuth": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
|
|
@ -1044,12 +1191,7 @@
|
|||
"operationId": "DeleteFolder",
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
"description": "สำเร็จ"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -1057,7 +1199,9 @@
|
|||
],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
"bearerAuth": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
|
|
@ -1128,7 +1272,7 @@
|
|||
"operationId": "ListFolder",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"description": "สำเร็จ",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
|
|
@ -1139,12 +1283,19 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "เกิดข้อผิดพลาด ไม่สามารถแสดงรายการแฟ้มได้ กรุณาลองใหม่ในภายหลัง"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"SubFolder"
|
||||
],
|
||||
"security": [],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
|
|
@ -1176,7 +1327,13 @@
|
|||
"operationId": "CreateFolder",
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": ""
|
||||
"description": "สำเร็จ"
|
||||
},
|
||||
"404": {
|
||||
"description": "ไม่พบของแฟ้ม"
|
||||
},
|
||||
"500": {
|
||||
"description": "เกิดข้อผิดพลาดกับระบบจัดการไฟล์"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -1184,7 +1341,9 @@
|
|||
],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
"bearerAuth": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
|
|
@ -1238,7 +1397,10 @@
|
|||
"operationId": "EditFolder",
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": ""
|
||||
"description": "สำเร็จ"
|
||||
},
|
||||
"500": {
|
||||
"description": "เกิดข้อผิดพลาดไม่สามารถย้ายไฟล์ได้"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -1246,7 +1408,9 @@
|
|||
],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
"bearerAuth": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
|
|
@ -1306,12 +1470,7 @@
|
|||
"operationId": "DeleteFolder",
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
"description": "สำเร็จ"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -1319,7 +1478,9 @@
|
|||
],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
"bearerAuth": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
|
|
@ -1482,6 +1643,9 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"upload": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"keyword": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
|
|
@ -1519,6 +1683,7 @@
|
|||
"createdAt",
|
||||
"updatedBy",
|
||||
"updatedAt",
|
||||
"upload",
|
||||
"keyword",
|
||||
"category",
|
||||
"description",
|
||||
|
|
@ -1758,6 +1923,9 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"upload": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"keyword": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
|
|
@ -1798,6 +1966,7 @@
|
|||
"createdAt",
|
||||
"updatedBy",
|
||||
"updatedAt",
|
||||
"upload",
|
||||
"keyword",
|
||||
"category",
|
||||
"description",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue