mirror of
https://github.com/vastxie/99AI.git
synced 2025-09-19 01:56:38 +08:00
42 lines
2.3 KiB
JavaScript
42 lines
2.3 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.UpdateUserDto = void 0;
|
||
const class_validator_1 = require("class-validator");
|
||
const swagger_1 = require("@nestjs/swagger");
|
||
class UpdateUserDto {
|
||
}
|
||
__decorate([
|
||
(0, swagger_1.ApiProperty)({ example: 'cooper', nullable: true, description: '用户名称', required: false }),
|
||
(0, class_validator_1.MinLength)(2, { message: '用户名最低需要大于2位数!' }),
|
||
(0, class_validator_1.MaxLength)(12, { message: '用户名不得超过12位!' }),
|
||
(0, class_validator_1.IsNotEmpty)({ message: '用户名不能为空!' }),
|
||
(0, class_validator_1.IsOptional)(),
|
||
__metadata("design:type", String)
|
||
], UpdateUserDto.prototype, "username", void 0);
|
||
__decorate([
|
||
(0, swagger_1.ApiProperty)({ example: '', description: '用户头像', required: false }),
|
||
(0, class_validator_1.IsNotEmpty)({ message: '用户头像不能为空!' }),
|
||
(0, class_validator_1.IsOptional)(),
|
||
__metadata("design:type", String)
|
||
], UpdateUserDto.prototype, "avatar", void 0);
|
||
__decorate([
|
||
(0, swagger_1.ApiProperty)({
|
||
example: '我是一台基于深度学习和自然语言处理技术的 AI 机器人,旨在为用户提供高效、精准、个性化的智能服务。',
|
||
description: '用户签名',
|
||
required: false,
|
||
}),
|
||
(0, class_validator_1.IsNotEmpty)({ message: '用户签名不能为空!' }),
|
||
(0, class_validator_1.IsOptional)(),
|
||
__metadata("design:type", String)
|
||
], UpdateUserDto.prototype, "sign", void 0);
|
||
exports.UpdateUserDto = UpdateUserDto;
|