mirror of
https://github.com/vastxie/99AI.git
synced 2024-11-16 11:42:25 +08:00
65 lines
3.2 KiB
JavaScript
65 lines
3.2 KiB
JavaScript
"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.OrderEntity = void 0;
|
||
const typeorm_1 = require("typeorm");
|
||
const baseEntity_1 = require("../../common/entity/baseEntity");
|
||
let OrderEntity = class OrderEntity extends baseEntity_1.BaseEntity {
|
||
};
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ unique: true, comment: '订单ID', length: 64 }),
|
||
__metadata("design:type", String)
|
||
], OrderEntity.prototype, "orderId", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ unique: true, comment: '交易ID(服务商)', length: 32, nullable: true }),
|
||
__metadata("design:type", String)
|
||
], OrderEntity.prototype, "tradeId", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '支付平台【epay|hupi】)', length: 32, nullable: true }),
|
||
__metadata("design:type", String)
|
||
], OrderEntity.prototype, "payPlatform", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '用户ID', nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], OrderEntity.prototype, "userId", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '商品ID', nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], OrderEntity.prototype, "goodsId", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '数量', default: 1 }),
|
||
__metadata("design:type", Number)
|
||
], OrderEntity.prototype, "count", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '套餐价格¥', type: 'decimal', scale: 2, precision: 10 }),
|
||
__metadata("design:type", Number)
|
||
], OrderEntity.prototype, "price", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '订单总金额', type: 'decimal', scale: 2, precision: 10 }),
|
||
__metadata("design:type", Number)
|
||
], OrderEntity.prototype, "total", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '订单状态(0:未支付、1:已支付、2、支付失败、3:支付超时)', default: 0 }),
|
||
__metadata("design:type", Number)
|
||
], OrderEntity.prototype, "status", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ type: 'datetime', length: 0, nullable: true, comment: '支付时间' }),
|
||
__metadata("design:type", Date)
|
||
], OrderEntity.prototype, "paydAt", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '支付渠道)', length: 32, nullable: true }),
|
||
__metadata("design:type", String)
|
||
], OrderEntity.prototype, "channel", void 0);
|
||
OrderEntity = __decorate([
|
||
(0, typeorm_1.Entity)({ name: 'order' })
|
||
], OrderEntity);
|
||
exports.OrderEntity = OrderEntity;
|