api.js 1014 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * NOTE HOST、HOST_M 是在 config 中通过 defineConstants 配置的
  3. * 只所以不在代码中直接引用,是因为 eslint 会报 no-undef 的错误,因此用如下方式处理
  4. */
  5. /* eslint-disable */
  6. export const host = HOST
  7. export const hostM = HOST_M
  8. /* eslint-enable */
  9. // pic
  10. export const CDN = 'https://yanxuan.nosdn.127.net'
  11. // user
  12. export const API_USER_LOGIN = `${host}/gw/user/login` // 登录
  13. export const API_USER_Template= `${host}/gw/user/reportTemplate` // 模板列表
  14. export const API_USER_deleteTemplate= `${host}/gw/user/reportTemplate` // 删除模板
  15. // list
  16. export const API_USER_REPORTS = `${host}/gw/user/reports` // 我的列表
  17. export const API_USER_DETAIL = `${host}/gw/user/reportTemplate` // 模板详情
  18. // report
  19. export const API_USER_QUERY = `${host}/gw/user/company/query` // 获取企业列表
  20. export const API_USER_AEADDREPORTS = `${host}/gw/user/company` // 新增企业名称
  21. export const API_USER_REPORTDETAIL = `${host}/gw/user/report` // 报告详情