增加一个渠道绑定
This commit is contained in:
@@ -93,6 +93,13 @@ export function activateLabelVersion(priceSetId, versionNo, data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteLabelVersion(priceSetId, versionNo) {
|
||||
return request({
|
||||
url: '/price/label/' + priceSetId + '/versions/' + versionNo,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function listLabelProducts(priceSetId, versionNo) {
|
||||
return request({
|
||||
url: '/price/label/' + priceSetId + '/products',
|
||||
@@ -154,3 +161,25 @@ export function removeLabelProducts(priceSetId, productIds) {
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function listLabelChannels(priceSetId) {
|
||||
return request({
|
||||
url: '/price/label/' + priceSetId + '/channels',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function bindLabelChannels(priceSetId, data) {
|
||||
return request({
|
||||
url: '/price/label/' + priceSetId + '/channels',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function unbindLabelChannel(priceSetId, channelId) {
|
||||
return request({
|
||||
url: '/price/label/' + priceSetId + '/channels/' + channelId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user