import { Injectable , BadRequestException , HttpService } from '@nestjs/common' ; import { RegisterDto } from '../form/register.dto' ; import { UserEntity } from '../entities/user.entity' ; import { LoginDto } from '../form/login.dto' ; import { UpdateUserDto } from '../form/updateUser.dto' ; import { UserResumeEntity } from '../entities/user_resume.entity' ; import { UserThemeEntity } from '../entities/user_theme.entity' ; import { UpdateThemeDto } from '../form/updateTheme.dto' ; @ Injectable ( ) export class UserService { constructor ( ) { } register ( registerDto , userRank ) { return UserEntity . register ( registerDto , userRank ) ; } getUser ( userId ) { return UserEntity . getUser ( userId ) ; } getBaseInfo ( nickname ? , userId ? , domain ? ) { return UserEntity . getBaseInfo ( nickname , userId , domain ) ; } getDomainList ( ) { return UserEntity . getDomainList ( ) ; } login ( loginDto ) { return UserEntity . login ( loginDto ) ; } updateUser ( updateUserDto , userId ) { return UserEntity . updateUser ( updateUserDto , userId ) ; } getResume ( userId ) { return UserResumeEntity . getResume ( userId ) ; } updateResume ( userId , content ) { return UserResumeEntity . updateResume ( userId , content ) ; } updateTheme ( userId , theme ) { return UserThemeEntity . updateTheme ( userId , theme ) ; } }