index.ts 929 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import Menu from "./_menu"
  2. import User from "./_user"
  3. import Role from "./_role"
  4. import Config from "./_config"
  5. import Org from "./_org"
  6. import Notice from "./_notice"
  7. import Post from "./_post"
  8. import Dict from "./_dict"
  9. import Auth from "./_auth"
  10. import LoginLog from "./_loginLog"
  11. import operLog from "./_operLog"
  12. import client from "./_client"
  13. export interface ISystemApi {
  14. menuApi: Menu
  15. userApi: User
  16. roleApi: Role
  17. configApi: Config
  18. orgApi: Org
  19. noticeApi: Notice
  20. postApi: Post
  21. dictApi: Dict
  22. authApi: Auth
  23. loginLogApi: LoginLog
  24. operLogApi: operLog
  25. clientApi: client
  26. }
  27. export const apis: ISystemApi = {
  28. menuApi: new Menu(),
  29. userApi: new User(),
  30. roleApi: new Role(),
  31. configApi: new Config(),
  32. orgApi: new Org(),
  33. noticeApi: new Notice(),
  34. postApi: new Post(),
  35. dictApi: new Dict(),
  36. authApi: new Auth(),
  37. loginLogApi: new LoginLog(),
  38. operLogApi: new operLog(),
  39. clientApi: new client()
  40. }
  41. export default apis