api.ts 623 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { request } from '/@/utils/service'
  2. export const apiPrefix = '/api/ad_manage/sp/search'
  3. export function getProductSelect() {
  4. return request({
  5. url: apiPrefix + '/item',
  6. method: 'get',
  7. })
  8. }
  9. export function getProductline(query: any) {
  10. return request({
  11. url: '/api/sellers/productline/',
  12. method: 'get',
  13. params: query,
  14. })
  15. }
  16. export function getParentAsin(body: any) {
  17. return request({
  18. url: apiPrefix + '/pasin',
  19. method: 'post',
  20. data: body,
  21. })
  22. }
  23. export function getSearchedItem(body: any) {
  24. return request({
  25. url: apiPrefix,
  26. method: 'post',
  27. data: body,
  28. })
  29. }