{"size": 303, "ext": "js", "max_stars_repo_path": "src/api/product.js", "max_stars_repo_name": "Sea-DH1/mall-app", "max_stars_repo_stars_event_min_datetime": "2021-11-24T05:35:13.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-24T05:35:13.000Z", "max_issues_repo_path": "src/api/product.js", "max_issues_repo_name": "Sea-DH1/mall-app", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/product.js", "max_forks_repo_name": "Sea-DH1/mall-app", "max_forks_repo_forks_event_min_datetime": "2019-07-24T05:43:36.000Z", "max_forks_repo_forks_event_max_datetime": "2020-04-13T14:48:55.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 17.8235294118, "max_line_length": 47, "alphanum_fraction": 0.603960396}
import { require } from './require';

export function getProductList(data) {  // 商品列表
  return require({
    url: '/product/list.do',
    params: data
  })
}

export function getProductDetail(id) {  // 商品详情
  return require({
    url: '/product/detail.do',
    params: {
      productId: id
    }
  })
}