123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import request from '@/utils/request'
- export function listCustomer(query) {
- return request({
- url: '/system/customer/list',
- method: 'get',
- params: query
- })
- }
- export function getCustomer(id) {
- return request({
- url: '/system/customer/' + id,
- method: 'get'
- })
- }
- export function addCustomer(data) {
- return request({
- url: '/system/customer',
- method: 'post',
- data: data
- })
- }
- export function updateCustomer(data) {
- return request({
- url: '/system/customer',
- method: 'put',
- data: data
- })
- }
- export function delCustomer(id) {
- return request({
- url: '/system/customer/' + id,
- method: 'delete'
- })
- }
|