mirror of
https://github.com/docmost/docmost
synced 2025-03-28 21:13:28 +00:00
31 lines
852 B
TypeScript
31 lines
852 B
TypeScript
import { Injectable } from '@nestjs/common';
|
|
import { CreateUserDto } from './dto/create-user.dto';
|
|
import { UpdateUserDto } from './dto/update-user.dto';
|
|
import { InjectRepository } from '@nestjs/typeorm';
|
|
import { User } from './entities/user.entity';
|
|
import { UserRepository } from './repositories/user.repository';
|
|
|
|
@Injectable()
|
|
export class UserService {
|
|
constructor(@InjectRepository(User) private userRepository: UserRepository) {}
|
|
create(createUserDto: CreateUserDto) {
|
|
return 'This action adds a new user';
|
|
}
|
|
|
|
findAll() {
|
|
return `This action returns all user`;
|
|
}
|
|
|
|
findOne(id: number) {
|
|
return `This action returns a #${id} user`;
|
|
}
|
|
|
|
update(id: number, updateUserDto: UpdateUserDto) {
|
|
return `This action updates a #${id} user`;
|
|
}
|
|
|
|
remove(id: number) {
|
|
return `This action removes a #${id} user`;
|
|
}
|
|
}
|