finnow/finnow-api/source/auth/data.d

12 lines
284 B
D

module auth.data;
import handy_httpd.components.optional;
import auth.model;
interface UserRepository {
Optional!User findByUsername(string username);
User[] findAll();
User createUser(string username, string passwordHash);
void deleteByUsername(string username);
}