1 | "use strict";
|
2 | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7 | };
|
8 | var __metadata = (this && this.__metadata) || function (k, v) {
|
9 | if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10 | };
|
11 | const decorators_1 = require('../mongoose/decorators');
|
12 |
|
13 | class Session {
|
14 | }
|
15 | __decorate([
|
16 | decorators_1.field(),
|
17 | __metadata('design:type', String)
|
18 | ], Session.prototype, "sessionId", void 0);
|
19 | __decorate([
|
20 | decorators_1.field(),
|
21 | __metadata('design:type', String)
|
22 | ], Session.prototype, "userName", void 0);
|
23 | __decorate([
|
24 | decorators_1.field(),
|
25 | __metadata('design:type', String)
|
26 | ], Session.prototype, "role", void 0);
|
27 | __decorate([
|
28 | decorators_1.field(),
|
29 | __metadata('design:type', Number)
|
30 | ], Session.prototype, "userId", void 0);
|
31 | exports.Session = Session;
|
32 | Object.defineProperty(exports, "__esModule", { value: true });
|
33 | exports.default = Session;
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|