nestjs-base 1.0.23 → 1.0.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ export declare const CodeColumn: (comment?: string) => (target: any, propertyName: string) => void;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodeColumn = void 0;
4
+ const sequelize_typescript_1 = require("sequelize-typescript");
5
+ const CodeColumn = (comment = "代码") => {
6
+ return (target, propertyName) => {
7
+ (0, sequelize_typescript_1.Column)({
8
+ type: sequelize_typescript_1.DataType.STRING(16),
9
+ comment,
10
+ })(target, propertyName);
11
+ };
12
+ };
13
+ exports.CodeColumn = CodeColumn;
14
+ //# sourceMappingURL=code-column.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-column.js","sourceRoot":"","sources":["../../src/entities/code-column.ts"],"names":[],"mappings":";;;AAAA,+DAAwD;AAEjD,MAAM,UAAU,GAAG,CAAC,UAAkB,IAAI,EAAE,EAAE;IACnD,OAAO,CAAC,MAAW,EAAE,YAAoB,EAAE,EAAE;QAC3C,IAAA,6BAAM,EAAC;YACL,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;YACzB,OAAO;SACR,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,UAAU,cAOrB"}
@@ -0,0 +1 @@
1
+ export declare const CodeProperty: (description?: string) => (target: any, key: string) => void;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodeProperty = void 0;
4
+ const swagger_1 = require("@nestjs/swagger");
5
+ const CodeProperty = (description = "代码") => {
6
+ return (target, key) => {
7
+ (0, swagger_1.ApiProperty)({
8
+ description,
9
+ example: "VhJB95p5X85awbmK",
10
+ })(target, key);
11
+ };
12
+ };
13
+ exports.CodeProperty = CodeProperty;
14
+ //# sourceMappingURL=code-property.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-property.js","sourceRoot":"","sources":["../../src/entities/code-property.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAEvC,MAAM,YAAY,GAAG,CAAC,cAAsB,IAAI,EAAE,EAAE;IACzD,OAAO,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE;QAClC,IAAA,qBAAW,EAAC;YACV,WAAW;YACX,OAAO,EAAE,kBAAkB;SAC5B,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,YAAY,gBAOvB"}
@@ -5,7 +5,7 @@ const sequelize_typescript_1 = require("sequelize-typescript");
5
5
  const HashedPasswordColumn = (comment = "密码(加密后)") => {
6
6
  return (target, propertyName) => {
7
7
  (0, sequelize_typescript_1.Column)({
8
- type: sequelize_typescript_1.DataType.VIRTUAL,
8
+ type: sequelize_typescript_1.DataType.STRING(100),
9
9
  comment,
10
10
  })(target, propertyName);
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"hashed-password-column.js","sourceRoot":"","sources":["../../src/entities/hashed-password-column.ts"],"names":[],"mappings":";;;AAAA,+DAAwD;AAEjD,MAAM,oBAAoB,GAAG,CAAC,UAAkB,SAAS,EAAE,EAAE;IAClE,OAAO,CAAC,MAAW,EAAE,YAAoB,EAAE,EAAE;QAC3C,IAAA,6BAAM,EAAC;YACL,IAAI,EAAE,+BAAQ,CAAC,OAAO;YACtB,OAAO;SACR,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,oBAAoB,wBAO/B"}
1
+ {"version":3,"file":"hashed-password-column.js","sourceRoot":"","sources":["../../src/entities/hashed-password-column.ts"],"names":[],"mappings":";;;AAAA,+DAAwD;AAEjD,MAAM,oBAAoB,GAAG,CAAC,UAAkB,SAAS,EAAE,EAAE;IAClE,OAAO,CAAC,MAAW,EAAE,YAAoB,EAAE,EAAE;QAC3C,IAAA,6BAAM,EAAC;YACL,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,GAAG,CAAC;YAC1B,OAAO;SACR,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,oBAAoB,wBAO/B"}
package/dist/index.d.ts CHANGED
@@ -5,8 +5,9 @@ export * from "./dicts/gender.dict";
5
5
  export * from "./dicts/is.dict";
6
6
  export * from "./entities/add-snowflack-id-column";
7
7
  export * from "./entities/add-uuid-column";
8
+ export * from "./entities/code-column";
9
+ export * from "./entities/code-property";
8
10
  export * from "./entities/hashed-password-column";
9
- export * from "./entities/hashed-password-property";
10
11
  export * from "./entities/order-column";
11
12
  export * from "./entities/order-property";
12
13
  export * from "./entities/password-column";
package/dist/index.js CHANGED
@@ -21,8 +21,9 @@ __exportStar(require("./dicts/gender.dict"), exports);
21
21
  __exportStar(require("./dicts/is.dict"), exports);
22
22
  __exportStar(require("./entities/add-snowflack-id-column"), exports);
23
23
  __exportStar(require("./entities/add-uuid-column"), exports);
24
+ __exportStar(require("./entities/code-column"), exports);
25
+ __exportStar(require("./entities/code-property"), exports);
24
26
  __exportStar(require("./entities/hashed-password-column"), exports);
25
- __exportStar(require("./entities/hashed-password-property"), exports);
26
27
  __exportStar(require("./entities/order-column"), exports);
27
28
  __exportStar(require("./entities/order-property"), exports);
28
29
  __exportStar(require("./entities/password-column"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,kDAAgC;AAChC,qEAAmD;AACnD,6DAA2C;AAC3C,oEAAkD;AAClD,sEAAoD;AACpD,0DAAwC;AACxC,4DAA0C;AAC1C,6DAA2C;AAC3C,+DAA6C;AAC7C,wEAAsD;AACtD,0EAAwD;AACxD,mEAAiD;AACjD,iEAA+C;AAC/C,mEAAiD;AACjD,yDAAuC;AACvC,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,kDAAgC;AAChC,wDAAsC;AACtC,8DAA4C;AAC5C,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,2DAAyC;AACzC,2DAAyC;AACzC,iEAA+C;AAC/C,yEAAuD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,kDAAgC;AAChC,qEAAmD;AACnD,6DAA2C;AAC3C,yDAAuC;AACvC,2DAAyC;AACzC,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,6DAA2C;AAC3C,+DAA6C;AAC7C,wEAAsD;AACtD,0EAAwD;AACxD,mEAAiD;AACjD,iEAA+C;AAC/C,mEAAiD;AACjD,yDAAuC;AACvC,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,kDAAgC;AAChC,wDAAsC;AACtC,8DAA4C;AAC5C,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,2DAAyC;AACzC,2DAAyC;AACzC,iEAA+C;AAC/C,yEAAuD"}