增加一个渠道绑定

This commit is contained in:
wuweihua
2026-11-10 16:21:07 +08:00
parent e6a9fcf0a2
commit 1a0483c7fe
20 changed files with 940 additions and 147 deletions
+29
View File
@@ -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'
})
}