MrShi
2 天以前 108019e27e8958dbf474b8b9bea3fb5fbf7198d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import request from '../../utils/request'
 
export function fetchList (data) {
  return request.post('/business/shopInfo/page', data, {
    trim: true
  })
}
 
export function create (data) {
  return request.post('/business/shopInfo/create', data)
}
 
export function updateStatus (data) {
  return request.post('/business/shopInfo/updateStatus', data)
}
 
export function updateById (data) {
  return request.post('/business/shopInfo/updateShop', data)
}
 
export function deleteById (id) {
  return request.get(`/business/shopInfo/delete/${id}`)
}
 
export function deleteByIdInBatch (ids) {
  return request.get('/business/shopInfo/delete/batch', {
    params: {
      ids
    }
  })
}
 
// 修改门店状态
export function changeStatus (data) {
  return request.post('/business/shopInfo/changeStatus', data)
}
 
// 门店详情
export function detail (id) {
  return request.get(`/business/shopInfo/detail/${id}`)
}
 
// 重置密码
export function resetPassword (data) {
  return request.post('/business/shopInfo/resetPassword', data)
}
 
// 门店审批
export function audit (data) {
  return request.post('/business/shopInfo/audit', data)
}