UserService.ts 445 B

12345678910111213141516171819202122232425
  1. import { Result } from '../utils';
  2. const fakeUserInfo = {
  3. userId: '1',
  4. username: 'Jeecg',
  5. realname: 'Jeecg Admin',
  6. desc: 'manager',
  7. password: '123456',
  8. token: 'fakeToken1',
  9. roles: [
  10. {
  11. roleName: 'Super Admin',
  12. value: 'super',
  13. },
  14. ],
  15. };
  16. export default class UserService {
  17. async login() {
  18. return Result.success(fakeUserInfo);
  19. }
  20. async getUserInfoById() {
  21. return Result.success(fakeUserInfo);
  22. }
  23. }