import type { couponIssuerApplyByAddResponse, CouponIssuerApplyByIdResponse, InviteListResponse, ShareStateResponse } from '@/api/types/me' import { http } from '@/http/alova' /** * * 发卷人查询审核状态 */ export function getCouponIssuerApplyById() { return http.Get('/couponCenter/APP/couponIssuerApply/queryById') } export interface CouponIssuerApplyByAddForm { name: string phone: string } export function couponIssuerApplyByAdd(couponIssuerApplyByAddForm: CouponIssuerApplyByAddForm) { return http.Post('/couponCenter/APP/couponIssuerApply/add', couponIssuerApplyByAddForm) } // 更新用户信息 export function updateUserInfo(userInfo) { return http.Post('/couponCenter/APP/couponCenterUser/updateInformation', userInfo) } // 获取我的页面中分享统计数据,包括今日分享数、累计分享数、累计团员数 export function getShareState() { return http.Get('/couponCenter/APP/mine/getShareStats') } // 分页查询邀请关系,支持按类型和手机号搜索,不传inviteType默认查询全部 export function getInviteList(params) { return http.Get('/couponCenter/APP/mine/queryInviteRelationPage', { params: { ...params, } }) } export function getInviterInfo() { return http.Get('/couponCenter/APP/mine/queryParentInviter') }