collection.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import request from '@/utils/request'
  2. // 查询用户信息采集列表
  3. export function listCollection(query) {
  4. return request({
  5. url: '/hisStore/collection/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询用户信息采集详细
  11. export function getCollection(id) {
  12. return request({
  13. url: '/hisStore/collection/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 查询用户信息采集详细
  18. export function getInfo(query) {
  19. return request({
  20. url: '/hisStore/collection/getInfo',
  21. method: 'get',
  22. params: query
  23. })
  24. }
  25. // 新增用户信息采集
  26. export function addCollection(data) {
  27. return request({
  28. url: '/hisStore/collection',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 修改用户信息采集
  34. export function updateCollection(data) {
  35. return request({
  36. url: '/hisStore/collection',
  37. method: 'put',
  38. data: data
  39. })
  40. }
  41. // 删除用户信息采集
  42. export function delCollection(id) {
  43. return request({
  44. url: '/hisStore/collection/' + id,
  45. method: 'delete'
  46. })
  47. }
  48. // 导出用户信息采集
  49. export function exportCollection(query) {
  50. return request({
  51. url: '/hisStore/collection/export',
  52. method: 'get',
  53. params: query
  54. })
  55. }
  56. export function getWxaCodeCollectionUnLimit(collectionId) {
  57. return request({
  58. url: '/hisStore/collection/getWxaCodeCollectionUnLimit/'+collectionId,
  59. method: 'get',
  60. })
  61. }