"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.ImVo = exports.UserVo = void 0; const openapi = require("@nestjs/swagger"); const swagger_1 = require("@nestjs/swagger"); const swagger_2 = require("@nestjs/swagger"); const user_model_1 = require("../../../model/user.model"); class UserVo extends (0, swagger_2.OmitType)(user_model_1.UserModel, [ 'password', 'tradePassword', ]) { hasTradePassword; static _OPENAPI_METADATA_FACTORY() { return { hasTradePassword: { required: false, type: () => Boolean } }; } } exports.UserVo = UserVo; __decorate([ (0, swagger_1.ApiProperty)({ description: '是否已设置交易密码', nullable: true }), __metadata("design:type", Boolean) ], UserVo.prototype, "hasTradePassword", void 0); class ImVo { prefix; uid; tolen; sign; appId; isAuth; isBuy; username; avatar; enabledCreateGroup; static _OPENAPI_METADATA_FACTORY() { return { prefix: { required: true, type: () => String }, uid: { required: true, type: () => String }, tolen: { required: true, type: () => String }, sign: { required: true, type: () => String }, appId: { required: true, type: () => Number }, isAuth: { required: true, type: () => Boolean }, isBuy: { required: true, type: () => Boolean }, username: { required: true, type: () => String }, avatar: { required: true, type: () => String }, enabledCreateGroup: { required: true, type: () => Boolean } }; } } exports.ImVo = ImVo; __decorate([ (0, swagger_1.ApiProperty)({ description: 'prefix' }), __metadata("design:type", String) ], ImVo.prototype, "prefix", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'IM用户ID' }), __metadata("design:type", String) ], ImVo.prototype, "uid", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'token' }), __metadata("design:type", String) ], ImVo.prototype, "tolen", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'IM签名' }), __metadata("design:type", String) ], ImVo.prototype, "sign", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'appId' }), __metadata("design:type", Number) ], ImVo.prototype, "appId", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: '是否实名认证 0:未实名 1:已实名' }), __metadata("design:type", Boolean) ], ImVo.prototype, "isAuth", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: '是否有购买NFR产品' }), __metadata("design:type", Boolean) ], ImVo.prototype, "isBuy", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'APP username' }), __metadata("design:type", String) ], ImVo.prototype, "username", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'APP 头像' }), __metadata("design:type", String) ], ImVo.prototype, "avatar", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: '是否有创建群的权限' }), __metadata("design:type", Boolean) ], ImVo.prototype, "enabledCreateGroup", void 0); //# sourceMappingURL=user.vo.js.map