index.ts 876 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import { http } from '@/utils/http/axios';
  2. //图片上传
  3. export function upload(data) {
  4. return http.request({
  5. url: '/upload',
  6. method: 'post',
  7. data,
  8. });
  9. }
  10. //初始化配置数据
  11. export function initData(data?) {
  12. return http.request({
  13. url: '/common/initData',
  14. method: 'get',
  15. data,
  16. });
  17. }
  18. /**
  19. * @description: 验证码 Base64
  20. */
  21. export function captchaBase64(params) {
  22. return http.request({
  23. url: '/common/captchaBase64',
  24. method: 'GET',
  25. params,
  26. });
  27. }
  28. /**
  29. * @description: 岗位列表 不分页
  30. */
  31. export function postList(params?) {
  32. return http.request({
  33. url: '/common/queryPostList',
  34. method: 'GET',
  35. params,
  36. });
  37. }
  38. /**
  39. * @description: 租户列表(不分页)
  40. */
  41. export function tentantList(params?) {
  42. return http.request({
  43. url: '/common/queryTentantList',
  44. method: 'get',
  45. params,
  46. });
  47. }