sellerAccountGroup.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { requestApi } from '../util/network'
  2. // 获取店铺账户组列表
  3. export const getCommonData =
  4. () =>
  5. requestApi(
  6. '/Selleraccountgroup/get_common_data',
  7. 'POST',
  8. {
  9. },
  10. 'seller'
  11. )
  12. // 获取店铺子账户列表
  13. export const getAccountGroupList =
  14. () =>
  15. requestApi(
  16. '/Selleraccountgroup/group_list',
  17. 'POST',
  18. {
  19. },
  20. 'seller'
  21. )
  22. // 获取店铺单个子账户信息
  23. export const getAccountGroupInfo =
  24. (group_id) =>
  25. requestApi(
  26. '/Selleraccountgroup/group_edit',
  27. 'POST',
  28. {
  29. 'group_id': group_id,
  30. },
  31. 'seller'
  32. )
  33. // 删除店铺子账户
  34. export const delAccountGroup =
  35. (group_id) =>
  36. requestApi(
  37. '/Selleraccountgroup/group_del',
  38. 'POST',
  39. {
  40. 'group_id': group_id,
  41. },
  42. 'seller'
  43. )
  44. // 编辑店铺子账户
  45. export const editAccountGroup =
  46. (group_id, seller_group_name, menu, smt) =>
  47. requestApi(
  48. '/Selleraccountgroup/group_save',
  49. 'POST',
  50. {
  51. 'group_id': group_id,
  52. 'seller_group_name': seller_group_name,
  53. 'limits': menu,
  54. 'smt_limits': smt
  55. },
  56. 'seller'
  57. )