Repository navigation
Expand file tree
/
Copy pathonecode.js
More file actions
executable file
·91 lines (80 loc) · 1.59 KB
/
Copy pathonecode.js
File metadata and controls
executable file
·91 lines (80 loc) · 1.59 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/**
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
* See LICENSE file for license details.
*/
import { fetch } from './request'
// 物品
export function getThingsList(query) {
return fetch({
url: '/onecode/things',
method: 'get',
params: query
})
}
export function getThingsDetail(thingId) {
return fetch({
url: '/onecode/things/' + thingId,
method: 'get'
})
}
export function createThings(query) {
return fetch({
url: '/onecode/things',
method: 'post',
params: query
})
}
export function updateThings(thingId, query) {
return fetch({
url: '/onecode/things/' + thingId,
method: 'put',
params: query
})
}
export function deleteThings(thingId) {
return fetch({
url: '/onecode/things/' + thingId,
method: 'delete'
})
}
// 批次
export function getBatchsList(query) {
return fetch({
url: '/onecode/batchs',
method: 'get',
params: query
})
}
export function getBatchsDetail(batchId) {
return fetch({
url: '/onecode/batchs/' + batchId,
method: 'get'
})
}
export function createBatchs(query) {
return fetch({
url: '/onecode/batchs',
method: 'post',
params: query
})
}
export function updateBatchs(batchId, query) {
return fetch({
url: '/onecode/batchs/' + batchId,
method: 'put',
params: query
})
}
export function deleteBatchs(batchId) {
return fetch({
url: '/onecode/batchs/' + batchId,
method: 'delete'
})
}
export function getWxaOneCodeStream(query) {
return fetch({
url: '/onecode/wxaOneCodeStream',
method: 'get',
params: query
})
}