index.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. import request from '@/config/axios'
  2. // 发送验证码
  3. export const sendSmsCode = async (data) => {
  4. return await request.post({
  5. url: '/app-api/menduner/system/auth/send-sms-code',
  6. data
  7. })
  8. }
  9. // 验证码登录
  10. export const smsLogin = async (data) => {
  11. return await request.post({
  12. url: '/app-api/menduner/system/auth/sms-login',
  13. data
  14. })
  15. }
  16. // 密码登录
  17. export const passwordLogin = async (data) => {
  18. return await request.post({
  19. url: '/app-api/menduner/system/auth/login',
  20. data
  21. })
  22. }
  23. // 退出登录
  24. export const logout = async () => {
  25. return await request.post({
  26. url: '/app-api/menduner/system/auth/logout'
  27. })
  28. }
  29. // 修改密码
  30. export const updatePassword = async (data) => {
  31. return await request.put({
  32. url: '/app-api/menduner/system/mde-user/update-password',
  33. data
  34. })
  35. }
  36. // 重置密码
  37. export const resetPassword = async (data) => {
  38. return await request.post({
  39. url: '/admin-api/menduner/system/mde-user/update-password',
  40. data
  41. })
  42. }
  43. // 字典
  44. export const getDictData = async (params) => {
  45. return await request.get({
  46. url: '/app-api/system/dict-data/type',
  47. params
  48. })
  49. }
  50. // 点击访问职位埋点
  51. export const getPositionTreeClick = async (data) => {
  52. return await request.post({
  53. url: '/app-api/menduner/system/position/click',
  54. data
  55. })
  56. }
  57. // 获取热门职位
  58. export const getHotPositionList = async (params) => {
  59. return await request.get({
  60. url: '/app-api/menduner/system/position/hot',
  61. params
  62. })
  63. }
  64. // 获得职位信息
  65. export const getPositionTreeData = async (params) => {
  66. return await request.get({
  67. url: '/app-api/menduner/system/position/get/tree',
  68. params
  69. })
  70. }
  71. // 获取区域树形
  72. export const getAreaTreeData = async () => {
  73. return await request.get({
  74. url: '/app-api/menduner/system/area/get/tree'
  75. })
  76. }
  77. // 获取行业树形
  78. export const getIndustryTreeData = async (params) => {
  79. return await request.get({
  80. url: '/app-api/menduner/system/industry/get/tree',
  81. params
  82. })
  83. }
  84. // 获取行业列表
  85. export const getIndustryListData = async (params) => {
  86. return await request.get({
  87. url: '/app-api/menduner/system/industry/list',
  88. params
  89. })
  90. }
  91. // 获取地区列表
  92. export const getAreaListData = async (params) => {
  93. return await request.get({
  94. url: '/app-api/menduner/system/area/list',
  95. params
  96. })
  97. }
  98. // 公司检索-获取热门地区
  99. export const getHotArea = async () => {
  100. return await request.get({
  101. url: '/app-api/menduner/system/area/get/hot'
  102. })
  103. }