mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-03 00:19:57 -04:00
Add UsersModule
This contains the module, a service (which only returns mock data), a model and the UserInfo DTO. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
774f9cd8a3
commit
27126bcde1
5 changed files with 64 additions and 0 deletions
15
src/users/users.service.ts
Normal file
15
src/users/users.service.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { Injectable } from '@nestjs/common';
|
||||
import { UserInfoDto } from './user-info.dto';
|
||||
|
||||
@Injectable()
|
||||
export class UsersService {
|
||||
getUserInfo(): UserInfoDto {
|
||||
//TODO: Use the database
|
||||
return {
|
||||
displayName: 'foo',
|
||||
userName: 'fooUser',
|
||||
email: 'foo@example.com',
|
||||
photo: '',
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue