import { request } from './request'; // Login 用户登录 /** * 手机密码登录 */ export function loginPasswordLogin(option) { return request({ url: '/api/Login/passwordLogin', method: 'POST', ...option, }); } /** * 手机验正码注册 */ export function loginPhoneCodeRegister(option) { return request({ url: '/api/Login/phoneCodeRegister', method: 'POST', ...option, }); } /** * 手机验证码登录 */ export function loginPhoneCodeLogin(option) { return request({ url: '/api/Login/phoneCodeLogin', method: 'POST', ...option, }); } /** * 获取验证码 */ export function loginGetCaptcha(option) { return request({ url: '/api/Login/getCaptcha', method: 'GET', ...option, }); } /** * 重置密码 */ export function loginResetPassword(option) { return request({ url: '/api/Login/resetPassword', method: 'POST', ...option, }); } // General 其他接口 /** * 发送短信验证码 */ export function generalSendSms(option) { return request({ url: '/api/General/sendSms', method: 'POST', ...option, }); } /** * 获取消息 */ export function generalGetUserMessage(option) { return request({ url: '/api/General/getUserMessage', method: 'GET', ...option, }); } /** * 获取二维码 */ export function generalGetQrCode(option) { return request({ url: '/api/General/getQrCode', method: 'GET', ...option, }); } /** * 获取物流详情 */ export function generalDeliveryDetails(option) { return request({ url: '/api/General/deliveryDetails', method: 'GET', ...option, }); } // Expedite 不需要验证token接口(商品详情,商品列表等) /** * 获取首页轮播图 */ export function expediteGetBanner(option) { return request({ url: '/api/Expedite/getBanner', method: 'GET', ...option, }); } /** * 获取首页小菜单 */ export function expediteGetIndexMenu(option) { return request({ url: '/api/Expedite/getIndexMenu', method: 'GET', ...option, }); } /** * 获取商品列表 / 获取兑换商品列表 */ export function expediteGetGoodsList(option) { return request({ url: '/api/Expedite/getGoodsList', method: 'GET', ...option, }); } /** * 获取商品详情 */ export function expediteGetGoodsDetail(option) { return request({ url: '/api/Expedite/getGoodsDetail', method: 'GET', ...option, }); } // /** // * 获取兑换商品列表 // */ // export function expediteGetGoodsList(option) { // return request({ // url: '/api/Expedite/getGoodsList', // method: 'GET', // ...option, // }); // } /** * 获取兑换商品详情 */ export function expediteGetExchangeGoodsDetail(option) { return request({ url: '/api/Expedite/getExchangeGoodsDetail', method: 'GET', ...option, }); } /** * 获取商品评论 */ export function expediteGetGoodsComment(option) { return request({ url: '/api/Expedite/getGoodsComment', method: 'GET', ...option, }); } /** * 获取平台设置 */ export function expediteGetSysConfig(option) { return request({ url: '/api/Expedite/getSysConfig', method: 'GET', ...option, }); } /** * 获取所有的优惠券设置 */ export function expediteGetCouponConfig(option) { return request({ url: '/api/Expedite/getCouponConfig', method: 'GET', ...option, }); } // Information 营养百科 /** * 获取分类 */ export function informationGetCateTree(option) { return request({ url: '/api/Information/getCateTree', method: 'GET', ...option, }); } /** * 获取轮播图 */ export function informationGetBanner(option) { return request({ url: '/api/Information/getBanner', method: 'GET', ...option, }); } /** * 获取资讯列表 */ export function informationGetInformationList(option) { return request({ url: '/api/Information/getInformationList', method: 'GET', ...option, }); } /** * 获取资讯相关商品 */ export function informationGetInformationGoods(option) { return request({ url: '/api/Information/getInformationGoods', method: 'GET', ...option, }); } // UserCenter 会员个人中心 /** * 获取个人信息 */ export function userCenterGetUserInfo(option) { return request({ url: '/api/User_center/getUserInfo', method: 'GET', ...option, }); } /** * 编辑个人信息 */ export function userCenterUpdateUserInfo(option) { return request({ url: '/api/User_center/updateUserInfo', method: 'POST', ...option, }); } /** * 绑定手机号 */ export function userCenterModifyPhone(option) { return request({ url: '/api/User_center/modifyPhone', method: 'POST', ...option, }); } /** * 验证已绑定手机号是否正确 */ export function userCenterCheckBindPhone(option) { return request({ url: '/api/User_center/checkBindPhone', method: 'POST', ...option, }); } /** * 更换或设置密码 */ export function userCenterModifyPassword(option) { return request({ url: '/api/User_center/modifyPassword', method: 'POST', ...option, }); } /** * 实名认证 */ export function userCenterUserCertification(option) { return request({ url: '/api/User_center/userCertification', method: 'POST', ...option, }); } /** * 注销会员 */ export function userCenterCancelUserInfo(option) { return request({ url: '/api/User_center/cancelUserInfo', method: 'POST', ...option, }); } /** * 获取我绑定的支付宝账户 */ export function userCenterGetMyAliAccount(option) { return request({ url: '/api/User_center/getMyAliAccount', method: 'GET', ...option, }); } /** * 更改或绑定支付宝账户 */ export function userCenterBindAliAccount(option) { return request({ url: '/api/User_center/bindAliAccount', method: 'POST', ...option, }); } /** * 更改或绑定银行卡 */ export function userCenterBindBankAccount(option) { return request({ url: '/api/User_center/bindBankAccount', method: 'POST', ...option, }); } /** * 获取绑定银行卡详情 */ export function userCenterGetBandAccountDetail(option) { return request({ url: '/api/User_center/getBandAccountDetail', method: 'GET', ...option, }); } /** * 获取绑定银行卡列表 */ export function userCenterGetBankAccountList(option) { return request({ url: '/api/User_center/getBankAccountList', method: 'GET', ...option, }); } // Sign 会员签到 /** * 验证会员当天是否签到 */ export function signCheckSign(option) { return request({ url: '/api/Sign/checkSign', method: 'GET', ...option, }); } /** * 获取会员连续签到天数 */ export function signGetContinuousSign(option) { return request({ url: '/api/Sign/getContinuousSign', method: 'GET', ...option, }); } /** * 会员签到 */ export function signUserSign(option) { return request({ url: '/api/Sign/userSign', method: 'POST', ...option, }); } /** * 会员领取签到卡 */ export function signGetSignCard(option) { return request({ url: '/api/Sign/getSignCard', method: 'POST', ...option, }); } /** * 会员补签 */ export function signRetroactive(option) { return request({ url: '/api/Sign/retroactive', method: 'POST', ...option, }); } /** * 会员签到列表 */ export function signGetSignList(option) { return request({ url: '/api/Sign/getSignList', method: 'GET', ...option, }); } // WalletManage 会员钱包管理(佣金提现,积分,经验...) /** * 获取钱包详情 */ export function walletManageWalletInfo(option) { return request({ url: '/api/Wallet_manage/walletInfo', method: 'GET', ...option, }); } /** * 佣金提现 */ export function walletManageWithdraw(option) { return request({ url: '/api/Wallet_manage/withdraw', method: 'GET', ...option, }); } /** * 获取用户提现日志 */ export function walletManageGetWithdrawLog(option) { return request({ url: '/api/Wallet_manage/getWithdrawLog', method: 'GET', ...option, }); } /** * 获取用户佣金变更记录 */ export function walletManageGetUserMoneyInfo(option) { return request({ url: '/api/Wallet_manage/getUserMoneyInfo', method: 'GET', ...option, }); } /** * 获取用户积分变更记录 */ export function walletManageGetUserIntegralLog(option) { return request({ url: '/api/Wallet_manage/getUserIntegralLog', method: 'GET', ...option, }); } // UserManage 会员管理 /** * 用户反馈 */ export function userManageLeaveFeedback(option) { return request({ url: '/api/User_manage/leaveFeedback', method: 'POST', ...option, }); } /** * 设置收货地址(新增或修改) */ export function userManageSetDeliveryAddress(option) { return request({ url: '/api/User_manage/setDeliveryAddress', method: 'POST', ...option, }); } /** * 修改默认收货地址 */ export function userManageChangeApproveDelivery(option) { return request({ url: '/api/User_manage/changeApproveDelivery', method: 'POST', ...option, }); } /** * 删除收货地址 */ export function userManageDelDeliveryAddress(option) { return request({ url: '/api/User_manage/delDeliveryAddress', method: 'POST', ...option, }); } /** * 获取收货地址列表 */ export function userManageGetDeliveryAddressList(option) { return request({ url: '/api/User_manage/getDeliveryAddressList', method: 'GET', ...option, }); } /** * 获取收货地址详情 */ export function userManageGetDeliveryAddressDetail(option) { return request({ url: '/api/User_manage/getDeliveryAddressDetail', method: 'GET', ...option, }); } // Area 地址库 /** * 获取地址库ID获取下一级 */ export function areaGetAreaChildrenByID(option) { return request({ url: '/api/area/getAreaChildrenByID', method: 'GET', ...option, }); } // Collect 收藏 /** * 获取收藏标题设置 */ export function collectGetCollectSet(option) { return request({ url: '/api/Collect/getCollectSet', method: 'GET', ...option, }); } /** * 用户收藏(单个收藏) */ export function collectUserCollect(option) { return request({ url: '/api/Collect/userCollect', method: 'GET', ...option, }); } /** * 获取用户收藏列表 */ export function collectGetUserCollectList(option) { return request({ url: '/api/Collect/getUserCollectList', method: 'GET', ...option, }); } /** * 取消收藏收藏 */ export function collectCancelCollect(option) { return request({ url: '/api/Collect/cancelCollect', method: 'POST', ...option, }); } // Trolley 购物车 /** * 获取购物车列表 */ export function trolleyGetTrolleyList(option) { return request({ url: '/api/Trolley/getTrolleyList', method: 'GET', ...option, }); } /** * 商品添加购物车(按规格加入) */ export function trolleyAddTrolley(option) { return request({ url: '/api/Trolley/addTrolley', method: 'POST', ...option, }); } /** * 某商品是否添加到购物 */ export function trolleyGetTrolleyByGoodsId(option) { return request({ url: '/api/Trolley/getTrolleyByGoodsId', method: 'POST', ...option, }); } // UserRank 会员区域代理&&分销 /** * 申请(编辑)成为区域代理 */ export function userRankApplyAgency(option) { return request({ url: '/api/User_rank/applyAgency', method: 'POST', ...option, }); } // /** // * 验证区域代理 // */ export function userRankCheckAgency(option) { return request({ url: '/api/User_rank/checkAgency', method: 'POST', ...option, }); } /** * 获取我的区域申请记录 */ export function userRankGetAgencyApply(option) { return request({ url: '/api/User_rank/getAgencyApply', method: 'GET', ...option, }); } /** * 申请(编辑)成为分销商 */ export function userRankApplyPartner(option) { return request({ url: '/api/User_rank/applyPartner', method: 'POST', ...option, }); } /** * 获取成为分销商记录申请记录 */ export function userRankGetPartnerApply(option) { return request({ url: '/api/User_rank/getPartnerApply', method: 'GET', ...option, }); } // Order 订单 /** * 获取订单列表 */ export function orderGetOrderList(option) { return request({ url: '/api/Order/getOrderList', method: 'GET', ...option, }); } /** * 获取订单详情 */ export function orderGetOrderDetail(option) { return request({ url: '/api/Order/getOrderDetail', method: 'GET', ...option, }); }