"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