backend/source/services/user.ts

25 lines
367 B
TypeScript
Raw Normal View History

2024-09-18 18:17:25 +02:00
namespace _zeitbild.service.user
{
/**
*/
export function add(
2024-09-21 11:05:24 +02:00
user_object : _zeitbild.type_user_object
) : Promise<_zeitbild.type_user_id>
2024-09-18 18:17:25 +02:00
{
return _zeitbild.repository.user.create(user_object);
}
/**
*/
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);
}
}