api.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /***
  2. * 文档地址 http://shyaf-artist-platform.suggest.vip/swagger-ui.html#/
  3. * **/
  4. //生产环境
  5. const host = "https://artist-platform.artouchstone.com/";
  6. //开发环境
  7. // const host = "https://platform-dev.artouchstone.com/artist/";
  8. //const host = "http://192.168.0.33:8080/";
  9. const socket="wss://cmcstudymp.suggest.vip/websocket/course/ware/study/";
  10. const api = {
  11. socket:socket,
  12. apiName: `api_url`, //注释
  13. //code 换取 wxcode
  14. code:`api/weixin/sdk/ma/WxMaCommandController/code2session`,
  15. //获取用户token
  16. getUserToken:`api/weixin/sdk/ma/WxMaCommandController/getUserToken`,
  17. //登录
  18. login:"api/auth/sdk/loginByUserToken",
  19. //微信小程序更新并创建微信用户
  20. updateWxUserInfo:`/api/weixin/sdk/ma/WxMaCommandController/updateWxUserInfo`,
  21. //上传文件
  22. upload:"api/file/sdk/upload",
  23. //获取销售方信息
  24. findSale:"api/sale/SaleInfoRestReadFacade/findSale",
  25. //获取销售方列表
  26. querySale:"api/sale/SaleInfoRestReadFacade/querySale",
  27. //删除销售方信息
  28. removeSale:"api/sale/SaleInfoRestWriteFacade/removeSale",
  29. //新增/更新销售方
  30. updateSale:"api/sale/SaleInfoRestWriteFacade/updateSale",
  31. //艺术家开票身份验证
  32. updateArtistUserInvoice:"api/artist/ArtistUserRestWriteFacade/updateArtistUserInvoice",
  33. //艺术家开票合同模板下载
  34. downloadArtistUserInvoice:"api/contract/ContractRestWriteFacade/downloadArtistUserInvoice",
  35. //艺术家开票合同上传
  36. uploadArtistUserInvoice:"api/contract/ContractRestWriteFacade/uploadArtistUserInvoice",
  37. //开票信息填写
  38. addInvoice:"api/invoice/InvoiceRestWriteFacade/addInvoice",
  39. //获取发票抬头列表
  40. queryInvoiceBuy:"api/invoice/InvoiceRestReadFacade/queryInvoiceBuy",
  41. //发票订单信息列表
  42. queryOrderInvoiceBuy:"api/order/InvoiceOrderRestReadFacade/queryInvoiceBuy",
  43. //获取发票订单详细信息
  44. queryOrderInvoiceInfo:"api/invoice/InvoiceRestReadFacade/queryInvoiceInfo",
  45. //更新发票订单状态
  46. updateInvoiceOrder:"api/order/InvoiceOrderRestWriteFacade/updateInvoiceOrder",
  47. //获取服务费发票信息
  48. queryInvoiceServiceInfo:"api/invoice/InvoiceRestReadFacade/queryInvoiceServiceInfo",
  49. //开具服务费发票
  50. updateInvoiceServiceOrder:"api/order/InvoiceOrderRestWriteFacade/updateInvoiceServiceOrder",
  51. //学历字典接口
  52. findByCode:"api/DicReadFacade/findByCode",
  53. findTreeByType:"api/CategoryRestReadFacade/findTreeByType",
  54. //通过id查找作品详情
  55. artFindById:"api/OpusRestReadFacade/findById",
  56. //查询用户的作品列表
  57. artFindPage:"api/OpusRestReadFacade/findPage",
  58. //新增作品
  59. artAdd:"api/OpusRestWriteFacade/add",
  60. //更新作品
  61. artUpdate:"api/OpusRestWriteFacade/update",
  62. //获取基本信息(个人中心页展示)
  63. getBaseInfo:"api/UserRestReadFacade/getBaseInfo",
  64. //获取详细公司入驻信息
  65. getCompanySettledInfo:"api/UserRestReadFacade/getCompanySettledInfo",
  66. //获取消息
  67. getMessage:"api/UserRestReadFacade/getMessage",
  68. //获取详细个人入驻信息
  69. getPersonalSettledInfo:"api/UserRestReadFacade/getPersonalSettledInfo",
  70. //获取用户的一些认证信息
  71. getUserSettleInfo:"api/UserRestReadFacade/getUserSettleInfo",
  72. //添加(更新)公司详情
  73. addCompanyDetails:"api/UserRestWriteFacade/addCompanyDetails",
  74. //添加(更新)个人详情
  75. addPersonalDetails: "/api/UserRestWriteFacade/addPersonalDetails",
  76. // 同意协议 员工0 企业1 策展2 SettledTypeEnum
  77. agreement:"api/UserRestWriteFacade/agreement",
  78. readMsg:"api/UserRestWriteFacade/readMsg",
  79. getBanner:"api/BannerRestReadFacade/findList",
  80. getUserPhone:"api/weixin/sdk/ma/WxMaCommandController/getUserPhone",
  81. //服务留资
  82. addLeaveInfo:"api/LeaveInfoRestWriteFacade/add",
  83. //物流追踪
  84. findExpressList:"api/express/InvoiceExpressReadFacade/findExpressList",
  85. /**
  86. * 邀请函
  87. * add by yangkun 20211023
  88. */
  89. InvitationSave: "api/InvitesFacade/add", // 登记信息提交
  90. InvitationUpdate: "/api/InvitesFacade/update", // 登记信息修改
  91. InvitationGet: "/api/InvitesFacade/findByUid", // 个人登记信息查询
  92. InvitationGetId: "/api/InvitesFacade/findById", // 管理登记信息查询
  93. InvitationVerification: "api/InvitesFacade/updateInvites" // 登记信息核销
  94. };
  95. const apiInit={};
  96. Object.keys(api).forEach(key => {
  97. apiInit[key]=`${host}${api[key]}`
  98. });
  99. apiInit.socket=socket;
  100. export default apiInit;