m
This commit is contained in:
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
declare const entities: any[];
|
||||
export { entities };
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.entities = void 0;
|
||||
const glob_1 = require("glob");
|
||||
const path_1 = require("path");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const p = (0, path_1.join)(__dirname, '../model/**/*.model.{j,t}s');
|
||||
const files = glob_1.glob.sync(p);
|
||||
const entities = [];
|
||||
exports.entities = entities;
|
||||
files.map((file) => {
|
||||
const ms = require(file);
|
||||
for (let k in ms) {
|
||||
const entitie = ms[k];
|
||||
if (entitie.prototype instanceof _base_model_1.BaseModel) {
|
||||
entities.push(entitie);
|
||||
}
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=_.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"_.js","sourceRoot":"","sources":["../../src/model/_.ts"],"names":[],"mappings":";;;AAIA,+BAA4B;AAC5B,+BAA4B;AAC5B,+CAA0C;AAE1C,MAAM,CAAC,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,4BAA4B,CAAC,CAAC;AACxD,MAAM,KAAK,GAAG,WAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3B,MAAM,QAAQ,GAAU,EAAE,CAAC;AAWlB,4BAAQ;AAVjB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;IACjB,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,KAAK,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;QACjB,MAAM,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QACtB,IAAI,OAAO,CAAC,SAAS,YAAY,uBAAS,EAAE,CAAC;YAC3C,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;AACH,CAAC,CAAC,CAAC"}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
export declare class BaseModel {
|
||||
id: number;
|
||||
createTime: string;
|
||||
updateTime: string;
|
||||
deleteTime?: string;
|
||||
}
|
||||
Vendored
+57
@@ -0,0 +1,57 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.BaseModel = void 0;
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const typeorm_1 = require("typeorm");
|
||||
class BaseModel {
|
||||
id;
|
||||
createTime;
|
||||
updateTime;
|
||||
deleteTime;
|
||||
}
|
||||
exports.BaseModel = BaseModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: 'ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.PrimaryGeneratedColumn)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: 'ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], BaseModel.prototype, "id", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '创建时间' }),
|
||||
(0, typeorm_1.CreateDateColumn)({
|
||||
comment: '创建时间',
|
||||
type: 'datetime',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], BaseModel.prototype, "createTime", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '更新时间' }),
|
||||
(0, typeorm_1.UpdateDateColumn)({
|
||||
comment: '更新时间',
|
||||
type: 'datetime',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], BaseModel.prototype, "updateTime", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.DeleteDateColumn)({
|
||||
comment: '删除时间',
|
||||
type: 'datetime',
|
||||
select: false,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], BaseModel.prototype, "deleteTime", void 0);
|
||||
//# sourceMappingURL=_base_model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"_base_model.js","sourceRoot":"","sources":["../../src/model/_base_model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAwC;AACxC,qCAKiB;AAEjB,MAAa,SAAS;IAQb,EAAE,CAAS;IAOX,UAAU,CAAS;IAOnB,UAAU,CAAS;IAOnB,UAAU,CAAU;CAC5B;AA9BD,8BA8BC;AAtBQ;IAPN,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAClC,IAAA,uBAAK,GAAE;IACP,IAAA,gCAAsB,EAAC;QACtB,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACd,CAAC;;qCACgB;AAOX;IALN,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,0BAAgB,EAAC;QAChB,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,UAAU;KACjB,CAAC;;6CACwB;AAOnB;IALN,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,0BAAgB,EAAC;QAChB,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,UAAU;KACjB,CAAC;;6CACwB;AAOnB;IALN,IAAA,0BAAgB,EAAC;QAChB,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,KAAK;KACd,CAAC;;6CACyB"}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
export declare class AdminModel extends BaseModel {
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
Vendored
+51
@@ -0,0 +1,51 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AdminModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
let AdminModel = class AdminModel extends _base_model_1.BaseModel {
|
||||
username;
|
||||
password;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { username: { required: true, type: () => String }, password: { required: true, type: () => String } };
|
||||
}
|
||||
};
|
||||
exports.AdminModel = AdminModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户名', nullable: true }),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '用户名',
|
||||
length: 255,
|
||||
type: 'varchar',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], AdminModel.prototype, "username", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '密码', nullable: true }),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '密码',
|
||||
length: 255,
|
||||
type: 'varchar',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], AdminModel.prototype, "password", void 0);
|
||||
exports.AdminModel = AdminModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '系统管理员',
|
||||
})
|
||||
], AdminModel);
|
||||
//# sourceMappingURL=admin.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"admin.model.js","sourceRoot":"","sources":["../../src/model/admin.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAyC;AACzC,+CAA0C;AAC1C,6CAA8C;AAC9C,qDAA6C;AAKtC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,uBAAS;IAQhC,QAAQ,CAAS;IASjB,QAAQ,CAAS;;;;CACzB,CAAA;AAlBY,gCAAU;AAQd;IAPN,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACnD,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,GAAG;QACX,IAAI,EAAE,SAAS;KAChB,CAAC;;4CACsB;AASjB;IAPN,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAClD,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,GAAG;QACX,IAAI,EAAE,SAAS;KAChB,CAAC;;4CACsB;qBAjBb,UAAU;IAHtB,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,OAAO;KACjB,CAAC;GACW,UAAU,CAkBtB"}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
export declare enum SystemType {
|
||||
Android = 1,
|
||||
Ios = 2
|
||||
}
|
||||
export declare class AppVersionModel extends BaseModel {
|
||||
title: string;
|
||||
latestVersion: string;
|
||||
systemType: SystemType;
|
||||
downloadUrl: string;
|
||||
}
|
||||
Vendored
+80
@@ -0,0 +1,80 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AppVersionModel = exports.SystemType = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
var SystemType;
|
||||
(function (SystemType) {
|
||||
SystemType[SystemType["Android"] = 1] = "Android";
|
||||
SystemType[SystemType["Ios"] = 2] = "Ios";
|
||||
})(SystemType || (exports.SystemType = SystemType = {}));
|
||||
let AppVersionModel = class AppVersionModel extends _base_model_1.BaseModel {
|
||||
title;
|
||||
latestVersion;
|
||||
systemType;
|
||||
downloadUrl;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { title: { required: true, type: () => String }, latestVersion: { required: true, type: () => String }, systemType: { required: true, enum: require("./app_version.model").SystemType }, downloadUrl: { required: true, type: () => String } };
|
||||
}
|
||||
};
|
||||
exports.AppVersionModel = AppVersionModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '标题' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '标题',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], AppVersionModel.prototype, "title", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '最新版本号' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '最新版本号',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], AppVersionModel.prototype, "latestVersion", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '系统类型:1=Android,2=iOS',
|
||||
enum: SystemType,
|
||||
}),
|
||||
(0, class_validator_1.IsEnum)(SystemType),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '系统类型:1=Android,2=iOS',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], AppVersionModel.prototype, "systemType", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '下载链接' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '下载链接',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], AppVersionModel.prototype, "downloadUrl", void 0);
|
||||
exports.AppVersionModel = AppVersionModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: 'App 版本',
|
||||
})
|
||||
], AppVersionModel);
|
||||
//# sourceMappingURL=app_version.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"app_version.model.js","sourceRoot":"","sources":["../../src/model/app_version.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAyC;AACzC,+CAA0C;AAC1C,6CAA8C;AAC9C,qDAA+D;AAK/D,IAAY,UAKX;AALD,WAAY,UAAU;IAEpB,iDAAW,CAAA;IAEX,yCAAO,CAAA;AACT,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;AAKM,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,uBAAS;IAQ5C,KAAK,CAAS;IASd,aAAa,CAAS;IAWtB,UAAU,CAAa;IASvB,WAAW,CAAS;;;;CACrB,CAAA;AAtCY,0CAAe;AAQ1B;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAClC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;KACd,CAAC;;8CACY;AASd;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;IACrC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,OAAO;KACjB,CAAC;;sDACoB;AAWtB;IATC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,UAAU;KACjB,CAAC;IACD,IAAA,wBAAM,EAAC,UAAU,CAAC;IAClB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,sBAAsB;KAChC,CAAC;;mDACqB;AASvB;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,MAAM;KAChB,CAAC;;oDACkB;0BArCT,eAAe;IAH3B,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,QAAQ;KAClB,CAAC;GACW,eAAe,CAsC3B"}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
export declare class DailyMeetingModel extends BaseModel {
|
||||
title: string;
|
||||
description: string;
|
||||
liveUrl: string;
|
||||
remark?: string;
|
||||
}
|
||||
Vendored
+74
@@ -0,0 +1,74 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DailyMeetingModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const api_optional_decorator_1 = require("../app/common/decorator/api_optional.decorator");
|
||||
let DailyMeetingModel = class DailyMeetingModel extends _base_model_1.BaseModel {
|
||||
title;
|
||||
description;
|
||||
liveUrl;
|
||||
remark;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { title: { required: true, type: () => String }, description: { required: true, type: () => String }, liveUrl: { required: true, type: () => String }, remark: { required: false, type: () => String } };
|
||||
}
|
||||
};
|
||||
exports.DailyMeetingModel = DailyMeetingModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '标题' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '标题',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], DailyMeetingModel.prototype, "title", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '会议介绍' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'text',
|
||||
comment: '会议介绍',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], DailyMeetingModel.prototype, "description", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '会议直播地址' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '会议直播地址',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], DailyMeetingModel.prototype, "liveUrl", void 0);
|
||||
__decorate([
|
||||
(0, api_optional_decorator_1.ApiOptional)({ description: '备注', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '备注',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], DailyMeetingModel.prototype, "remark", void 0);
|
||||
exports.DailyMeetingModel = DailyMeetingModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '每日会议',
|
||||
})
|
||||
], DailyMeetingModel);
|
||||
//# sourceMappingURL=daily_meeting.model.js.map
|
||||
+1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7B,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,MAAM;KAChB,CAAC;GACW,iBAAiB,CAoC7B"}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
export declare class DailyMeetingStatsModel extends BaseModel {
|
||||
device: string;
|
||||
date: string;
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DailyMeetingStatsModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
let DailyMeetingStatsModel = class DailyMeetingStatsModel extends _base_model_1.BaseModel {
|
||||
device;
|
||||
date;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { device: { required: true, type: () => String }, date: { required: true, type: () => String } };
|
||||
}
|
||||
};
|
||||
exports.DailyMeetingStatsModel = DailyMeetingStatsModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '参加会议的设备号' }),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '参加会议的设备号',
|
||||
type: 'varchar',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], DailyMeetingStatsModel.prototype, "device", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '参加会议日期' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'date',
|
||||
comment: '参加会议日期',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], DailyMeetingStatsModel.prototype, "date", void 0);
|
||||
exports.DailyMeetingStatsModel = DailyMeetingStatsModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '参会统计',
|
||||
}),
|
||||
(0, typeorm_1.Unique)(['device', 'date'])
|
||||
], DailyMeetingStatsModel);
|
||||
//# sourceMappingURL=daily_meeting_stats.model.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"daily_meeting_stats.model.js","sourceRoot":"","sources":["../../src/model/daily_meeting_stats.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAiD;AACjD,+CAA0C;AAC1C,6CAA8C;AAMvC,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,uBAAS;IAM5C,MAAM,CAAS;IAOtB,IAAI,CAAS;;;;CACd,CAAA;AAdY,wDAAsB;AAM1B;IALN,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;IACxC,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,UAAU;QACnB,IAAI,EAAE,SAAS;KAChB,CAAC;;sDACoB;AAOtB;IALC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;IACtC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,QAAQ;KAClB,CAAC;;oDACW;iCAbF,sBAAsB;IAJlC,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;GACd,sBAAsB,CAclC"}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
export declare enum DocumentType {
|
||||
ServiceAgreement = 1,
|
||||
PrivacyPolicy = 2
|
||||
}
|
||||
export declare class DocumentModel extends BaseModel {
|
||||
title: string;
|
||||
content: string;
|
||||
publishTime: string;
|
||||
type: DocumentType;
|
||||
}
|
||||
Vendored
+79
@@ -0,0 +1,79 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DocumentModel = exports.DocumentType = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
var DocumentType;
|
||||
(function (DocumentType) {
|
||||
DocumentType[DocumentType["ServiceAgreement"] = 1] = "ServiceAgreement";
|
||||
DocumentType[DocumentType["PrivacyPolicy"] = 2] = "PrivacyPolicy";
|
||||
})(DocumentType || (exports.DocumentType = DocumentType = {}));
|
||||
let DocumentModel = class DocumentModel extends _base_model_1.BaseModel {
|
||||
title;
|
||||
content;
|
||||
publishTime;
|
||||
type;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { title: { required: true, type: () => String }, content: { required: true, type: () => String }, publishTime: { required: true, type: () => String }, type: { required: true, enum: require("./document.model").DocumentType } };
|
||||
}
|
||||
};
|
||||
exports.DocumentModel = DocumentModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '标题' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '标题',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], DocumentModel.prototype, "title", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '文档库内容' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'text',
|
||||
comment: '文档库内容',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], DocumentModel.prototype, "content", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '发布时间' }),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'datetime',
|
||||
comment: '发布时间',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], DocumentModel.prototype, "publishTime", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '类型:1=服务协议,2=隐私协议',
|
||||
enum: DocumentType,
|
||||
}),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '类型:1=服务协议,2=隐私协议',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], DocumentModel.prototype, "type", void 0);
|
||||
exports.DocumentModel = DocumentModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '文档库',
|
||||
})
|
||||
], DocumentModel);
|
||||
//# sourceMappingURL=document.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"document.model.js","sourceRoot":"","sources":["../../src/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C;QACN,OAAO,EAAE,KAAK;KACf,CAAC;GACW,aAAa,CAqCzB"}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
export declare class FinancialProductModel extends BaseModel {
|
||||
name: string;
|
||||
period: number;
|
||||
principal: string;
|
||||
yieldRate: string;
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.FinancialProductModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
let FinancialProductModel = class FinancialProductModel extends _base_model_1.BaseModel {
|
||||
name;
|
||||
period;
|
||||
principal;
|
||||
yieldRate;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { name: { required: true, type: () => String }, period: { required: true, type: () => Number }, principal: { required: true, type: () => String }, yieldRate: { required: true, type: () => String } };
|
||||
}
|
||||
};
|
||||
exports.FinancialProductModel = FinancialProductModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '名称' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '名称',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], FinancialProductModel.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '周期(单位:天)' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '周期(单位:天)',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], FinancialProductModel.prototype, "period", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '本金' }),
|
||||
(0, class_validator_1.IsDecimal)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
comment: '本金',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], FinancialProductModel.prototype, "principal", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '收益率(%)' }),
|
||||
(0, class_validator_1.IsDecimal)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 4,
|
||||
comment: '收益率(%)',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], FinancialProductModel.prototype, "yieldRate", void 0);
|
||||
exports.FinancialProductModel = FinancialProductModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '理财产品',
|
||||
})
|
||||
], FinancialProductModel);
|
||||
//# sourceMappingURL=financial_product.model.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"financial_product.model.js","sourceRoot":"","sources":["../../src/model/financial_product.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAyC;AACzC,+CAA0C;AAC1C,6CAA8C;AAC9C,qDAAyE;AAKlE,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,uBAAS;IAQlD,IAAI,CAAS;IASb,MAAM,CAAS;IAWf,SAAS,CAAS;IAUlB,SAAS,CAAS;;;;CACnB,CAAA;AAvCY,sDAAqB;AAQhC;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAClC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;KACd,CAAC;;mDACW;AASb;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;IACxC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,UAAU;KACpB,CAAC;;qDACa;AAWf;IATC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAClC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,EAAE;QACb,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,IAAI;KACd,CAAC;;wDACgB;AAUlB;IARC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;IACtC,IAAA,2BAAS,GAAE;IACX,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,EAAE;QACb,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,QAAQ;KAClB,CAAC;;wDACgB;gCAtCP,qBAAqB;IAHjC,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,MAAM;KAChB,CAAC;GACW,qBAAqB,CAuCjC"}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
export declare class InviteCodePoolModel extends BaseModel {
|
||||
code?: string;
|
||||
}
|
||||
Vendored
+39
@@ -0,0 +1,39 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.InviteCodePoolModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
let InviteCodePoolModel = class InviteCodePoolModel extends _base_model_1.BaseModel {
|
||||
code;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { code: { required: false, type: () => String } };
|
||||
}
|
||||
};
|
||||
exports.InviteCodePoolModel = InviteCodePoolModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '邀请码,邀请码的id跟用户的id是一一对应的' }),
|
||||
(0, typeorm_1.Index)({ unique: true }),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '邀请码',
|
||||
length: 50,
|
||||
type: 'varchar',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], InviteCodePoolModel.prototype, "code", void 0);
|
||||
exports.InviteCodePoolModel = InviteCodePoolModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '邀请码池',
|
||||
})
|
||||
], InviteCodePoolModel);
|
||||
//# sourceMappingURL=invite_code_pool.model.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"invite_code_pool.model.js","sourceRoot":"","sources":["../../src/model/invite_code_pool.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAA0C;AAC1C,qCAAgD;AAChD,6CAA8C;AAKvC,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,uBAAS;IAQzC,IAAI,CAAU;;;;CACtB,CAAA;AATY,kDAAmB;AAQvB;IAPN,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACtD,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;KAChB,CAAC;;iDACmB;8BARV,mBAAmB;IAH/B,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,MAAM;KAChB,CAAC;GACW,mBAAmB,CAS/B"}
|
||||
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
export declare enum JobHuntingType {
|
||||
Organization = 0,
|
||||
Publicity = 1
|
||||
}
|
||||
export declare enum JobHuntingStatus {
|
||||
Pending = 0,
|
||||
Approved = 1,
|
||||
Rejected = 2
|
||||
}
|
||||
export declare class JobHuntingModel extends BaseModel {
|
||||
userId: number;
|
||||
realName: string;
|
||||
idCardNo: string;
|
||||
phone: string;
|
||||
teamCount: number;
|
||||
dreamResume: string;
|
||||
status: JobHuntingStatus;
|
||||
type: JobHuntingType;
|
||||
rejectReason?: string;
|
||||
user?: UserModel;
|
||||
}
|
||||
Vendored
+161
@@ -0,0 +1,161 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.JobHuntingModel = exports.JobHuntingStatus = exports.JobHuntingType = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const api_optional_decorator_1 = require("../app/common/decorator/api_optional.decorator");
|
||||
const user_model_1 = require("./user.model");
|
||||
const is_enum_mumber_string_1 = require("../app/common/decorator/is_enum_mumber_string");
|
||||
var JobHuntingType;
|
||||
(function (JobHuntingType) {
|
||||
JobHuntingType[JobHuntingType["Organization"] = 0] = "Organization";
|
||||
JobHuntingType[JobHuntingType["Publicity"] = 1] = "Publicity";
|
||||
})(JobHuntingType || (exports.JobHuntingType = JobHuntingType = {}));
|
||||
var JobHuntingStatus;
|
||||
(function (JobHuntingStatus) {
|
||||
JobHuntingStatus[JobHuntingStatus["Pending"] = 0] = "Pending";
|
||||
JobHuntingStatus[JobHuntingStatus["Approved"] = 1] = "Approved";
|
||||
JobHuntingStatus[JobHuntingStatus["Rejected"] = 2] = "Rejected";
|
||||
})(JobHuntingStatus || (exports.JobHuntingStatus = JobHuntingStatus = {}));
|
||||
let JobHuntingModel = class JobHuntingModel extends _base_model_1.BaseModel {
|
||||
userId;
|
||||
realName;
|
||||
idCardNo;
|
||||
phone;
|
||||
teamCount;
|
||||
dreamResume;
|
||||
status;
|
||||
type;
|
||||
rejectReason;
|
||||
user;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { userId: { required: true, type: () => Number }, realName: { required: true, type: () => String }, idCardNo: { required: true, type: () => String }, phone: { required: true, type: () => String }, teamCount: { required: true, type: () => Number }, dreamResume: { required: true, type: () => String }, status: { required: true, enum: require("./job_hunting.model").JobHuntingStatus }, type: { required: true, enum: require("./job_hunting.model").JobHuntingType }, rejectReason: { required: false, type: () => String }, user: { required: false, type: () => require("./user.model").UserModel } };
|
||||
}
|
||||
};
|
||||
exports.JobHuntingModel = JobHuntingModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], JobHuntingModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '姓名' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '姓名',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], JobHuntingModel.prototype, "realName", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '身份证号' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '身份证号',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], JobHuntingModel.prototype, "idCardNo", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '联系电话' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '联系电话',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], JobHuntingModel.prototype, "phone", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '团队人数' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '团队人数',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], JobHuntingModel.prototype, "teamCount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '追梦履历' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '追梦履历',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], JobHuntingModel.prototype, "dreamResume", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '审核状态:0=待审核,1=审核通过,2=审核驳回',
|
||||
enum: JobHuntingStatus,
|
||||
}),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: JobHuntingStatus.Pending,
|
||||
comment: '审核状态:0=待审核,1=审核通过,2=审核驳回',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], JobHuntingModel.prototype, "status", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '类型:0=组织,1=宣传',
|
||||
enum: JobHuntingType,
|
||||
}),
|
||||
(0, is_enum_mumber_string_1.IsEnumNumberString)(JobHuntingType),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: JobHuntingStatus.Pending,
|
||||
comment: '类型:0=组织,1=宣传',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], JobHuntingModel.prototype, "type", void 0);
|
||||
__decorate([
|
||||
(0, api_optional_decorator_1.ApiOptional)({ description: '驳回原因', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '驳回原因',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], JobHuntingModel.prototype, "rejectReason", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], JobHuntingModel.prototype, "user", void 0);
|
||||
exports.JobHuntingModel = JobHuntingModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '求职申请',
|
||||
})
|
||||
], JobHuntingModel);
|
||||
//# sourceMappingURL=job_hunting.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"job_hunting.model.js","sourceRoot":"","sources":["../../src/model/job_hunting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAA0C;AAC1C,6CAAmE;AACnE,qDAA8D;AAC9D,2FAA6E;AAC7E,6CAAyC;AACzC,yFAAmF;AAInF,IAAY,cAKX;AALD,WAAY,cAAc;IAExB,mEAAgB,CAAA;IAEhB,6DAAa,CAAA;AACf,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAID,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAE1B,6DAAW,CAAA;IAEX,+DAAY,CAAA;IAEZ,+DAAY,CAAA;AACd,CAAC,EAPW,gBAAgB,gCAAhB,gBAAgB,QAO3B;AAKM,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,uBAAS;IAS5C,MAAM,CAAS;IASf,QAAQ,CAAS;IASjB,QAAQ,CAAS;IASjB,KAAK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CAAC;GACW,eAAe,CAkG3B"}
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { NewsCategoryModel } from './news_category.model';
|
||||
export declare enum NewsType {
|
||||
ImageText = 1,
|
||||
Video = 2
|
||||
}
|
||||
export declare class NewsModel extends BaseModel {
|
||||
categoryId: number;
|
||||
coverImage: string;
|
||||
video?: string;
|
||||
title: string;
|
||||
content: string;
|
||||
publishTime: string;
|
||||
readCount: number;
|
||||
type: NewsType;
|
||||
isRecommended: number;
|
||||
isHeadline: number;
|
||||
isShow: number;
|
||||
category?: NewsCategoryModel;
|
||||
}
|
||||
Vendored
+169
@@ -0,0 +1,169 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.NewsModel = exports.NewsType = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const news_category_model_1 = require("./news_category.model");
|
||||
const is_number_or_number_str_1 = require("../app/common/decorator/is_number_or_number_str");
|
||||
const api_optional_decorator_1 = require("../app/common/decorator/api_optional.decorator");
|
||||
var NewsType;
|
||||
(function (NewsType) {
|
||||
NewsType[NewsType["ImageText"] = 1] = "ImageText";
|
||||
NewsType[NewsType["Video"] = 2] = "Video";
|
||||
})(NewsType || (exports.NewsType = NewsType = {}));
|
||||
let NewsModel = class NewsModel extends _base_model_1.BaseModel {
|
||||
categoryId;
|
||||
coverImage;
|
||||
video;
|
||||
title;
|
||||
content;
|
||||
publishTime;
|
||||
readCount;
|
||||
type;
|
||||
isRecommended;
|
||||
isHeadline;
|
||||
isShow;
|
||||
category;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { categoryId: { required: true, type: () => Number }, coverImage: { required: true, type: () => String }, video: { required: false, type: () => String }, title: { required: true, type: () => String }, content: { required: true, type: () => String }, publishTime: { required: true, type: () => String }, readCount: { required: true, type: () => Number }, type: { required: true, enum: require("./news.model").NewsType }, isRecommended: { required: true, type: () => Number }, isHeadline: { required: true, type: () => Number }, isShow: { required: true, type: () => Number }, category: { required: false, type: () => require("./news_category.model").NewsCategoryModel } };
|
||||
}
|
||||
};
|
||||
exports.NewsModel = NewsModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '资讯分类 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '资讯分类 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], NewsModel.prototype, "categoryId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '封面图' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '封面图',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], NewsModel.prototype, "coverImage", void 0);
|
||||
__decorate([
|
||||
(0, api_optional_decorator_1.ApiOptional)({ description: '视频链接', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '视频链接',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], NewsModel.prototype, "video", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '标题' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '标题',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], NewsModel.prototype, "title", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '图文资讯内容' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'text',
|
||||
comment: '图文资讯内容',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], NewsModel.prototype, "content", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '发布时间' }),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'datetime',
|
||||
comment: '发布时间',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], NewsModel.prototype, "publishTime", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '阅读数量' }),
|
||||
(0, is_number_or_number_str_1.IsNumberOrNumberStr)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 0,
|
||||
comment: '阅读数量',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], NewsModel.prototype, "readCount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '类型:1=图文,2=视频',
|
||||
enum: NewsType,
|
||||
}),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '类型:1=图文,2=视频',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], NewsModel.prototype, "type", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '是否推荐:0=否,1=是' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 0,
|
||||
comment: '是否推荐:0=否,1=是',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], NewsModel.prototype, "isRecommended", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '是否头条:0=否,1=是' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 0,
|
||||
comment: '是否头条:0=否,1=是',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], NewsModel.prototype, "isHeadline", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '是否展示:0=否,1=是' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 1,
|
||||
comment: '是否展示:0=否,1=是',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], NewsModel.prototype, "isShow", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '资讯分类',
|
||||
type: news_category_model_1.NewsCategoryModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.ManyToOne)(() => news_category_model_1.NewsCategoryModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)({ name: 'categoryId' }),
|
||||
__metadata("design:type", news_category_model_1.NewsCategoryModel)
|
||||
], NewsModel.prototype, "category", void 0);
|
||||
exports.NewsModel = NewsModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '资讯',
|
||||
})
|
||||
], NewsModel);
|
||||
//# sourceMappingURL=news.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"news.model.js","sourceRoot":"","sources":["../../src/model/news.model.ts"],"names":[],"mappings":";;;;;;;;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AAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,cAAc;KACxB,CAAC;;6CACiB;AAQnB;IANC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;IAC5C,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,cAAc;KACxB,CAAC;;yCACa;AAWf;IATC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,uCAAiB;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAiB,EAAE;QAClC,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACxB,uCAAiB;2CAAC;oBA3GlB,SAAS;IAHrB,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,IAAI;KACd,CAAC;GACW,SAAS,CA4GrB"}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
export declare class NewsCategoryModel extends BaseModel {
|
||||
name: string;
|
||||
isShow: number;
|
||||
sort: number;
|
||||
}
|
||||
Vendored
+60
@@ -0,0 +1,60 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.NewsCategoryModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
let NewsCategoryModel = class NewsCategoryModel extends _base_model_1.BaseModel {
|
||||
name;
|
||||
isShow;
|
||||
sort;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { name: { required: true, type: () => String }, isShow: { required: true, type: () => Number }, sort: { required: true, type: () => Number } };
|
||||
}
|
||||
};
|
||||
exports.NewsCategoryModel = NewsCategoryModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '分类名称' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '分类名称',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], NewsCategoryModel.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '是否展示:0=否,1=是' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 1,
|
||||
comment: '是否展示:0=否,1=是',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], NewsCategoryModel.prototype, "isShow", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '排序,数字越大越靠前' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 0,
|
||||
comment: '排序,数字越大越靠前',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], NewsCategoryModel.prototype, "sort", void 0);
|
||||
exports.NewsCategoryModel = NewsCategoryModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '资讯分类',
|
||||
})
|
||||
], NewsCategoryModel);
|
||||
//# sourceMappingURL=news_category.model.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"news_category.model.js","sourceRoot":"","sources":["../../src/model/news_category.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAyC;AACzC,+CAA0C;AAC1C,6CAA8C;AAC9C,qDAAuD;AAKhD,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,uBAAS;IAQ9C,IAAI,CAAS;IAQb,MAAM,CAAS;IAQf,IAAI,CAAS;;;;CACd,CAAA;AAzBY,8CAAiB;AAQ5B;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,MAAM;KAChB,CAAC;;+CACW;AAQb;IANC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;IAC5C,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,cAAc;KACxB,CAAC;;iDACa;AAQf;IANC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;IAC1C,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,YAAY;KACtB,CAAC;;+CACW;4BAxBF,iBAAiB;IAH7B,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,MAAM;KAChB,CAAC;GACW,iBAAiB,CAyB7B"}
|
||||
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
export declare enum RechargeChannel {
|
||||
WeChat = 1,
|
||||
Alipay = 2,
|
||||
UnionPay = 3,
|
||||
ShareLife = 4
|
||||
}
|
||||
export declare enum RechargeStatus {
|
||||
Pending = 0,
|
||||
Success = 1,
|
||||
Closed = 3
|
||||
}
|
||||
export declare class RechargeModel extends BaseModel {
|
||||
userId: number;
|
||||
channel: RechargeChannel;
|
||||
amount: string;
|
||||
innerOrderNo: string;
|
||||
actualAmount: string;
|
||||
status: RechargeStatus;
|
||||
thirdPartyOrderNo?: string;
|
||||
remark?: string;
|
||||
user?: UserModel;
|
||||
}
|
||||
Vendored
+156
@@ -0,0 +1,156 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.RechargeModel = exports.RechargeStatus = exports.RechargeChannel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const is_enum_mumber_string_1 = require("../app/common/decorator/is_enum_mumber_string");
|
||||
const api_optional_decorator_1 = require("../app/common/decorator/api_optional.decorator");
|
||||
const user_model_1 = require("./user.model");
|
||||
var RechargeChannel;
|
||||
(function (RechargeChannel) {
|
||||
RechargeChannel[RechargeChannel["WeChat"] = 1] = "WeChat";
|
||||
RechargeChannel[RechargeChannel["Alipay"] = 2] = "Alipay";
|
||||
RechargeChannel[RechargeChannel["UnionPay"] = 3] = "UnionPay";
|
||||
RechargeChannel[RechargeChannel["ShareLife"] = 4] = "ShareLife";
|
||||
})(RechargeChannel || (exports.RechargeChannel = RechargeChannel = {}));
|
||||
var RechargeStatus;
|
||||
(function (RechargeStatus) {
|
||||
RechargeStatus[RechargeStatus["Pending"] = 0] = "Pending";
|
||||
RechargeStatus[RechargeStatus["Success"] = 1] = "Success";
|
||||
RechargeStatus[RechargeStatus["Closed"] = 3] = "Closed";
|
||||
})(RechargeStatus || (exports.RechargeStatus = RechargeStatus = {}));
|
||||
let RechargeModel = class RechargeModel extends _base_model_1.BaseModel {
|
||||
userId;
|
||||
channel;
|
||||
amount;
|
||||
innerOrderNo;
|
||||
actualAmount;
|
||||
status;
|
||||
thirdPartyOrderNo;
|
||||
remark;
|
||||
user;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { userId: { required: true, type: () => Number }, channel: { required: true, enum: require("./recharge.model").RechargeChannel }, amount: { required: true, type: () => String }, innerOrderNo: { required: true, type: () => String }, actualAmount: { required: true, type: () => String }, status: { required: true, enum: require("./recharge.model").RechargeStatus }, thirdPartyOrderNo: { required: false, type: () => String }, remark: { required: false, type: () => String }, user: { required: false, type: () => require("./user.model").UserModel } };
|
||||
}
|
||||
};
|
||||
exports.RechargeModel = RechargeModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RechargeModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '充值渠道:1=微信,2=支付宝,3=云闪付,4=分享生活',
|
||||
enum: RechargeChannel,
|
||||
}),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, is_enum_mumber_string_1.IsEnumNumberString)(RechargeChannel),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: RechargeChannel.WeChat,
|
||||
comment: '充值渠道:1=微信,2=支付宝,3=云闪付,4=分享生活',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RechargeModel.prototype, "channel", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '充值金额' }),
|
||||
(0, class_validator_1.IsDecimal)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
comment: '充值金额',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], RechargeModel.prototype, "amount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '内部单号' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '内部单号',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], RechargeModel.prototype, "innerOrderNo", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '实际到账金额' }),
|
||||
(0, class_validator_1.IsDecimal)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
comment: '实际到账金额',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], RechargeModel.prototype, "actualAmount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '充值状态:0=待支付,1=支付成功,3=已关闭',
|
||||
enum: RechargeStatus,
|
||||
}),
|
||||
(0, is_enum_mumber_string_1.IsEnumNumberString)(RechargeStatus),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: RechargeStatus.Pending,
|
||||
comment: '充值状态:0=待支付,1=支付成功,3=已关闭',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RechargeModel.prototype, "status", void 0);
|
||||
__decorate([
|
||||
(0, api_optional_decorator_1.ApiOptional)({ description: '第三方订单号', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '第三方订单号',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], RechargeModel.prototype, "thirdPartyOrderNo", void 0);
|
||||
__decorate([
|
||||
(0, api_optional_decorator_1.ApiOptional)({ description: '备注', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '备注',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], RechargeModel.prototype, "remark", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], RechargeModel.prototype, "user", void 0);
|
||||
exports.RechargeModel = RechargeModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '充值记录',
|
||||
})
|
||||
], RechargeModel);
|
||||
//# sourceMappingURL=recharge.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"recharge.model.js","sourceRoot":"","sources":["../../src/model/recharge.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAA0C;AAC1C,6CAAmE;AACnE,qDAAyE;AACzE,yFAAmF;AACnF,2FAA6E;AAC7E,6CAAyC;AAKzC,IAAY,eASX;AATD,WAAY,eAAe;IAEzB,yDAAU,CAAA;IAEV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jB,IAAI,EAAE,sBAAS;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE;QACzB,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,GAAE;8BACN,sBAAS;2CAAC;wBA5FN,aAAa;IAHzB,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,MAAM;KAChB,CAAC;GACW,aAAa,CA6FzB"}
|
||||
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
export declare enum RedPacketStatus {
|
||||
Unclaimed = 1,
|
||||
Claiming = 2,
|
||||
Claimed = 3,
|
||||
Expire = 4
|
||||
}
|
||||
export declare enum RedPacketType {
|
||||
Ordinary = 1,
|
||||
Luck = 2
|
||||
}
|
||||
export declare class RedPacketModel extends BaseModel {
|
||||
totalAmount: number;
|
||||
totalCount: number;
|
||||
remainingAmount: number;
|
||||
remainingCount: number;
|
||||
userId: number;
|
||||
claimedUserId?: number;
|
||||
status: RedPacketStatus;
|
||||
groupId?: string;
|
||||
type: RedPacketType;
|
||||
createdAt: number;
|
||||
expireTime: number;
|
||||
user?: UserModel;
|
||||
}
|
||||
Vendored
+189
@@ -0,0 +1,189 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.RedPacketModel = exports.RedPacketType = exports.RedPacketStatus = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const user_model_1 = require("./user.model");
|
||||
const is_enum_mumber_string_1 = require("../app/common/decorator/is_enum_mumber_string");
|
||||
const api_optional_decorator_1 = require("../app/common/decorator/api_optional.decorator");
|
||||
var RedPacketStatus;
|
||||
(function (RedPacketStatus) {
|
||||
RedPacketStatus[RedPacketStatus["Unclaimed"] = 1] = "Unclaimed";
|
||||
RedPacketStatus[RedPacketStatus["Claiming"] = 2] = "Claiming";
|
||||
RedPacketStatus[RedPacketStatus["Claimed"] = 3] = "Claimed";
|
||||
RedPacketStatus[RedPacketStatus["Expire"] = 4] = "Expire";
|
||||
})(RedPacketStatus || (exports.RedPacketStatus = RedPacketStatus = {}));
|
||||
var RedPacketType;
|
||||
(function (RedPacketType) {
|
||||
RedPacketType[RedPacketType["Ordinary"] = 1] = "Ordinary";
|
||||
RedPacketType[RedPacketType["Luck"] = 2] = "Luck";
|
||||
})(RedPacketType || (exports.RedPacketType = RedPacketType = {}));
|
||||
let RedPacketModel = class RedPacketModel extends _base_model_1.BaseModel {
|
||||
totalAmount;
|
||||
totalCount;
|
||||
remainingAmount;
|
||||
remainingCount;
|
||||
userId;
|
||||
claimedUserId;
|
||||
status;
|
||||
groupId;
|
||||
type;
|
||||
createdAt;
|
||||
expireTime;
|
||||
user;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { totalAmount: { required: true, type: () => Number }, totalCount: { required: true, type: () => Number }, remainingAmount: { required: true, type: () => Number }, remainingCount: { required: true, type: () => Number }, userId: { required: true, type: () => Number }, claimedUserId: { required: false, type: () => Number }, status: { required: true, enum: require("./red_packet.model").RedPacketStatus }, groupId: { required: false, type: () => String }, type: { required: true, enum: require("./red_packet.model").RedPacketType }, createdAt: { required: true, type: () => Number }, expireTime: { required: true, type: () => Number }, user: { required: false, type: () => require("./user.model").UserModel } };
|
||||
}
|
||||
};
|
||||
exports.RedPacketModel = RedPacketModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '总金额(单位:分)' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: ' 总金额(单位:分)',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RedPacketModel.prototype, "totalAmount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '总数量' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: ' 总数量',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RedPacketModel.prototype, "totalCount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '剩余金额(单位:分)' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: ' 剩余金额(单位:分)',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RedPacketModel.prototype, "remainingAmount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '剩余数量' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: ' 剩余数量',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RedPacketModel.prototype, "remainingCount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: ' 用户ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RedPacketModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, api_optional_decorator_1.ApiOptional)({ description: '可以领取的用户ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
default: 0,
|
||||
comment: '可以领取的用户ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RedPacketModel.prototype, "claimedUserId", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, is_enum_mumber_string_1.IsEnumNumberString)(RedPacketStatus),
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '领取状态',
|
||||
enum: RedPacketStatus,
|
||||
}),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'tinyint',
|
||||
comment: ' 领取状态',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RedPacketModel.prototype, "status", void 0);
|
||||
__decorate([
|
||||
(0, api_optional_decorator_1.ApiOptional)({
|
||||
description: '群ID',
|
||||
nullable: true,
|
||||
}),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '群ID',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], RedPacketModel.prototype, "groupId", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, is_enum_mumber_string_1.IsEnumNumberString)(RedPacketType),
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '红包类型',
|
||||
enum: RedPacketType,
|
||||
}),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'tinyint',
|
||||
comment: '红包类型',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RedPacketModel.prototype, "type", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '创建时间' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: ' 创建时间',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RedPacketModel.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '过期时间' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: ' 过期时间',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RedPacketModel.prototype, "expireTime", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.ManyToOne)(() => user_model_1.UserModel, (_) => _.redPackets, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], RedPacketModel.prototype, "user", void 0);
|
||||
exports.RedPacketModel = RedPacketModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '红包表',
|
||||
name: 'im_red_packet',
|
||||
})
|
||||
], RedPacketModel);
|
||||
//# sourceMappingURL=red_packet.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"red_packet.model.js","sourceRoot":"","sources":["../../src/model/red_packet.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAgE;AAChE,+CAA0C;AAC1C,6CAAmE;AACnE,qDAA8D;AAC9D,6CAAyC;AACzC,yFAAmF;AACnF,2FAA6E;AAE7E,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,+DAAa,CAAA;IACb,6DAAY,CAAA;IACZ,2DAAW,CAAA;IACX,yDAAU,CAAA;AACZ,CAAC,EALW,eAAe,+BAAf,e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WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,uBAAK,GAAE;IACP,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,OAAO;KACjB,CAAC;;iDACuB;AASlB;IAPN,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,uBAAK,GAAE;IACP,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,OAAO;KACjB,CAAC;;kDACwB;AAW1B;IATC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,sBAAS;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE;QAC/C,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,GAAE;8BACN,sBAAS;4CAAC;yBAvHN,cAAc;IAJ1B,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,KAAK;QACd,IAAI,EAAE,eAAe;KACtB,CAAC;GACW,cAAc,CAwH1B"}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
export declare class RedPacketRecordModel extends BaseModel {
|
||||
amount: string;
|
||||
redPacketId: number;
|
||||
userId: number;
|
||||
createdAt: number;
|
||||
user?: UserModel;
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.RedPacketRecordModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const user_model_1 = require("./user.model");
|
||||
let RedPacketRecordModel = class RedPacketRecordModel extends _base_model_1.BaseModel {
|
||||
amount;
|
||||
redPacketId;
|
||||
userId;
|
||||
createdAt;
|
||||
user;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { amount: { required: true, type: () => String }, redPacketId: { required: true, type: () => Number }, userId: { required: true, type: () => Number }, createdAt: { required: true, type: () => Number }, user: { required: false, type: () => require("./user.model").UserModel } };
|
||||
}
|
||||
};
|
||||
exports.RedPacketRecordModel = RedPacketRecordModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '领取金额' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2,
|
||||
comment: ' 领取金额)',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], RedPacketRecordModel.prototype, "amount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '红包ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: ' 红包ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RedPacketRecordModel.prototype, "redPacketId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '领取用户ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: ' 领取用户ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RedPacketRecordModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '领取时间' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: ' 领取时间',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], RedPacketRecordModel.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.ManyToOne)(() => user_model_1.UserModel, (_) => _.redPacketRecords, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], RedPacketRecordModel.prototype, "user", void 0);
|
||||
exports.RedPacketRecordModel = RedPacketRecordModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '红包领取记录',
|
||||
name: 'im_red_packet_record',
|
||||
})
|
||||
], RedPacketRecordModel);
|
||||
//# sourceMappingURL=red_packet_record.model.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"red_packet_record.model.js","sourceRoot":"","sources":["../../src/model/red_packet_record.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAgE;AAChE,+CAA0C;AAC1C,6CAAmE;AACnE,qDAAwC;AACxC,6CAAyC;AAMlC,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,uBAAS;IAS1C,MAAM,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A,oBAAU,GAAE;8BACN,sBAAS;kDAAC;+BA/CN,oBAAoB;IAJhC,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,QAAQ;QACjB,IAAI,EAAE,sBAAsB;KAC7B,CAAC;GACW,oBAAoB,CAgDhC"}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
export declare class SystemConfigModel extends BaseModel {
|
||||
invitationUrl?: string;
|
||||
customerServiceUrl?: string;
|
||||
depositWeixinUrl?: string;
|
||||
depositAlipayUrl?: string;
|
||||
depositYunshanfuUrl?: string;
|
||||
openDeposit: boolean;
|
||||
welfarePool: string;
|
||||
stockPrice: string;
|
||||
minWithdrawAmount: string;
|
||||
minTransferPublicityAmount: string;
|
||||
}
|
||||
Vendored
+146
@@ -0,0 +1,146 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.SystemConfigModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
let SystemConfigModel = class SystemConfigModel extends _base_model_1.BaseModel {
|
||||
invitationUrl;
|
||||
customerServiceUrl;
|
||||
depositWeixinUrl;
|
||||
depositAlipayUrl;
|
||||
depositYunshanfuUrl;
|
||||
openDeposit;
|
||||
welfarePool;
|
||||
stockPrice;
|
||||
minWithdrawAmount;
|
||||
minTransferPublicityAmount;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { invitationUrl: { required: false, type: () => String }, customerServiceUrl: { required: false, type: () => String }, depositWeixinUrl: { required: false, type: () => String }, depositAlipayUrl: { required: false, type: () => String }, depositYunshanfuUrl: { required: false, type: () => String }, openDeposit: { required: true, type: () => Boolean }, welfarePool: { required: true, type: () => String }, stockPrice: { required: true, type: () => String }, minWithdrawAmount: { required: true, type: () => String }, minTransferPublicityAmount: { required: true, type: () => String } };
|
||||
}
|
||||
};
|
||||
exports.SystemConfigModel = SystemConfigModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '邀请链接', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '邀请链接',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], SystemConfigModel.prototype, "invitationUrl", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '客服链接', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '客服链接',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], SystemConfigModel.prototype, "customerServiceUrl", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '微信支付充值渠道', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '微信支付充值渠道',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], SystemConfigModel.prototype, "depositWeixinUrl", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '支付宝支付充值渠道', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '支付宝支付充值渠道',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], SystemConfigModel.prototype, "depositAlipayUrl", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '云闪付支付充值渠道', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '云闪付支付充值渠道',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], SystemConfigModel.prototype, "depositYunshanfuUrl", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '是否打开充值' }),
|
||||
(0, class_validator_1.IsBoolean)(),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '是否打开充值',
|
||||
default: true,
|
||||
}),
|
||||
__metadata("design:type", Boolean)
|
||||
], SystemConfigModel.prototype, "openDeposit", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '福利金池' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
comment: '福利金池',
|
||||
default: 5000000,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], SystemConfigModel.prototype, "welfarePool", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '股票价格' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
comment: '股票价格',
|
||||
default: 200,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], SystemConfigModel.prototype, "stockPrice", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '最低提现金额' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
comment: '最低提现金额',
|
||||
default: 100,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], SystemConfigModel.prototype, "minWithdrawAmount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '宣传金最低划转金额' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
comment: '宣传金最低划转金额',
|
||||
default: 1000,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], SystemConfigModel.prototype, "minTransferPublicityAmount", void 0);
|
||||
exports.SystemConfigModel = SystemConfigModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '系统配置',
|
||||
})
|
||||
], SystemConfigModel);
|
||||
//# sourceMappingURL=system_config.model.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"system_config.model.js","sourceRoot":"","sources":["../../src/model/system_config.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAyC;AACzC,+CAA0C;AAC1C,6CAA8C;AAC9C,qDAAsD;AAK/C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,uBAAS;IAQ9C,aAAa,CAAU;IASvB,kBAAkB,CAAU;IAS5B,gBAAgB,CAAU;IAS1B,gBAAgB,CAAU;IAS1B,mBAAmB,CAAU;IAQ7B,WAAW,CAAU;IAWrB,WAAW,CAAS;IAWpB,UAAU,CAAS;IAWnB,iBAAiB,CAAS;IAW1B,0BAA0B,CAAS;;;;CACpC,CAAA;AAjGY,8CAAiB;AAQ5B;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACpD,IAAA,0BAAQ,GAAE;IACV,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;AAWrB;IATC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,EAAE;QACb,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,MAAM;QACf,OAAO,EAAE,OAAO;KACjB,CAAC;;sDACkB;AAWpB;IATC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,EAAE;QACb,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,MAAM;QACf,OAAO,EAAE,GAAG;KACb,CAAC;;qDACiB;AAWnB;IATC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;IACtC,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,EAAE;QACb,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE,GAAG;KACb,CAAC;;4DACwB;AAW1B;IATC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;IACzC,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,EAAE;QACb,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,WAAW;QACpB,OAAO,EAAE,IAAI;KACd,CAAC;;qEACiC;4BAhGxB,iBAAiB;IAH7B,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,MAAM;KAChB,CAAC;GACW,iBAAiB,CAiG7B"}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
import { WalletModel } from './wallet.model';
|
||||
export declare class TeamRelationModel extends BaseModel {
|
||||
parentId: number;
|
||||
grandparentId: number;
|
||||
greatGrandparentId: number;
|
||||
path: string;
|
||||
level: number;
|
||||
userId: number;
|
||||
user?: UserModel;
|
||||
wallet?: WalletModel;
|
||||
}
|
||||
Vendored
+108
@@ -0,0 +1,108 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TeamRelationModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const user_model_1 = require("./user.model");
|
||||
let TeamRelationModel = class TeamRelationModel extends _base_model_1.BaseModel {
|
||||
parentId;
|
||||
grandparentId;
|
||||
greatGrandparentId;
|
||||
path;
|
||||
level;
|
||||
userId;
|
||||
user;
|
||||
wallet;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { parentId: { required: true, type: () => Number }, grandparentId: { required: true, type: () => Number }, greatGrandparentId: { required: true, type: () => Number }, path: { required: true, type: () => String }, level: { required: true, type: () => Number }, userId: { required: true, type: () => Number }, user: { required: false, type: () => require("./user.model").UserModel }, wallet: { required: false, type: () => require("./wallet.model").WalletModel } };
|
||||
}
|
||||
};
|
||||
exports.TeamRelationModel = TeamRelationModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '直接上级 ID(父级)' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
default: 0,
|
||||
comment: '直接上级 ID(父级)',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], TeamRelationModel.prototype, "parentId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '上上级 ID(祖父级)' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
default: 0,
|
||||
comment: '上上级 ID(祖父级)',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], TeamRelationModel.prototype, "grandparentId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '上上上级 ID(曾祖父级)' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
default: 0,
|
||||
comment: '上上上级 ID(曾祖父级)',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], TeamRelationModel.prototype, "greatGrandparentId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '层级路径,格式:1/2/3' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
length: 1000,
|
||||
default: '0',
|
||||
comment: '层级路径,格式:1/2/3',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], TeamRelationModel.prototype, "path", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '总层级' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
default: 0,
|
||||
comment: '总层级',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], TeamRelationModel.prototype, "level", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户 ID' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], TeamRelationModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, (_) => _.teamRelation, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], TeamRelationModel.prototype, "user", void 0);
|
||||
exports.TeamRelationModel = TeamRelationModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '团队关系',
|
||||
})
|
||||
], TeamRelationModel);
|
||||
//# sourceMappingURL=team_relation.model.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"team_relation.model.js","sourceRoot":"","sources":["../../src/model/team_relation.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAA0C;AAC1C,qCAA+D;AAC/D,6CAAmE;AACnE,6CAAyC;AAMlC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,uBAAS;IAQ9C,QAAQ,CAAS;IASjB,aAAa,CAAS;IAStB,kBAAkB,CAAS;IAS3B,IAAI,CAAS;IASb,KAAK,CAAS;IAQd,MAAM,CAAS;IAWf,IAAI,CAAa;IAEjB,MAAM,CAAe;;;;CACtB,CAAA;AAlEY,8CAAiB;AAQ5B;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;IAC3C,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,aAAa;KACvB,CAAC;;mDACe;AASjB;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,aAAa,E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AAE;8BACN,sBAAS;+CAAC;4BA/DN,iBAAiB;IAH7B,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,MAAM;KAChB,CAAC;GACW,iBAAiB,CAkE7B"}
|
||||
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { WalletModel } from './wallet.model';
|
||||
import { TeamRelationModel } from './team_relation.model';
|
||||
import { UserVerifyModel } from './user_verify.model';
|
||||
import { RedPacketRecordModel } from './red_packet_record.model';
|
||||
import { RedPacketModel } from './red_packet.model';
|
||||
export declare class UserModel extends BaseModel {
|
||||
nick: string;
|
||||
avatar?: string;
|
||||
grade: number;
|
||||
phone: string;
|
||||
password: string;
|
||||
tradePassword: string;
|
||||
stocks: number;
|
||||
inviteCode: string;
|
||||
device?: string;
|
||||
registerIp: string;
|
||||
isFrozen: number;
|
||||
wallet?: WalletModel;
|
||||
teamRelation?: TeamRelationModel;
|
||||
userVerify?: UserVerifyModel;
|
||||
enabledCreateGroup: number;
|
||||
isRedEnvelope: number;
|
||||
redEnvelopeMaxAmount: string;
|
||||
redEnvelope: string;
|
||||
autoRedEnvelope: number;
|
||||
redPacketRecords?: RedPacketRecordModel[];
|
||||
redPackets?: RedPacketModel[];
|
||||
}
|
||||
Vendored
+251
@@ -0,0 +1,251 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const api_optional_decorator_1 = require("../app/common/decorator/api_optional.decorator");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const wallet_model_1 = require("./wallet.model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const team_relation_model_1 = require("./team_relation.model");
|
||||
const user_verify_model_1 = require("./user_verify.model");
|
||||
const red_packet_record_model_1 = require("./red_packet_record.model");
|
||||
const red_packet_model_1 = require("./red_packet.model");
|
||||
let UserModel = class UserModel extends _base_model_1.BaseModel {
|
||||
nick;
|
||||
avatar;
|
||||
grade;
|
||||
phone;
|
||||
password;
|
||||
tradePassword;
|
||||
stocks;
|
||||
inviteCode;
|
||||
device;
|
||||
registerIp;
|
||||
isFrozen;
|
||||
wallet;
|
||||
teamRelation;
|
||||
userVerify;
|
||||
enabledCreateGroup;
|
||||
isRedEnvelope;
|
||||
redEnvelopeMaxAmount;
|
||||
redEnvelope;
|
||||
autoRedEnvelope;
|
||||
redPacketRecords;
|
||||
redPackets;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { nick: { required: true, type: () => String }, avatar: { required: false, type: () => String }, grade: { required: true, type: () => Number }, phone: { required: true, type: () => String }, password: { required: true, type: () => String }, tradePassword: { required: true, type: () => String }, stocks: { required: true, type: () => Number }, inviteCode: { required: true, type: () => String }, device: { required: false, type: () => String }, registerIp: { required: true, type: () => String }, isFrozen: { required: true, type: () => Number }, wallet: { required: false, type: () => require("./wallet.model").WalletModel }, teamRelation: { required: false, type: () => require("./team_relation.model").TeamRelationModel }, userVerify: { required: false, type: () => require("./user_verify.model").UserVerifyModel }, enabledCreateGroup: { required: true, type: () => Number }, isRedEnvelope: { required: true, type: () => Number }, redEnvelopeMaxAmount: { required: true, type: () => String }, redEnvelope: { required: true, type: () => String }, autoRedEnvelope: { required: true, type: () => Number }, redPacketRecords: { required: false, type: () => [require("./red_packet_record.model").RedPacketRecordModel] }, redPackets: { required: false, type: () => [require("./red_packet.model").RedPacketModel] } };
|
||||
}
|
||||
};
|
||||
exports.UserModel = UserModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '昵称' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '昵称',
|
||||
type: 'varchar',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserModel.prototype, "nick", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '头像', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '头像',
|
||||
type: 'varchar',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserModel.prototype, "avatar", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '等级' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 1,
|
||||
comment: '等级',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserModel.prototype, "grade", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '手机号' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '手机号',
|
||||
type: 'varchar',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserModel.prototype, "phone", void 0);
|
||||
__decorate([
|
||||
(0, api_optional_decorator_1.ApiOptional)({ description: '登录密码' }),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '登录密码',
|
||||
type: 'varchar',
|
||||
select: false,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserModel.prototype, "password", void 0);
|
||||
__decorate([
|
||||
(0, api_optional_decorator_1.ApiOptional)({ description: '交易密码', nullable: true }),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '交易密码',
|
||||
type: 'varchar',
|
||||
nullable: true,
|
||||
select: false,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserModel.prototype, "tradePassword", void 0);
|
||||
__decorate([
|
||||
(0, api_optional_decorator_1.ApiOptional)({ description: '持有股票数量' }),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '持有股票数量',
|
||||
type: 'int',
|
||||
default: 0,
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserModel.prototype, "stocks", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '邀请码' }),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '邀请码',
|
||||
type: 'varchar',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserModel.prototype, "inviteCode", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '设备号', nullable: true }),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '设备号',
|
||||
type: 'varchar',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserModel.prototype, "device", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({ description: '注册 IP' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '注册 IP',
|
||||
type: 'varchar',
|
||||
default: '0.0.0.0',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserModel.prototype, "registerIp", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '是否冻结:0=否,1=是' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 0,
|
||||
comment: '是否冻结:0=否,1=是',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserModel.prototype, "isFrozen", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '钱包',
|
||||
type: wallet_model_1.WalletModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => wallet_model_1.WalletModel, (_) => _.user),
|
||||
__metadata("design:type", wallet_model_1.WalletModel)
|
||||
], UserModel.prototype, "wallet", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '团队关系',
|
||||
type: team_relation_model_1.TeamRelationModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => team_relation_model_1.TeamRelationModel, (_) => _.user),
|
||||
__metadata("design:type", team_relation_model_1.TeamRelationModel)
|
||||
], UserModel.prototype, "teamRelation", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '钱包',
|
||||
type: wallet_model_1.WalletModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => wallet_model_1.WalletModel, (_) => _.user),
|
||||
__metadata("design:type", user_verify_model_1.UserVerifyModel)
|
||||
], UserModel.prototype, "userVerify", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '是否开启创建群权限,0没有权限,1有权限' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'tinyint',
|
||||
comment: '是否开启创建群权限,0没有权限,1有权限',
|
||||
default: 0,
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserModel.prototype, "enabledCreateGroup", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '是否关闭红包:1:正常,0关闭个人红包功能' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '是否关闭红包:1:正常,0关闭个人红包功能',
|
||||
default: 0,
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserModel.prototype, "isRedEnvelope", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '最大可发送红包金额,如果没有设置则没有限制' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2,
|
||||
default: 0,
|
||||
comment: '最大可发送红包金额,如果没有设置则没有限制',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserModel.prototype, "redEnvelopeMaxAmount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '红包资产' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
default: 0,
|
||||
comment: '红包资产',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserModel.prototype, "redEnvelope", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '是否内部自动抢红包账户,0不是,1是' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 0,
|
||||
comment: '是否内部自动抢红包账户,0不是,1是',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserModel.prototype, "autoRedEnvelope", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '红包领取记录',
|
||||
type: [red_packet_record_model_1.RedPacketRecordModel],
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToMany)(() => red_packet_record_model_1.RedPacketRecordModel, (_) => _.user),
|
||||
__metadata("design:type", Array)
|
||||
], UserModel.prototype, "redPacketRecords", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '创建的红包',
|
||||
type: [red_packet_model_1.RedPacketModel],
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToMany)(() => red_packet_model_1.RedPacketModel, (_) => _.user),
|
||||
__metadata("design:type", Array)
|
||||
], UserModel.prototype, "redPackets", void 0);
|
||||
exports.UserModel = UserModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '用户',
|
||||
})
|
||||
], UserModel);
|
||||
//# sourceMappingURL=user.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||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WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,CAAC,iCAAc,CAAC;QACtB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;;6CACjB;oBA/KnB,SAAS;IAHrB,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,IAAI;KACd,CAAC;GACW,SAAS,CAgLrB"}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
export declare class UserAddressModel extends BaseModel {
|
||||
userId: number;
|
||||
address: string;
|
||||
phone: string;
|
||||
user?: UserModel;
|
||||
}
|
||||
Vendored
+77
@@ -0,0 +1,77 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserAddressModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const user_model_1 = require("./user.model");
|
||||
let UserAddressModel = class UserAddressModel extends _base_model_1.BaseModel {
|
||||
userId;
|
||||
address;
|
||||
phone;
|
||||
user;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { userId: { required: true, type: () => Number }, address: { required: true, type: () => String }, phone: { required: true, type: () => String }, user: { required: false, type: () => require("./user.model").UserModel } };
|
||||
}
|
||||
};
|
||||
exports.UserAddressModel = UserAddressModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserAddressModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '详细地址' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '详细地址',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserAddressModel.prototype, "address", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '联系电话' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '联系电话',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserAddressModel.prototype, "phone", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], UserAddressModel.prototype, "user", void 0);
|
||||
exports.UserAddressModel = UserAddressModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '用户地址',
|
||||
})
|
||||
], UserAddressModel);
|
||||
//# sourceMappingURL=user_address.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user_address.model.js","sourceRoot":"","sources":["../../src/model/user_address.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAA0C;AAC1C,6CAAmE;AACnE,qDAA8D;AAC9D,6CAAyC;AAKlC,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,uBAAS;IAS7C,MAAM,CAAS;IASf,OAAO,CAAS;IAShB,KAAK,CAAS;IAWd,IAAI,CAAa;;;;CAClB,CAAA;AAvCY,4CAAgB;AAS3B;IARC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;IACrC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,OAAO;KACjB,CAAC;;gDACa;AASf;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,MAAM;KAChB,CAAC;;iDACc;AAShB;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,MAAM;KAChB,CAAC;;+CACY;AAWd;IATC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,sBAAS;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE;QACzB,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,GAAE;8BACN,sBAAS;8CAAC;2BAtCN,gBAAgB;IAH5B,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,MAAM;KAChB,CAAC;GACW,gBAAgB,CAuC5B"}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
export declare class UserBankModel extends BaseModel {
|
||||
userId: number;
|
||||
cardNo: string;
|
||||
bankName: string;
|
||||
phone: string;
|
||||
user?: UserModel;
|
||||
}
|
||||
Vendored
+88
@@ -0,0 +1,88 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserBankModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const user_model_1 = require("./user.model");
|
||||
let UserBankModel = class UserBankModel extends _base_model_1.BaseModel {
|
||||
userId;
|
||||
cardNo;
|
||||
bankName;
|
||||
phone;
|
||||
user;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { userId: { required: true, type: () => Number }, cardNo: { required: true, type: () => String }, bankName: { required: true, type: () => String }, phone: { required: true, type: () => String }, user: { required: false, type: () => require("./user.model").UserModel } };
|
||||
}
|
||||
};
|
||||
exports.UserBankModel = UserBankModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserBankModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '银行卡号' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '银行卡号',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserBankModel.prototype, "cardNo", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '银行名称' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '银行名称',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserBankModel.prototype, "bankName", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '手机号码' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '手机号码',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserBankModel.prototype, "phone", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], UserBankModel.prototype, "user", void 0);
|
||||
exports.UserBankModel = UserBankModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '用户绑定银行卡',
|
||||
})
|
||||
], UserBankModel);
|
||||
//# sourceMappingURL=user_bank.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user_bank.model.js","sourceRoot":"","sources":["../../src/model/user_bank.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAA0C;AAC1C,6CAAmE;AACnE,qDAA8D;AAC9D,6CAAyC;AAKlC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,uBAAS;IAS1C,MAAM,CAAS;IASf,MAAM,CAAS;IASf,QAAQ,CAAS;IASjB,KAAK,CAAS;IAWd,IAAI,CAAa;;;;CAClB,CAAA;AAhDY,sCAAa;AASxB;IARC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;IACrC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,OAAO;KACjB,CAAC;;6CACa;AASf;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,MAAM;KAChB,CAAC;;6CACa;AASf;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,MAAM;KAChB,CAAC;;+CACe;AASjB;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,MAAM;KAChB,CAAC;;4CACY;AAWd;IATC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,sBAAS;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE;QACzB,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,GAAE;8BACN,sBAAS;2CAAC;wBA/CN,aAAa;IAHzB,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,SAAS;KACnB,CAAC;GACW,aAAa,CAgDzB"}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
import { FinancialProductModel } from './financial_product.model';
|
||||
export declare enum HoldingSource {
|
||||
Purchase = 1,
|
||||
Gift = 2
|
||||
}
|
||||
export declare enum HoldingStatus {
|
||||
Unpaid = 0,
|
||||
Earning = 1,
|
||||
Matured = 2
|
||||
}
|
||||
export declare class UserFinancialProductModel extends BaseModel {
|
||||
userId: number;
|
||||
financialProductId: number;
|
||||
name: string;
|
||||
period: number;
|
||||
principal: string;
|
||||
yieldRate: string;
|
||||
source: HoldingSource;
|
||||
status: HoldingStatus;
|
||||
expireTime: number;
|
||||
user?: UserModel;
|
||||
financialProduct?: FinancialProductModel;
|
||||
}
|
||||
+173
@@ -0,0 +1,173 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserFinancialProductModel = exports.HoldingStatus = exports.HoldingSource = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const user_model_1 = require("./user.model");
|
||||
const financial_product_model_1 = require("./financial_product.model");
|
||||
var HoldingSource;
|
||||
(function (HoldingSource) {
|
||||
HoldingSource[HoldingSource["Purchase"] = 1] = "Purchase";
|
||||
HoldingSource[HoldingSource["Gift"] = 2] = "Gift";
|
||||
})(HoldingSource || (exports.HoldingSource = HoldingSource = {}));
|
||||
var HoldingStatus;
|
||||
(function (HoldingStatus) {
|
||||
HoldingStatus[HoldingStatus["Unpaid"] = 0] = "Unpaid";
|
||||
HoldingStatus[HoldingStatus["Earning"] = 1] = "Earning";
|
||||
HoldingStatus[HoldingStatus["Matured"] = 2] = "Matured";
|
||||
})(HoldingStatus || (exports.HoldingStatus = HoldingStatus = {}));
|
||||
let UserFinancialProductModel = class UserFinancialProductModel extends _base_model_1.BaseModel {
|
||||
userId;
|
||||
financialProductId;
|
||||
name;
|
||||
period;
|
||||
principal;
|
||||
yieldRate;
|
||||
source;
|
||||
status;
|
||||
expireTime;
|
||||
user;
|
||||
financialProduct;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { userId: { required: true, type: () => Number }, financialProductId: { required: true, type: () => Number }, name: { required: true, type: () => String }, period: { required: true, type: () => Number }, principal: { required: true, type: () => String }, yieldRate: { required: true, type: () => String }, source: { required: true, enum: require("./user_financial_product.model").HoldingSource }, status: { required: true, enum: require("./user_financial_product.model").HoldingStatus }, expireTime: { required: true, type: () => Number }, user: { required: false, type: () => require("./user.model").UserModel }, financialProduct: { required: false, type: () => require("./financial_product.model").FinancialProductModel } };
|
||||
}
|
||||
};
|
||||
exports.UserFinancialProductModel = UserFinancialProductModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserFinancialProductModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '理财产品 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '理财产品 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserFinancialProductModel.prototype, "financialProductId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '名称' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '名称',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserFinancialProductModel.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '周期(单位:天)' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '周期(单位:天)',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserFinancialProductModel.prototype, "period", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '本金' }),
|
||||
(0, class_validator_1.IsDecimal)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
comment: '本金',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserFinancialProductModel.prototype, "principal", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '收益率(%)' }),
|
||||
(0, class_validator_1.IsDecimal)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 4,
|
||||
comment: '收益率(%)',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserFinancialProductModel.prototype, "yieldRate", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '来源:1=购买,2=获赠',
|
||||
enum: HoldingSource,
|
||||
}),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '来源:1=购买,2=获赠',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserFinancialProductModel.prototype, "source", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '状态:0=未付款,1=收益中(已付款),2=已到期',
|
||||
enum: HoldingStatus,
|
||||
}),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: HoldingStatus.Unpaid,
|
||||
comment: '状态:0=未付款,1=收益中(已付款),2=已到期',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserFinancialProductModel.prototype, "status", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '到期时间(时间戳)' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '到期时间(时间戳)',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserFinancialProductModel.prototype, "expireTime", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], UserFinancialProductModel.prototype, "user", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '理财产品',
|
||||
type: financial_product_model_1.FinancialProductModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => financial_product_model_1.FinancialProductModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", financial_product_model_1.FinancialProductModel)
|
||||
], UserFinancialProductModel.prototype, "financialProduct", void 0);
|
||||
exports.UserFinancialProductModel = UserFinancialProductModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '用户持有理财产品',
|
||||
})
|
||||
], UserFinancialProductModel);
|
||||
//# sourceMappingURL=user_financial_product.model.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user_financial_product.model.js","sourceRoot":"","sources":["../../src/model/user_financial_product.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAA0C;AAC1C,6CAAmE;AACnE,qDAAyE;AACzE,6CAAyC;AACzC,uEAAkE;AAKlE,IAAY,aAKX;AALD,WAAY,aAAa;IAEvB,yDAAY,CAAA;IAEZ,iDAA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AAI;QACjB,IAAI,EAAE,sBAAS;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE;QACzB,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,GAAE;8BACN,sBAAS;uDAAC;AAWjB;IATC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,+CAAqB;QAC3B,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,+CAAqB,EAAE;QACrC,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,GAAE;8BACM,+CAAqB;mEAAC;oCA5G9B,yBAAyB;IAHrC,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,UAAU;KACpB,CAAC;GACW,yBAAyB,CA6GrC"}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
export declare enum UserLogType {
|
||||
Login = 0,
|
||||
Register = 1,
|
||||
Started = 2
|
||||
}
|
||||
export declare class UserLogModel extends BaseModel {
|
||||
userId: number;
|
||||
device: string;
|
||||
ip: string;
|
||||
date: string;
|
||||
type: UserLogType;
|
||||
}
|
||||
Vendored
+90
@@ -0,0 +1,90 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserLogModel = exports.UserLogType = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
var UserLogType;
|
||||
(function (UserLogType) {
|
||||
UserLogType[UserLogType["Login"] = 0] = "Login";
|
||||
UserLogType[UserLogType["Register"] = 1] = "Register";
|
||||
UserLogType[UserLogType["Started"] = 2] = "Started";
|
||||
})(UserLogType || (exports.UserLogType = UserLogType = {}));
|
||||
let UserLogModel = class UserLogModel extends _base_model_1.BaseModel {
|
||||
userId;
|
||||
device;
|
||||
ip;
|
||||
date;
|
||||
type;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { userId: { required: true, type: () => Number }, device: { required: true, type: () => String }, ip: { required: true, type: () => String }, date: { required: true, type: () => String }, type: { required: true, enum: require("./user_log.model").UserLogType } };
|
||||
}
|
||||
};
|
||||
exports.UserLogModel = UserLogModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserLogModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '操作设备号' }),
|
||||
(0, typeorm_1.Index)(),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '操作设备号',
|
||||
type: 'varchar',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserLogModel.prototype, "device", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({ description: '操作 IP' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
comment: '操作 IP',
|
||||
type: 'varchar',
|
||||
default: '0.0.0.0',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserLogModel.prototype, "ip", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '操作日期' }),
|
||||
(0, typeorm_1.Index)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'date',
|
||||
comment: '参操作日期',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserLogModel.prototype, "date", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '',
|
||||
enum: UserLogType,
|
||||
}),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserLogModel.prototype, "type", void 0);
|
||||
exports.UserLogModel = UserLogModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '用户操作日志',
|
||||
})
|
||||
], UserLogModel);
|
||||
//# sourceMappingURL=user_log.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user_log.model.js","sourceRoot":"","sources":["../../src/model/user_log.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAgD;AAChD,+CAA0C;AAC1C,6CAAmE;AACnE,qDAA8D;AAK9D,IAAY,WAOX;AAPD,WAAY,WAAW;IAErB,+CAAS,CAAA;IAET,qDAAY,CAAA;IAEZ,mDAAW,CAAA;AACb,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;AAKM,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,uBAAS;IASzC,MAAM,CAAS;IAQR,MAAM,CAAS;IASf,EAAE,CAAS;IAQlB,IAAI,CAAS;IAUb,IAAI,CAAc;;;;CACnB,CAAA;AA7CY,oCAAY;AASvB;IARC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;IACrC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,OAAO;KACjB,CAAC;;4CACa;AAQR;IANN,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;IACrC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,SAAS;KAChB,CAAC;;4CACoB;AASf;IAPN,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;KACnB,CAAC;;wCACgB;AAQlB;IANC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,OAAO;KACjB,CAAC;;0CACW;AAUb;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,EAAE;QACf,IAAI,EAAE,WAAW;KAClB,CAAC;IACD,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,EAAE;KACZ,CAAC;;0CACgB;uBA5CP,YAAY;IAHxB,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,QAAQ;KAClB,CAAC;GACW,YAAY,CA6CxB"}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
export declare class UserMessageModel extends BaseModel {
|
||||
userId: number;
|
||||
title: string;
|
||||
content: string;
|
||||
isRead: number;
|
||||
user?: UserModel;
|
||||
}
|
||||
Vendored
+87
@@ -0,0 +1,87 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserMessageModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const user_model_1 = require("./user.model");
|
||||
let UserMessageModel = class UserMessageModel extends _base_model_1.BaseModel {
|
||||
userId;
|
||||
title;
|
||||
content;
|
||||
isRead;
|
||||
user;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { userId: { required: true, type: () => Number }, title: { required: true, type: () => String }, content: { required: true, type: () => String }, isRead: { required: true, type: () => Number }, user: { required: false, type: () => require("./user.model").UserModel } };
|
||||
}
|
||||
};
|
||||
exports.UserMessageModel = UserMessageModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserMessageModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '标题' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '标题',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserMessageModel.prototype, "title", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '站内信内容' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'text',
|
||||
comment: '站内信内容',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserMessageModel.prototype, "content", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '是否已读:0=未读,1=已读' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 0,
|
||||
comment: '是否已读:0=未读,1=已读',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserMessageModel.prototype, "isRead", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], UserMessageModel.prototype, "user", void 0);
|
||||
exports.UserMessageModel = UserMessageModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '用户站内信',
|
||||
})
|
||||
], UserMessageModel);
|
||||
//# sourceMappingURL=user_message.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user_message.model.js","sourceRoot":"","sources":["../../src/model/user_message.model.ts"],"names":[],"mappings":";;;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,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE;QACzB,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,GAAE;8BACN,sBAAS;8CAAC;2BA9CN,gBAAgB;IAH5B,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,OAAO;KACjB,CAAC;GACW,gBAAgB,CA+C5B"}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
export declare class UserSignInModel extends BaseModel {
|
||||
userId: number;
|
||||
firstSignInDate?: string;
|
||||
lastSignInDate?: string;
|
||||
consecutiveDays: number;
|
||||
makeUpCount: number;
|
||||
usedMakeUpCount: number;
|
||||
maxMakeUpCount: number;
|
||||
user?: UserModel;
|
||||
}
|
||||
Vendored
+121
@@ -0,0 +1,121 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserSignInModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const user_model_1 = require("./user.model");
|
||||
let UserSignInModel = class UserSignInModel extends _base_model_1.BaseModel {
|
||||
userId;
|
||||
firstSignInDate;
|
||||
lastSignInDate;
|
||||
consecutiveDays;
|
||||
makeUpCount;
|
||||
usedMakeUpCount;
|
||||
maxMakeUpCount;
|
||||
user;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { userId: { required: true, type: () => Number }, firstSignInDate: { required: false, type: () => String }, lastSignInDate: { required: false, type: () => String }, consecutiveDays: { required: true, type: () => Number }, makeUpCount: { required: true, type: () => Number }, usedMakeUpCount: { required: true, type: () => Number }, maxMakeUpCount: { required: true, type: () => Number }, user: { required: false, type: () => require("./user.model").UserModel } };
|
||||
}
|
||||
};
|
||||
exports.UserSignInModel = UserSignInModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '首次签到日期', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'date',
|
||||
comment: '首次签到日期',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserSignInModel.prototype, "firstSignInDate", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '最后签到日期', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'date',
|
||||
comment: '最后签到日期',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserSignInModel.prototype, "lastSignInDate", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '已连续签到天数' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 0,
|
||||
comment: '已连续签到天数',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInModel.prototype, "consecutiveDays", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '补签数量' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 0,
|
||||
comment: '补签数量',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInModel.prototype, "makeUpCount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '已用补签数量' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 0,
|
||||
comment: '已用补签数量',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInModel.prototype, "usedMakeUpCount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '最多可补签数量' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 3,
|
||||
comment: '最多可补签数量',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInModel.prototype, "maxMakeUpCount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], UserSignInModel.prototype, "user", void 0);
|
||||
exports.UserSignInModel = UserSignInModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '用户签到',
|
||||
})
|
||||
], UserSignInModel);
|
||||
//# sourceMappingURL=user_sign_in.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user_sign_in.model.js","sourceRoot":"","sources":["../../src/model/user_sign_in.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAA0C;AAC1C,6CAAmE;AACnE,qDAA8D;AAC9D,6CAAyC;AAKlC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,uBAAS;IAS5C,MAAM,CAAS;IASf,eAAe,CAAU;IASzB,cAAc,CAAU;IASxB,eAAe,CAAS;IASxB,WAAW,CAAS;IASpB,eAAe,CAAS;IASxB,cAAc,CAAS;IAWvB,IAAI,CAAa;;;;CAClB,CAAA;AA3EY,0CAAe;AAS1B;IARC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;IACrC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,OAAO;KACjB,CAAC;;+CACa;AASf;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACtD,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,QAAQ;QACjB,QAAQ,EAAE,IAAI;KACf,CAAC;;wDACuB;AASzB;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACtD,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,QAAQ;QACjB,QAAQ,EAAE,IAAI;KACf,CAAC;;uDACsB;AASxB;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;IACvC,IAAA,uBAAK,GAAE;IACP,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,SAAS;KACnB,CAAC;;wDACsB;AASxB;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,uBAAK,GAAE;IACP,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,MAAM;KAChB,CAAC;;oDACkB;AASpB;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;IACtC,IAAA,uBAAK,GAAE;IACP,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,QAAQ;KAClB,CAAC;;wDACsB;AASxB;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;IACvC,IAAA,uBAAK,GAAE;IACP,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,SAAS;KACnB,CAAC;;uDACqB;AAWvB;IATC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,sBAAS;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE;QACzB,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,GAAE;8BACN,sBAAS;6CAAC;0BA1EN,eAAe;IAH3B,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,MAAM;KAChB,CAAC;GACW,eAAe,CA2E3B"}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
export declare enum SignInType {
|
||||
Normal = 0,
|
||||
MakeUp = 1
|
||||
}
|
||||
export declare class UserSignInCalendarModel extends BaseModel {
|
||||
userId: number;
|
||||
signInDate: string;
|
||||
isMakeUp: SignInType;
|
||||
user?: UserModel;
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserSignInCalendarModel = exports.SignInType = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const user_model_1 = require("./user.model");
|
||||
var SignInType;
|
||||
(function (SignInType) {
|
||||
SignInType[SignInType["Normal"] = 0] = "Normal";
|
||||
SignInType[SignInType["MakeUp"] = 1] = "MakeUp";
|
||||
})(SignInType || (exports.SignInType = SignInType = {}));
|
||||
let UserSignInCalendarModel = class UserSignInCalendarModel extends _base_model_1.BaseModel {
|
||||
userId;
|
||||
signInDate;
|
||||
isMakeUp;
|
||||
user;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { userId: { required: true, type: () => Number }, signInDate: { required: true, type: () => String }, isMakeUp: { required: true, enum: require("./user_sign_in_calendar.model").SignInType }, user: { required: false, type: () => require("./user.model").UserModel } };
|
||||
}
|
||||
};
|
||||
exports.UserSignInCalendarModel = UserSignInCalendarModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInCalendarModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '签到日期' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'date',
|
||||
comment: '签到日期',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserSignInCalendarModel.prototype, "signInDate", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '签到类型: 0-正常签到, 1-补签',
|
||||
enum: SignInType,
|
||||
}),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'tinyint',
|
||||
unsigned: true,
|
||||
default: 0,
|
||||
comment: '签到类型: 0-正常签到, 1-补签',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInCalendarModel.prototype, "isMakeUp", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], UserSignInCalendarModel.prototype, "user", void 0);
|
||||
exports.UserSignInCalendarModel = UserSignInCalendarModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '用户签到日历',
|
||||
})
|
||||
], UserSignInCalendarModel);
|
||||
//# sourceMappingURL=user_sign_in_calendar.model.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user_sign_in_calendar.model.js","sourceRoot":"","sources":["../../src/model/user_sign_in_calendar.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAA0C;AAC1C,6CAAmE;AACnE,qDAA8D;AAC9D,6CAAyC;AAKzC,IAAY,UAKX;AALD,WAAY,UAAU;IAEpB,+CAAU,CAAA;IAEV,+CAAU,CAAA;AACZ,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;AAKM,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,uBAAS;IASpD,MAAM,CAAS;IASf,UAAU,CAAS;IAanB,QAAQ,CAAa;IAWrB,IAAI,CAAa;;;;CAClB,CAAA;AA3CY,0DAAuB;AASlC;IARC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;IACrC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,OAAO;KACjB,CAAC;;uDACa;AASf;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,MAAM;KAChB,CAAC;;2DACiB;AAanB;IAXC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,UAAU;KACjB,CAAC;IACD,IAAA,uBAAK,GAAE;IACP,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,oBAAoB;KAC9B,CAAC;;yDACmB;AAWrB;IATC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,sBAAS;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE;QACzB,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,GAAE;8BACN,sBAAS;qDAAC;kCA1CN,uBAAuB;IAHnC,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,QAAQ;KAClB,CAAC;GACW,uBAAuB,CA2CnC"}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { FinancialProductModel } from './financial_product.model';
|
||||
export declare class UserSignInTaskModel extends BaseModel {
|
||||
title: string;
|
||||
subtitle: string;
|
||||
requiredDays: number;
|
||||
icon: string;
|
||||
financialProductId: number;
|
||||
financialProduct?: FinancialProductModel;
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserSignInTaskModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const financial_product_model_1 = require("./financial_product.model");
|
||||
let UserSignInTaskModel = class UserSignInTaskModel extends _base_model_1.BaseModel {
|
||||
title;
|
||||
subtitle;
|
||||
requiredDays;
|
||||
icon;
|
||||
financialProductId;
|
||||
financialProduct;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { title: { required: true, type: () => String }, subtitle: { required: true, type: () => String }, requiredDays: { required: true, type: () => Number }, icon: { required: true, type: () => String }, financialProductId: { required: true, type: () => Number }, financialProduct: { required: false, type: () => require("./financial_product.model").FinancialProductModel } };
|
||||
}
|
||||
};
|
||||
exports.UserSignInTaskModel = UserSignInTaskModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '任务标题' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
length: 100,
|
||||
comment: '任务标题',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserSignInTaskModel.prototype, "title", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '任务子标题' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
length: 200,
|
||||
comment: '任务子标题',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserSignInTaskModel.prototype, "subtitle", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '需要签到天数' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: 7,
|
||||
comment: '需要签到天数',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInTaskModel.prototype, "requiredDays", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '图标' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
length: 200,
|
||||
comment: '图标',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserSignInTaskModel.prototype, "icon", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '任务奖励的理财产品 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '任务奖励的理财产品 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInTaskModel.prototype, "financialProductId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: financial_product_model_1.FinancialProductModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => financial_product_model_1.FinancialProductModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", financial_product_model_1.FinancialProductModel)
|
||||
], UserSignInTaskModel.prototype, "financialProduct", void 0);
|
||||
exports.UserSignInTaskModel = UserSignInTaskModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '签到任务',
|
||||
})
|
||||
], UserSignInTaskModel);
|
||||
//# sourceMappingURL=user_sign_in_task.model.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user_sign_in_task.model.js","sourceRoot":"","sources":["../../src/model/user_sign_in_task.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAA0C;AAC1C,6CAAmE;AACnE,qDAAkD;AAClD,uEAAkE;AAK3D,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,uBAAS;IAQhD,KAAK,CAAS;IASd,QAAQ,CAAS;IASjB,YAAY,CAAS;IASrB,IAAI,CAAS;IAQb,kBAAkB,CAAS;IAW3B,gBAAgB,CAAyB;;;;CAC1C,CAAA;AAvDY,kDAAmB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AAA,oBAAU,GAAE;8BACM,+CAAqB;6DAAC;8BAtD9B,mBAAmB;IAH/B,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,MAAM;KAChB,CAAC;GACW,mBAAmB,CAuD/B"}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
import { UserFinancialProductModel } from './user_financial_product.model';
|
||||
export declare enum ClaimStatus {
|
||||
Pending = 0,
|
||||
Claimed = 1
|
||||
}
|
||||
export declare class UserSignInTaskRewardModel extends BaseModel {
|
||||
userId: number;
|
||||
userSignInTaskId: number;
|
||||
title: string;
|
||||
subtitle: string;
|
||||
requiredDays: number;
|
||||
icon: string;
|
||||
financialProductId: number;
|
||||
userFinancialProductId: number;
|
||||
userFinancialProduct?: UserFinancialProductModel;
|
||||
claimStatus: ClaimStatus;
|
||||
user?: UserModel;
|
||||
}
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserSignInTaskRewardModel = exports.ClaimStatus = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const user_model_1 = require("./user.model");
|
||||
const user_financial_product_model_1 = require("./user_financial_product.model");
|
||||
var ClaimStatus;
|
||||
(function (ClaimStatus) {
|
||||
ClaimStatus[ClaimStatus["Pending"] = 0] = "Pending";
|
||||
ClaimStatus[ClaimStatus["Claimed"] = 1] = "Claimed";
|
||||
})(ClaimStatus || (exports.ClaimStatus = ClaimStatus = {}));
|
||||
let UserSignInTaskRewardModel = class UserSignInTaskRewardModel extends _base_model_1.BaseModel {
|
||||
userId;
|
||||
userSignInTaskId;
|
||||
title;
|
||||
subtitle;
|
||||
requiredDays;
|
||||
icon;
|
||||
financialProductId;
|
||||
userFinancialProductId;
|
||||
userFinancialProduct;
|
||||
claimStatus;
|
||||
user;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { userId: { required: true, type: () => Number }, userSignInTaskId: { required: true, type: () => Number }, title: { required: true, type: () => String }, subtitle: { required: true, type: () => String }, requiredDays: { required: true, type: () => Number }, icon: { required: true, type: () => String }, financialProductId: { required: true, type: () => Number }, userFinancialProductId: { required: true, type: () => Number }, userFinancialProduct: { required: false, type: () => require("./user_financial_product.model").UserFinancialProductModel }, claimStatus: { required: true, enum: require("./user_sign_in_task_reward.model").ClaimStatus }, user: { required: false, type: () => require("./user.model").UserModel } };
|
||||
}
|
||||
};
|
||||
exports.UserSignInTaskRewardModel = UserSignInTaskRewardModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInTaskRewardModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '签到任务 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '签到任务 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInTaskRewardModel.prototype, "userSignInTaskId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '任务标题' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
length: 100,
|
||||
comment: '任务标题',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserSignInTaskRewardModel.prototype, "title", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '任务子标题' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
length: 200,
|
||||
comment: '任务子标题',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserSignInTaskRewardModel.prototype, "subtitle", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '需要签到天数' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '需要签到天数',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInTaskRewardModel.prototype, "requiredDays", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '图标' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
length: 200,
|
||||
comment: '图标',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserSignInTaskRewardModel.prototype, "icon", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '理财产品 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '理财产品 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInTaskRewardModel.prototype, "financialProductId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户持有理财产品 ID,未领取为0' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '用户持有理财产品 ID,未领取为0',
|
||||
default: 0,
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInTaskRewardModel.prototype, "userFinancialProductId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户持有理财产品',
|
||||
type: user_financial_product_model_1.UserFinancialProductModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_financial_product_model_1.UserFinancialProductModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_financial_product_model_1.UserFinancialProductModel)
|
||||
], UserSignInTaskRewardModel.prototype, "userFinancialProduct", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '领取状态: 0-待领取, 1-已领取',
|
||||
enum: ClaimStatus,
|
||||
}),
|
||||
(0, class_validator_1.IsEnum)(ClaimStatus),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'tinyint',
|
||||
default: ClaimStatus.Pending,
|
||||
comment: '领取状态: 0-待领取, 1-已领取',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserSignInTaskRewardModel.prototype, "claimStatus", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], UserSignInTaskRewardModel.prototype, "user", void 0);
|
||||
exports.UserSignInTaskRewardModel = UserSignInTaskRewardModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '用户签到任务奖励',
|
||||
})
|
||||
], UserSignInTaskRewardModel);
|
||||
//# sourceMappingURL=user_sign_in_task_reward.model.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user_sign_in_task_reward.model.js","sourceRoot":"","sources":["../../src/model/user_sign_in_task_reward.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAA0C;AAC1C,6CAAmE;AACnE,qDAA0D;AAC1D,6CAAyC;AACzC,iFAA2E;AAK3E,IAAY,WAKX;AALD,WAAY,WAAW;IAErB,mDAAW,CAAA;IAEX,mDAAW,CAAA;AACb,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAKM,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,uBAAS;IAQtD,MAAM,CAAS;IAQf,gBAAgB,CAAS;IASzB,KAAK,CAAS;IASd,QAAQ,CAAS;IAQjB,YAAY,CAAS;IASrB,IAAI,CAAS;IAQb,kBAAkB,CAAS;IAS3B,sBAAsB,CAAS;IAW/B,oBAAoB,CAA6B;IAYjD,WAAW,CAAc;IAWzB,IAAI,CAAa;;;;CAClB,CAAA;AAvGY,8DAAyB;AAQpC;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;IACrC,IAAA,uBAAK,GAAE;IACP,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,OAAO;KACjB,CAAC;;yDACa;AAQf;IANC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;IACvC,IAAA,uBAAK,GAAE;IACP,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,SAAS;KACnB,CAAC;;mEACuB;AASzB;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACp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I;KACf,CAAC;IACD,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,wDAAyB,EAAE;QACzC,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,GAAE;8BACU,wDAAyB;uEAAC;AAYjD;IAVC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,WAAW;KAClB,CAAC;IACD,IAAA,wBAAM,EAAC,WAAW,CAAC;IACnB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,WAAW,CAAC,OAAO;QAC5B,OAAO,EAAE,oBAAoB;KAC9B,CAAC;;8DACuB;AAWzB;IATC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,sBAAS;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE;QACzB,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,GAAE;8BACN,sBAAS;uDAAC;oCAtGN,yBAAyB;IAHrC,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,UAAU;KACpB,CAAC;GACW,yBAAyB,CAuGrC"}
|
||||
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
export declare enum VerifyAuditStatus {
|
||||
Pending = 0,
|
||||
Approved = 1,
|
||||
Rejected = 2
|
||||
}
|
||||
export declare class UserVerifyModel extends BaseModel {
|
||||
userId: number;
|
||||
realName: string;
|
||||
idCardNo: string;
|
||||
idCardFront: string;
|
||||
idCardBack: string;
|
||||
handHoldIdCard: string;
|
||||
status: VerifyAuditStatus;
|
||||
rejectReason?: string;
|
||||
user?: UserModel;
|
||||
}
|
||||
Vendored
+141
@@ -0,0 +1,141 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserVerifyModel = exports.VerifyAuditStatus = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const api_optional_decorator_1 = require("../app/common/decorator/api_optional.decorator");
|
||||
const user_model_1 = require("./user.model");
|
||||
var VerifyAuditStatus;
|
||||
(function (VerifyAuditStatus) {
|
||||
VerifyAuditStatus[VerifyAuditStatus["Pending"] = 0] = "Pending";
|
||||
VerifyAuditStatus[VerifyAuditStatus["Approved"] = 1] = "Approved";
|
||||
VerifyAuditStatus[VerifyAuditStatus["Rejected"] = 2] = "Rejected";
|
||||
})(VerifyAuditStatus || (exports.VerifyAuditStatus = VerifyAuditStatus = {}));
|
||||
let UserVerifyModel = class UserVerifyModel extends _base_model_1.BaseModel {
|
||||
userId;
|
||||
realName;
|
||||
idCardNo;
|
||||
idCardFront;
|
||||
idCardBack;
|
||||
handHoldIdCard;
|
||||
status;
|
||||
rejectReason;
|
||||
user;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { userId: { required: true, type: () => Number }, realName: { required: true, type: () => String }, idCardNo: { required: true, type: () => String }, idCardFront: { required: true, type: () => String }, idCardBack: { required: true, type: () => String }, handHoldIdCard: { required: true, type: () => String }, status: { required: true, enum: require("./user_verify.model").VerifyAuditStatus }, rejectReason: { required: false, type: () => String }, user: { required: false, type: () => require("./user.model").UserModel } };
|
||||
}
|
||||
};
|
||||
exports.UserVerifyModel = UserVerifyModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserVerifyModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '姓名' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '姓名',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserVerifyModel.prototype, "realName", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '身份证号' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '身份证号',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserVerifyModel.prototype, "idCardNo", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '身份证正面图片 URL' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '身份证正面',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserVerifyModel.prototype, "idCardFront", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '身份证反面图片 URL' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '身份证反面',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserVerifyModel.prototype, "idCardBack", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '手持身份证图片 URL' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '手持身份证',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserVerifyModel.prototype, "handHoldIdCard", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '审核状态:0=待审核,1=审核通过,2=审核驳回',
|
||||
enum: VerifyAuditStatus,
|
||||
}),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: VerifyAuditStatus.Pending,
|
||||
comment: '审核状态:0=待审核,1=审核通过,2=审核驳回',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], UserVerifyModel.prototype, "status", void 0);
|
||||
__decorate([
|
||||
(0, api_optional_decorator_1.ApiOptional)({ description: '驳回原因', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '驳回原因',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], UserVerifyModel.prototype, "rejectReason", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], UserVerifyModel.prototype, "user", void 0);
|
||||
exports.UserVerifyModel = UserVerifyModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '实名认证',
|
||||
})
|
||||
], UserVerifyModel);
|
||||
//# sourceMappingURL=user_verify.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user_verify.model.js","sourceRoot":"","sources":["../../src/model/user_verify.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAA0C;AAC1C,6CAAmE;AACnE,qDAA8D;AAC9D,2FAA6E;AAC7E,6CAAyC;AAKzC,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAE3B,+DAAW,CAAA;IAEX,iEAAY,CAAA;IAEZ,iEAAY,CAAA;AACd,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B;AAKM,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,uBAAS;IAS5C,MAAM,CAAS;IASf,QAAQ,CAAS;IASjB,QAAQ,CAAS;IASjB,WAAW,CAAS;IASpB,UAAU,CAAS;IASnB,cAAc,CAAS;IAWvB,MAAM,CAAoB;IAS1B,YAAY,CAAU;IAWtB,IAAI,CAAa;;;;CAClB,CAAA;AAtFY,0CAAe;AAS1B;IARC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;IACrC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,OAAO;KACjB,CAAC;;+CACa;AASf;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAClC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;KACd,CAAC;;iDACe;AASjB;IAPC,IAAA,qBAAW,EAAC,EAAE,W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AE,IAAI;KACf,CAAC;;qDACoB;AAWtB;IATC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,sBAAS;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE;QACzB,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,GAAE;8BACN,sBAAS;6CAAC;0BArFN,eAAe;IAH3B,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,MAAM;KAChB,CAAC;GACW,eAAe,CAsF3B"}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
export declare class WalletModel extends BaseModel {
|
||||
balance: string;
|
||||
frozenBalance: string;
|
||||
publicityFund: string;
|
||||
userId: number;
|
||||
user?: UserModel;
|
||||
financialProductEarnings: string;
|
||||
financialProductEarningsTime: string;
|
||||
totalRecharge: string;
|
||||
totalWithdraw: string;
|
||||
}
|
||||
Vendored
+134
@@ -0,0 +1,134 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.WalletModel = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const user_model_1 = require("./user.model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
let WalletModel = class WalletModel extends _base_model_1.BaseModel {
|
||||
balance;
|
||||
frozenBalance;
|
||||
publicityFund;
|
||||
userId;
|
||||
user;
|
||||
financialProductEarnings;
|
||||
financialProductEarningsTime;
|
||||
totalRecharge;
|
||||
totalWithdraw;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { balance: { required: true, type: () => String }, frozenBalance: { required: true, type: () => String }, publicityFund: { required: true, type: () => String }, userId: { required: true, type: () => Number }, user: { required: false, type: () => require("./user.model").UserModel }, financialProductEarnings: { required: true, type: () => String }, financialProductEarningsTime: { required: true, type: () => String }, totalRecharge: { required: true, type: () => String }, totalWithdraw: { required: true, type: () => String } };
|
||||
}
|
||||
};
|
||||
exports.WalletModel = WalletModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '余额' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
default: 0,
|
||||
comment: '余额',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WalletModel.prototype, "balance", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '冻结金额' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
default: 0,
|
||||
comment: '冻结金额',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WalletModel.prototype, "frozenBalance", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '宣传金余额' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
default: 0,
|
||||
comment: '宣传金余额',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WalletModel.prototype, "publicityFund", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户ID' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], WalletModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, (user) => user.wallet, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], WalletModel.prototype, "user", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '理财产品累积收益' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
default: 0,
|
||||
comment: '理财产品累积收益',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WalletModel.prototype, "financialProductEarnings", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '理财产品累积收益更新时间' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'datetime',
|
||||
default: () => 'CURRENT_TIMESTAMP',
|
||||
comment: '理财产品累积收益更新时间',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WalletModel.prototype, "financialProductEarningsTime", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '累计充值金额' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
default: 0,
|
||||
comment: '累计充值金额',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WalletModel.prototype, "totalRecharge", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '累计提现金额' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
default: 0,
|
||||
comment: '累计提现金额',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WalletModel.prototype, "totalWithdraw", void 0);
|
||||
exports.WalletModel = WalletModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '钱包',
|
||||
})
|
||||
], WalletModel);
|
||||
//# sourceMappingURL=wallet.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"wallet.model.js","sourceRoot":"","sources":["../../src/model/wallet.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAA0C;AAC1C,6CAAyC;AACzC,6CAAmE;AAK5D,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,uBAAS;IASxC,OAAO,CAAS;IAUhB,aAAa,CAAS;IAUtB,aAAa,CAAS;IAQtB,MAAM,CAAS;IAWf,IAAI,CAAa;IAUjB,wBAAwB,CAAS;IAQjC,4BAA4B,CAAS;IAUrC,aAAa,CAAS;IAUtB,aAAa,CAAS;;;;CACvB,CAAA;AAvFY,kCAAW;AAStB;IARC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAClC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,EAAE;QACb,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,IAAI;KACd,CAAC;;4CACc;AAUhB;IARC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,EAAE;QACb,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,MAAM;KAChB,CAAC;;kDACoB;AAUtB;IARC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE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EAAE,EAAE;QACb,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,QAAQ;KAClB,CAAC;;kDACoB;AAUtB;IARC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;IACtC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,EAAE;QACb,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,QAAQ;KAClB,CAAC;;kDACoB;sBAtFX,WAAW;IAHvB,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,IAAI;KACd,CAAC;GACW,WAAW,CAuFvB"}
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
export declare enum WalletBillType {
|
||||
Recharge = 601,
|
||||
WithdrawReject = 602,
|
||||
Transfer = 603,
|
||||
FinancialProfit = 604,
|
||||
FinancialPrincipalReturn = 605,
|
||||
Withdrawal = 901,
|
||||
FinancialBuy = 902
|
||||
}
|
||||
export declare class WalletBillModel extends BaseModel {
|
||||
type: WalletBillType;
|
||||
before: string;
|
||||
after: string;
|
||||
amount: string;
|
||||
remark?: string;
|
||||
userId: number;
|
||||
user?: UserModel;
|
||||
}
|
||||
Vendored
+127
@@ -0,0 +1,127 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.WalletBillModel = exports.WalletBillType = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const user_model_1 = require("./user.model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const is_enum_mumber_string_1 = require("../app/common/decorator/is_enum_mumber_string");
|
||||
const api_optional_decorator_1 = require("../app/common/decorator/api_optional.decorator");
|
||||
var WalletBillType;
|
||||
(function (WalletBillType) {
|
||||
WalletBillType[WalletBillType["Recharge"] = 601] = "Recharge";
|
||||
WalletBillType[WalletBillType["WithdrawReject"] = 602] = "WithdrawReject";
|
||||
WalletBillType[WalletBillType["Transfer"] = 603] = "Transfer";
|
||||
WalletBillType[WalletBillType["FinancialProfit"] = 604] = "FinancialProfit";
|
||||
WalletBillType[WalletBillType["FinancialPrincipalReturn"] = 605] = "FinancialPrincipalReturn";
|
||||
WalletBillType[WalletBillType["Withdrawal"] = 901] = "Withdrawal";
|
||||
WalletBillType[WalletBillType["FinancialBuy"] = 902] = "FinancialBuy";
|
||||
})(WalletBillType || (exports.WalletBillType = WalletBillType = {}));
|
||||
let WalletBillModel = class WalletBillModel extends _base_model_1.BaseModel {
|
||||
type;
|
||||
before;
|
||||
after;
|
||||
amount;
|
||||
remark;
|
||||
userId;
|
||||
user;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { type: { required: true, enum: require("./wallet_bill.model").WalletBillType }, before: { required: true, type: () => String }, after: { required: true, type: () => String }, amount: { required: true, type: () => String }, remark: { required: false, type: () => String }, userId: { required: true, type: () => Number }, user: { required: false, type: () => require("./user.model").UserModel } };
|
||||
}
|
||||
};
|
||||
exports.WalletBillModel = WalletBillModel;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, is_enum_mumber_string_1.IsEnumNumberString)(WalletBillType),
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '账单类型:Recharge=充值(601),WithdrawReject=提现驳回(602),Transfer=宣传金划转到余额(603),FinancialProfit=理财产品收益(604),FinancialPrincipalReturn=理财产品本金退回(605),Withdrawal=提现(901),FinancialBuy=购买理财产品(902)',
|
||||
enum: WalletBillType,
|
||||
}),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
comment: '账单类型:601=充值,602=提现驳回,603=宣传金划转到余额,604=理财产品收益,605=理财产品本金退回,901=提现,902=购买理财产品',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], WalletBillModel.prototype, "type", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '动账前现金余额' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
default: 0,
|
||||
comment: '动账前现金余额',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WalletBillModel.prototype, "before", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '动账后余额' }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
default: 0,
|
||||
comment: '动账后余额',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WalletBillModel.prototype, "after", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '动账金额,有正负' }),
|
||||
(0, class_validator_1.IsDecimal)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
comment: '动账金额,有正负',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WalletBillModel.prototype, "amount", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, api_optional_decorator_1.ApiOptional)({ description: '备注', nullable: true }),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '备注',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WalletBillModel.prototype, "remark", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], WalletBillModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], WalletBillModel.prototype, "user", void 0);
|
||||
exports.WalletBillModel = WalletBillModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '钱包账单',
|
||||
})
|
||||
], WalletBillModel);
|
||||
//# sourceMappingURL=wallet_bill.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"wallet_bill.model.js","sourceRoot":"","sources":["../../src/model/wallet_bill.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAA0C;AAC1C,6CAAyC;AACzC,6CAAmE;AACnE,qDAAyE;AACzE,yFAAmF;AACnF,2FAA6E;AAI7E,IAAY,cAeX;AAfD,WAAY,cAAc;IAExB,6DAAc,CAAA;IAEd,yEAAoB,CAAA;IAEpB,6DAAc,CAAA;IAEd,2EAAqB,CAAA;IAErB,6FAA8B,CAAA;IAE9B,iEAAgB,CAAA;IAEhB,qEAAkB,CAAA;AACpB,CAAC,EAfW,cAAc,8BAAd,c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AQ,EAAE,IAAI,EAAE,CAAC;IAClD,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;KACf,CAAC;;+CACc;AAShB;IAPC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACpC,IAAA,uBAAK,GAAE;IACP,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,MAAM;KAChB,CAAC;;+CACa;AAWf;IATC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,sBAAS;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE;QACzB,2BAA2B,EAAE,KAAK;KACnC,CAAC;IACD,IAAA,oBAAU,GAAE;8BACN,sBAAS;6CAAC;0BAvEN,eAAe;IAH3B,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,MAAM;KAChB,CAAC;GACW,eAAe,CAwE3B"}
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
import { BaseModel } from './_base_model';
|
||||
import { UserModel } from './user.model';
|
||||
import { UserBankModel } from './user_bank.model';
|
||||
export declare enum WithdrawStatus {
|
||||
Pending = 0,
|
||||
Success = 1,
|
||||
Rejected = 2
|
||||
}
|
||||
export declare class WithdrawModel extends BaseModel {
|
||||
userId: number;
|
||||
amount: string;
|
||||
actualAmount: string;
|
||||
status: WithdrawStatus;
|
||||
userBankId: number;
|
||||
cardNo: string;
|
||||
bankName: string;
|
||||
phone: string;
|
||||
rejectReason?: string;
|
||||
remark?: string;
|
||||
user?: UserModel;
|
||||
userBank?: UserBankModel;
|
||||
}
|
||||
Vendored
+184
@@ -0,0 +1,184 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
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;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.WithdrawModel = exports.WithdrawStatus = void 0;
|
||||
const openapi = require("@nestjs/swagger");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const _base_model_1 = require("./_base_model");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const is_enum_mumber_string_1 = require("../app/common/decorator/is_enum_mumber_string");
|
||||
const api_optional_decorator_1 = require("../app/common/decorator/api_optional.decorator");
|
||||
const user_model_1 = require("./user.model");
|
||||
const user_bank_model_1 = require("./user_bank.model");
|
||||
var WithdrawStatus;
|
||||
(function (WithdrawStatus) {
|
||||
WithdrawStatus[WithdrawStatus["Pending"] = 0] = "Pending";
|
||||
WithdrawStatus[WithdrawStatus["Success"] = 1] = "Success";
|
||||
WithdrawStatus[WithdrawStatus["Rejected"] = 2] = "Rejected";
|
||||
})(WithdrawStatus || (exports.WithdrawStatus = WithdrawStatus = {}));
|
||||
let WithdrawModel = class WithdrawModel extends _base_model_1.BaseModel {
|
||||
userId;
|
||||
amount;
|
||||
actualAmount;
|
||||
status;
|
||||
userBankId;
|
||||
cardNo;
|
||||
bankName;
|
||||
phone;
|
||||
rejectReason;
|
||||
remark;
|
||||
user;
|
||||
userBank;
|
||||
static _OPENAPI_METADATA_FACTORY() {
|
||||
return { userId: { required: true, type: () => Number }, amount: { required: true, type: () => String }, actualAmount: { required: true, type: () => String }, status: { required: true, enum: require("./withdraw.model").WithdrawStatus }, userBankId: { required: true, type: () => Number }, cardNo: { required: true, type: () => String }, bankName: { required: true, type: () => String }, phone: { required: true, type: () => String }, rejectReason: { required: false, type: () => String }, remark: { required: false, type: () => String }, user: { required: false, type: () => require("./user.model").UserModel }, userBank: { required: false, type: () => require("./user_bank.model").UserBankModel } };
|
||||
}
|
||||
};
|
||||
exports.WithdrawModel = WithdrawModel;
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '用户 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '用户 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], WithdrawModel.prototype, "userId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '提现金额' }),
|
||||
(0, class_validator_1.IsDecimal)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
comment: '提现金额',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WithdrawModel.prototype, "amount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '实际到账金额' }),
|
||||
(0, class_validator_1.IsDecimal)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'decimal',
|
||||
precision: 20,
|
||||
scale: 6,
|
||||
default: 0,
|
||||
comment: '实际到账金额',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WithdrawModel.prototype, "actualAmount", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({
|
||||
description: '提现状态:0=审核中,1=提现成功,2=提现驳回',
|
||||
enum: WithdrawStatus,
|
||||
}),
|
||||
(0, is_enum_mumber_string_1.IsEnumNumberString)(WithdrawStatus),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
default: WithdrawStatus.Pending,
|
||||
comment: '提现状态:0=审核中,1=提现成功,2=提现驳回',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], WithdrawModel.prototype, "status", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '银行卡 ID' }),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'int',
|
||||
unsigned: true,
|
||||
comment: '银行卡 ID',
|
||||
}),
|
||||
__metadata("design:type", Number)
|
||||
], WithdrawModel.prototype, "userBankId", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '银行卡号' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '银行卡号',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WithdrawModel.prototype, "cardNo", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '银行名称' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '银行名称',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WithdrawModel.prototype, "bankName", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ description: '手机号码' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '手机号码',
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WithdrawModel.prototype, "phone", void 0);
|
||||
__decorate([
|
||||
(0, api_optional_decorator_1.ApiOptional)({ description: '驳回原因', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '驳回原因',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WithdrawModel.prototype, "rejectReason", void 0);
|
||||
__decorate([
|
||||
(0, api_optional_decorator_1.ApiOptional)({ description: '备注', nullable: true }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, typeorm_1.Column)({
|
||||
type: 'varchar',
|
||||
comment: '备注',
|
||||
nullable: true,
|
||||
}),
|
||||
__metadata("design:type", String)
|
||||
], WithdrawModel.prototype, "remark", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '用户',
|
||||
type: user_model_1.UserModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_model_1.UserModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_model_1.UserModel)
|
||||
], WithdrawModel.prototype, "user", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiPropertyOptional)({
|
||||
description: '银行卡',
|
||||
type: user_bank_model_1.UserBankModel,
|
||||
nullable: true,
|
||||
}),
|
||||
(0, typeorm_1.OneToOne)(() => user_bank_model_1.UserBankModel, {
|
||||
createForeignKeyConstraints: false,
|
||||
}),
|
||||
(0, typeorm_1.JoinColumn)(),
|
||||
__metadata("design:type", user_bank_model_1.UserBankModel)
|
||||
], WithdrawModel.prototype, "userBank", void 0);
|
||||
exports.WithdrawModel = WithdrawModel = __decorate([
|
||||
(0, typeorm_1.Entity)({
|
||||
comment: '提现记录',
|
||||
})
|
||||
], WithdrawModel);
|
||||
//# sourceMappingURL=withdraw.model.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"withdraw.model.js","sourceRoot":"","sources":["../../src/model/withdraw.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA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