import { MainRequest } from '../../utils'

// /user/getPlatformShop 获取绑定的商家信息
/*
data: {
	platformUserId
}
*/
export const getPlatformShop = (params) => MainRequest('/user/getPlatformShop', params)

// /user/getPlatformUser 绑定的策划师或分公司角色信息
export const getPlatformUser = (params) => MainRequest('/user/getPlatformUser', params)

// /user/getCommission 用户佣金统计+记录
export const getCommission = (params) => MainRequest('/user/getCommission', params)

// /user/getUserList 用户粉丝统计+列表
export const getUserList = (params) => MainRequest('/user/getUserList', params)

// /user/getInfoCode  获取邀请码
export const getInfoCode = (params) => MainRequest('/user/getInfoCode', params)

// /voucherShopHold/transfer  代金券转赠
export const transfer = (data) => MainRequest('/voucherShopHold/transfer', data, 'POST')