nestjs-base 1.0.24 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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"}
package/dist/index.d.ts CHANGED
@@ -5,6 +5,8 @@ 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
11
  export * from "./entities/order-column";
10
12
  export * from "./entities/order-property";
package/dist/index.js CHANGED
@@ -21,6 +21,8 @@ __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
27
  __exportStar(require("./entities/order-column"), exports);
26
28
  __exportStar(require("./entities/order-property"), 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,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"}