Add nestjs-paginate and more relationship

This commit is contained in:
2023-04-22 22:12:32 +08:00
parent 7be9dd3e89
commit 2d492f3263
19 changed files with 484 additions and 63 deletions

View File

@@ -37,13 +37,42 @@
"colId": "8a14d631-7522-4fcd-a3b8-9a68166e5496",
"containerId": "",
"name": "Get MySQL Comany Staffs",
"url": "http://localhost:3000/mysql-company/staffs/",
"url": "http://localhost:3000/mysql-company/staffs/?limit=1&select=id,name,staffCode,department.name,contract.title",
"method": "GET",
"sortNum": 15000,
"created": "2023-04-20T13:01:50.431Z",
"modified": "2023-04-20T13:17:36.471Z",
"modified": "2023-04-22T14:09:13.798Z",
"headers": [],
"params": [],
"params": [
{
"name": "limit",
"value": "1",
"isPath": false
},
{
"name": "select",
"value": "id,name,staffCode,department.name,contract.title",
"isPath": false
},
{
"name": "sortBy",
"value": "department.name:DESC",
"isDisabled": true,
"isPath": false
},
{
"name": "sortBy",
"value": "name:ASC",
"isDisabled": true,
"isPath": false
},
{
"name": "filter.department.name",
"value": "$ilike:Brown",
"isDisabled": true,
"isPath": false
}
],
"tests": []
},
{
@@ -51,13 +80,61 @@
"colId": "8a14d631-7522-4fcd-a3b8-9a68166e5496",
"containerId": "",
"name": "Get MySQL Comany Departments",
"url": "http://localhost:3000/ormmongo-company/staffs",
"url": "http://localhost:3000/mysql-company/departments/",
"method": "GET",
"sortNum": 17500,
"created": "2023-04-20T13:17:46.507Z",
"modified": "2023-04-20T15:00:49.647Z",
"modified": "2023-04-22T08:37:35.984Z",
"headers": [],
"params": [],
"tests": []
},
{
"_id": "e4920ab9-8552-46d1-9431-a3aaaa187cce",
"colId": "8a14d631-7522-4fcd-a3b8-9a68166e5496",
"containerId": "",
"name": "Create MySQL Comany Staff",
"url": "http://localhost:3000/mysql-company/staffs/",
"method": "POST",
"sortNum": 16250,
"created": "2023-04-22T04:22:32.924Z",
"modified": "2023-04-22T13:45:24.200Z",
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"params": [],
"body": {
"type": "json",
"raw": "{\n \"name\":\"{{#name}}\",\n \"department\":{ \"id\":2 },\n \"contract\": { \"title\":\"ZYX\" }\n}",
"form": []
},
"tests": []
},
{
"_id": "97997fc9-e49a-4a96-871b-6292c92c7567",
"colId": "8a14d631-7522-4fcd-a3b8-9a68166e5496",
"containerId": "",
"name": "Create MySQL Comany Department",
"url": "http://localhost:3000/mysql-company/departments/",
"method": "POST",
"sortNum": 16875,
"created": "2023-04-22T07:37:29.132Z",
"modified": "2023-04-22T07:38:11.328Z",
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"params": [],
"body": {
"type": "json",
"raw": "{\n \"name\": \"Dept: {{#name}}\"\n}",
"form": []
},
"tests": []
}
]