{"size": 573, "ext": "js", "max_stars_repo_path": "apps/edfx-app-archives/edfx-app-card-customer/webapi.js", "max_stars_repo_name": "whatmk/new", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "apps/edfx-app-archives/edfx-app-card-customer/webapi.js", "max_issues_repo_name": "whatmk/new", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "apps/edfx-app-archives/edfx-app-card-customer/webapi.js", "max_forks_repo_name": "whatmk/new", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.8333333333, "max_line_length": 77, "alphanum_fraction": 0.5916230366}
/**
 * webapi.js 封装app所需的所有web请求
 * 供app测试使用，app加入网站后webpai应该由网站通过config,提供给每个app
 */


import { fetch } from 'mk-utils'

export default {
    customer: {
        query: () => fetch.post('/v1/customerArchive/query', {}),
        findById: (id) => fetch.post('/v1/customer/findById', { id }),
        create: (option) => fetch.post('/v1/customerArchive/create', option),
        update: (option) => fetch.post('/v1/customer/update', option),
        prev: (id) => fetch.post('/v1/customer/prev', { id }),
        next: (id) => fetch.post('/v1/customer/next', { id })
    }
}