secAdmin.ts 1.0 KB

12345678910111213141516171819202122232425
  1. /**
  2. * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
  3. * No deletion without permission, or be held responsible to law.
  4. * @author ThinkGem
  5. */
  6. import { defHttp } from '@jeesite/core/utils/http/axios';
  7. import { useGlobSetting } from '@jeesite/core/hooks/setting';
  8. import { Page } from '@jeesite/core/api/model/baseModel';
  9. import { User } from '@jeesite/core/api/sys/user';
  10. const { adminPath } = useGlobSetting();
  11. export const secAdminList = (params?: User | any) =>
  12. defHttp.get<User>({ url: adminPath + '/sys/secAdmin/list', params });
  13. export const secAdminListData = (params?: User | any) =>
  14. defHttp.post<Page<User>>({ url: adminPath + '/sys/secAdmin/listData', params });
  15. export const secAdminForm = (params?: User | any) =>
  16. defHttp.get<User>({ url: adminPath + '/sys/secAdmin/form', params });
  17. export const secAdminSave = (params?: any) => defHttp.post<User>({ url: adminPath + '/sys/secAdmin/save', params });
  18. export const secAdminDelete = (params?: User | any) =>
  19. defHttp.get<User>({ url: adminPath + '/sys/secAdmin/delete', params });