auth.ts 849 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. interface UserModel extends Auth.UserInfo {
  2. token: string;
  3. refreshToken: string;
  4. password: string;
  5. }
  6. export const userModel: UserModel[] = [
  7. {
  8. token: '__TOKEN_SOYBEAN__',
  9. refreshToken: '__REFRESH_TOKEN_SOYBEAN__',
  10. userId: '0',
  11. userName: 'Soybean',
  12. userRole: 'super',
  13. password: 'soybean123'
  14. },
  15. {
  16. token: '__TOKEN_SUPER__',
  17. refreshToken: '__REFRESH_TOKEN_SUPER__',
  18. userId: '1',
  19. userName: 'Super',
  20. userRole: 'super',
  21. password: 'super123'
  22. },
  23. {
  24. token: '__TOKEN_ADMIN__',
  25. refreshToken: '__REFRESH_TOKEN_ADMIN__',
  26. userId: '2',
  27. userName: 'Admin',
  28. userRole: 'admin',
  29. password: 'admin123'
  30. },
  31. {
  32. token: '__TOKEN_USER01__',
  33. refreshToken: '__REFRESH_TOKEN_USER01__',
  34. userId: '3',
  35. userName: 'User01',
  36. userRole: 'user',
  37. password: 'user01123'
  38. }
  39. ];