You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tryFullStack/backend/dist/users/dto/user-info-response.dto.js

42 lines
2.3 KiB

2 months ago
"use strict";
2 months ago
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);
};
2 months ago
Object.defineProperty(exports, "__esModule", { value: true });
2 months ago
exports.UserInfoResponseDto = void 0;
2 months ago
const openapi = require("@nestjs/swagger");
const swagger_1 = require("@nestjs/swagger");
2 months ago
const profile_response_dto_1 = require("../../profiles/dto/profile-response.dto");
2 months ago
class UserInfoResponseDto {
id;
name;
email;
2 months ago
profile;
2 months ago
static _OPENAPI_METADATA_FACTORY() {
2 months ago
return { id: { required: true, type: () => Number }, name: { required: true, type: () => String }, email: { required: false, type: () => String }, profile: { required: false, type: () => require("../../profiles/dto/profile-response.dto").ProfileResponseDto } };
2 months ago
}
2 months ago
}
exports.UserInfoResponseDto = UserInfoResponseDto;
2 months ago
__decorate([
(0, swagger_1.ApiProperty)({ description: '사용자 아이디', example: 1 }),
__metadata("design:type", Number)
], UserInfoResponseDto.prototype, "id", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: '사용자 이름', example: 'username' }),
__metadata("design:type", String)
], UserInfoResponseDto.prototype, "name", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: '사용자 이메일', example: 'user@email.com' }),
__metadata("design:type", String)
], UserInfoResponseDto.prototype, "email", void 0);
2 months ago
__decorate([
2 months ago
(0, swagger_1.ApiProperty)({ description: '프로필', required: false, type: () => profile_response_dto_1.ProfileResponseDto }),
__metadata("design:type", profile_response_dto_1.ProfileResponseDto)
], UserInfoResponseDto.prototype, "profile", void 0);
2 months ago
//# sourceMappingURL=user-info-response.dto.js.map