user.mock.js 468 B

123456789101112131415161718
  1. /**
  2. * @created by zhanglin3 2024-07-29 19:40:19
  3. * @updated by zhanglin3 2024-07-29 19:40:19
  4. * @description 用户相关接口模拟定义
  5. */
  6. import { defineMock, backend, normalResponse } from '@/../mock/shared/utils.js';
  7. export default defineMock([
  8. // 获取用户机构列表
  9. {
  10. url: `${backend.appOcaService}/api/w/oca/priv/usrorgrel/usrorglist`,
  11. method: 'POST',
  12. enabled: true,
  13. body: () => {
  14. return normalResponse([]);
  15. },
  16. },
  17. ]);