Web API for code.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
365 B

  1. import { Uuid } from '@theoryofnekomata/uuid-buffer';
  2. import { UserService, UserServiceImpl } from '../src/modules/user'
  3. const main = async () => {
  4. const userService: UserService = new UserServiceImpl()
  5. const newUser = await userService.create({
  6. username: 'username',
  7. password: 'password',
  8. })
  9. console.log(Uuid.from(newUser.id).toString());
  10. }
  11. void main()