Web API for code.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

15 行
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()