backend/source/services/user.ts

41 lines
545 B
TypeScript
Raw Permalink Normal View History

2024-09-18 18:17:25 +02:00
namespace _zeitbild.service.user
{
/**
*/
export function list(
) : Promise<
Array<
{
id : _zeitbild.type_user_id;
name : string;
}
>
>
2024-09-18 18:17:25 +02:00
{
return _zeitbild.repository.user.list();
2024-09-18 18:17:25 +02:00
}
/**
*/
export function identify(
name : string
2024-09-21 11:05:24 +02:00
) : Promise<_zeitbild.type_user_id>
2024-09-18 18:17:25 +02:00
{
return _zeitbild.repository.user.identify(name);
}
/**
*/
export function add(
user_object : _zeitbild.type_user_object
) : Promise<_zeitbild.type_user_id>
{
return _zeitbild.repository.user.create(user_object);
}
2024-09-18 18:17:25 +02:00
}