Skip to content

Commit 8cf4323

Browse files
committed
feat(session): add remark
1 parent 22edae0 commit 8cf4323

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

openapi.json

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"hash": "3585f972f863d385615370bca5855850c404d7b5d1e8aff5b58464e237b49f00",
2+
"hash": "dee4ddd1836e5c85e22df23fb64364c4680ee27ca1b5bf56d5cae306f8926dc0",
33
"openapi": "3.0.0",
44
"paths": {
55
"/hello": {
@@ -2340,6 +2340,15 @@
23402340
"type": "boolean"
23412341
}
23422342
},
2343+
{
2344+
"name": "remark",
2345+
"required": false,
2346+
"in": "query",
2347+
"description": "备注",
2348+
"schema": {
2349+
"type": "string"
2350+
}
2351+
},
23432352
{
23442353
"name": "_limit",
23452354
"required": false,
@@ -2496,6 +2505,15 @@
24962505
"type": "boolean"
24972506
}
24982507
},
2508+
{
2509+
"name": "remark",
2510+
"required": false,
2511+
"in": "query",
2512+
"description": "备注",
2513+
"schema": {
2514+
"type": "string"
2515+
}
2516+
},
24992517
{
25002518
"name": "_limit",
25012519
"required": false,
@@ -5438,6 +5456,10 @@
54385456
"type": "boolean",
54395457
"description": "一次性的,禁止轮换"
54405458
},
5459+
"remark": {
5460+
"type": "string",
5461+
"description": "备注"
5462+
},
54415463
"id": {
54425464
"type": "string",
54435465
"description": "Entity id"
@@ -6638,6 +6660,10 @@
66386660
"oneTimeUse": {
66396661
"type": "boolean",
66406662
"description": "一次性的,禁止轮换"
6663+
},
6664+
"remark": {
6665+
"type": "string",
6666+
"description": "备注"
66416667
}
66426668
},
66436669
"required": [
@@ -6698,6 +6724,10 @@
66986724
"type": "boolean",
66996725
"description": "一次性的,禁止轮换"
67006726
},
6727+
"remark": {
6728+
"type": "string",
6729+
"description": "备注"
6730+
},
67016731
"id": {
67026732
"type": "string",
67036733
"description": "Entity id"
@@ -6776,6 +6806,10 @@
67766806
"oneTimeUse": {
67776807
"type": "boolean",
67786808
"description": "一次性的,禁止轮换"
6809+
},
6810+
"remark": {
6811+
"type": "string",
6812+
"description": "备注"
67796813
}
67806814
}
67816815
},
@@ -8182,6 +8216,10 @@
81828216
"type": "boolean",
81838217
"description": "一次性的,禁止轮换"
81848218
},
8219+
"remark": {
8220+
"type": "string",
8221+
"description": "备注"
8222+
},
81858223
"_limit": {
81868224
"type": "number",
81878225
"description": "分页大小"

src/session/entities/session.entity.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ export class SessionDoc {
9292
@IsBoolean()
9393
@Prop()
9494
oneTimeUse?: boolean;
95+
96+
/**
97+
* 备注
98+
*/
99+
@IsOptional()
100+
@IsString()
101+
@Prop()
102+
remark?: string;
95103
}
96104

97105
class SessionDocMethods {

0 commit comments

Comments
 (0)