Files
code-bang/frontend/miniapp/services/promoter/fetchPromoter.js
T
2026-10-14 14:44:01 +08:00

20 lines
616 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** 绑定推广人(已绑定过的用户后端会忽略) */
export function bindPromoter(params) {
return wx.$util.request(wx.$api.PromotionBind, params, 'POST');
}
/** 获取推广中心概览 */
export function fetchPromoterInfo() {
return wx.$util.request(wx.$api.PromotionInfo, {}, 'GET');
}
/** 获取推广订单列表 */
export function fetchPromoterOrders(params) {
return wx.$util.request(wx.$api.PromotionOrders, params, 'GET');
}
/** 获取推广小程序码(data URL) */
export function fetchPromoterQrcode(params) {
return wx.$util.request(wx.$api.PromotionQrcode, params, 'GET');
}