You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
701 lines
12 KiB
701 lines
12 KiB
import { request } from './request'
|
|
const api = {
|
|
//视频语音匹配
|
|
costDescription(data) {
|
|
return request({
|
|
url: 'api/costDescription',
|
|
method: 'get',
|
|
data
|
|
})
|
|
},
|
|
//视频语音匹配
|
|
userSpeedDating(data) {
|
|
return request({
|
|
url: 'api/user/userSpeedDating',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//同城速配
|
|
sameCitySpeedDating(data) {
|
|
return request({
|
|
url: 'api/user/sameCitySpeedDating',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//送礼物
|
|
giftGiving(data) {
|
|
return request({
|
|
url: 'api/user/giftGiving',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//送礼物
|
|
giftGiving(data) {
|
|
return request({
|
|
url: 'api/user/giftGiving',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//礼物列表
|
|
giftList(data) {
|
|
return request({
|
|
url: 'api/giftList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//海报
|
|
createPoster(data) {
|
|
return request({
|
|
url: 'api/user/createPoster',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//微信登录
|
|
wxAppOneKeyLogin(data) {
|
|
return request({
|
|
url: 'api/wxpublic/wxAppOneKeyLogin',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//获取当前用户得聊天记录
|
|
findChatList(data) {
|
|
return request({
|
|
url: 'api/user/findChatList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//城市列表
|
|
cityList(data) {
|
|
return request({
|
|
url: 'api/cityList',
|
|
method: 'get',
|
|
data
|
|
})
|
|
},
|
|
//清空所有信息
|
|
cleanAllMsg(data) {
|
|
return request({
|
|
url: 'api/user/cleanAllMsg',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//删除某个人得会话-使其在列表不显示
|
|
cleanOneMsg(data) {
|
|
return request({
|
|
url: 'api/user/cleanOneMsg',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//搭讪总数量
|
|
dashaCount(data) {
|
|
return request({
|
|
url: 'api/user/dashaCount',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//申请订单
|
|
refundOrder(data) {
|
|
return request({
|
|
url: 'api/user/refundOrder',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//接单
|
|
acceptOrder(data) {
|
|
return request({
|
|
url: 'api/user/acceptOrder',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//开始服务
|
|
serviceOrder(data) {
|
|
return request({
|
|
url: 'api/user/serviceOrder',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//服务完成
|
|
serviceCompleteOrder(data) {
|
|
return request({
|
|
url: 'api/user/serviceCompleteOrder',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//删除订单
|
|
deleteOrder(data) {
|
|
return request({
|
|
url: 'api/user/deleteOrder',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//取消订单
|
|
cancelOrder(data) {
|
|
return request({
|
|
url: 'api/user/cancelOrder',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//订单详情
|
|
orderDetail(data) {
|
|
return request({
|
|
url: 'api/user/orderDetail',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//订单列表
|
|
orderList(data) {
|
|
return request({
|
|
url: 'api/user/orderList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//轨迹实时上传
|
|
trackUpload(data) {
|
|
return request({
|
|
url: 'api/user/trackUpload',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//获取当前用户得聊天好友列表
|
|
findFrindList(data) {
|
|
return request({
|
|
url: 'api/user/findFrindList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//系统消息列表
|
|
systemNoticeList(data) {
|
|
return request({
|
|
url: 'api/systemNoticeList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//新增城市合作
|
|
urbanCooperation(data) {
|
|
return request({
|
|
url: 'api/user/urbanCooperation',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
|
|
//新增意见反馈
|
|
feedback(data) {
|
|
return request({
|
|
url: 'api/user/feedback',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//意见反馈列表
|
|
feedbackList(data) {
|
|
return request({
|
|
url: 'api/user/feedbackList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//帮助中心
|
|
helpCenter(data) {
|
|
return request({
|
|
url: 'api/helpCenter',
|
|
method: 'get',
|
|
data
|
|
})
|
|
},
|
|
//关闭青少年
|
|
async closeTeenageMode(data) {
|
|
return request({
|
|
url: 'api/user/closeTeenageMode',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//开启青少年
|
|
async openTeenageMode(data) {
|
|
return request({
|
|
url: 'api/user/openTeenageMode',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//注销
|
|
async cancelAccount(data) {
|
|
return request({
|
|
url: 'api/user/cancelAccount',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//隐私&消息通知
|
|
async privacyConfig(data) {
|
|
return request({
|
|
url: 'api/user/privacyConfig',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//新增与移除黑名单
|
|
async addOrRemoveBlacklist(data) {
|
|
return request({
|
|
url: 'api/user/addOrRemoveBlacklist',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//我的团队
|
|
async myTeam(data) {
|
|
return request({
|
|
url: 'api/user/myTeam',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//任务列表
|
|
async taskList(data) {
|
|
return request({
|
|
url: 'api/user/taskList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//陪玩师设置
|
|
editSitter(data) {
|
|
return request({
|
|
url: 'api/user/editSitter',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//陪玩师申请
|
|
sitterRegister(data) {
|
|
return request({
|
|
url: 'api/user/sitterRegister',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//查询陪玩师列表
|
|
sellerUserList(data) {
|
|
return request({
|
|
url: 'api/user/sellerUserList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//我的钱包消费记录
|
|
userRecordList(data) {
|
|
return request({
|
|
url: 'api/user/userRecordList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//套餐下单
|
|
mealsetRechargeCreateOrder(data) {
|
|
return request({
|
|
url: 'api/user/mealsetRechargeCreateOrder',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//套餐列表
|
|
mealsetList(data){
|
|
return request({
|
|
url: 'api/mealsetList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//提现
|
|
withdrawal(data){
|
|
return request({
|
|
url: 'api/user/withdrawal',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//我的钱包
|
|
userWallet(data){
|
|
return request({
|
|
url: 'api/user/userWallet',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//首页-获取陪玩服务列表
|
|
sitterList(data){
|
|
return request({
|
|
url: 'api/sitterList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//我的好友
|
|
friendList(data){
|
|
return request({
|
|
url: 'api/user/friendList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//即购 - 获取token
|
|
findZegoToken(data){
|
|
return request({
|
|
url: 'api/user/findZegoToken',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//预下订单
|
|
preCreateOrder(data){
|
|
return request({
|
|
url: 'api/user/preCreateOrder',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//会员权益
|
|
membershipBenefits(data){
|
|
return request({
|
|
url: 'api/user/membershipBenefits',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//关注
|
|
careOrCancel(data){
|
|
return request({
|
|
url: 'api/user/careOrCancel',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//其他人主页信息
|
|
findOtherUserInfo(data){
|
|
return request({
|
|
url: 'api/user/findOtherUserInfo',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//首页附近
|
|
nearbyCustomerList(data){
|
|
return request({
|
|
url: 'api/user/nearbyCustomerList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//首页推荐
|
|
customerRecommendList(data){
|
|
return request({
|
|
url: 'api/user/customerRecommendList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//社交消费-文字/语音/视频结算
|
|
socialConsumption(data){
|
|
return request({
|
|
url: 'api/user/socialConsumption',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//发送-文字/语音/视频
|
|
chat(data){
|
|
return request({
|
|
url: 'api/user/chat',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//查询用户余额-(用于判断余额是否足够)
|
|
userBalance(data){
|
|
return request({
|
|
url: 'api/user/userBalance',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//设置搭讪列表
|
|
setAccostDefault(data){
|
|
return request({
|
|
url: 'api/user/setAccostDefault',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//搭讪列表
|
|
findAccost(data){
|
|
return request({
|
|
url: 'api/user/findAccost',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//举报
|
|
report(data){
|
|
return request({
|
|
url: 'api/user/report',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//文章-点赞
|
|
zan(data){
|
|
return request({
|
|
url: 'api/user/zan',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//评论或者回复
|
|
commentReply(data){
|
|
return request({
|
|
url: 'api/user/commentReply',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//动态详情
|
|
articleDetail(data){
|
|
return request({
|
|
url: 'api/user/articleDetail',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//删除动态
|
|
userArticleList(data){
|
|
return request({
|
|
url: 'api/user/userArticleList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//用户动态列表-分页
|
|
userArticleList(data){
|
|
return request({
|
|
url: 'api/user/userArticleList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//用户陪玩服务列表
|
|
userSellerServiceList(data){
|
|
return request({
|
|
url: 'api/user/userSellerServiceList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//支付订单
|
|
paymentOrder(data){
|
|
return request({
|
|
url: 'api/user/paymentOrder',
|
|
method: 'get',
|
|
data
|
|
})
|
|
},
|
|
//会员充值-预下单(拿着单号调用-支付订单)
|
|
memberCreateOrder(data){
|
|
return request({
|
|
url: 'api/user/memberCreateOrder',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//会员协议
|
|
getConfigData(data){
|
|
return request({
|
|
url: 'api/getConfigData',
|
|
method: 'get',
|
|
data
|
|
})
|
|
},
|
|
//会员列表
|
|
memberList(data) {
|
|
return request({
|
|
url: 'api/memberList',
|
|
method: 'get',
|
|
data
|
|
})
|
|
},
|
|
//签到
|
|
sign(data) {
|
|
return request({
|
|
url: 'api/user/sign',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//动态详情
|
|
articleDetailt(data) {
|
|
return request({
|
|
url: 'api/user/articleDetailt',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//发布动态
|
|
publishArticle(data) {
|
|
return request({
|
|
url: 'api/user/publishArticle',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//动态列表
|
|
articleList(data) {
|
|
return request({
|
|
url: 'api/user/articleList',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//我的相册
|
|
myAlbums(data) {
|
|
return request({
|
|
url: 'api/user/myAlbums',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//保存个人资料
|
|
editUser(data) {
|
|
return request({
|
|
url: 'api/user/editUser',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//保存语音签名
|
|
voiceSign(data) {
|
|
return request({
|
|
url: 'api/user/voiceSign',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//根据字典类型获取字典 支付方式:CONFIG_PAY_STATUS 1 开启 0关闭 学历 education_type 薪资 salary_type 婚姻 marriage_type 居住 live_type 异性-女标签 sex_type_2 星座 constellation_type 异性-男标签 sex_type_1
|
|
getDictDataByType(data) {
|
|
return request({
|
|
url: 'api/getDictDataByType',
|
|
method: 'get',
|
|
data
|
|
})
|
|
},
|
|
//真人认证
|
|
detectLivingFace(data) {
|
|
return request({
|
|
url: 'api/user/detectLivingFace',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//实名认证
|
|
realNameAuth(data) {
|
|
return request({
|
|
url: 'api/user/realNameAuth',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//手机认证
|
|
phoneAuth(data) {
|
|
return request({
|
|
url: 'api/user/phoneAuth',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//查询个人信息
|
|
findUserInfo(data) {
|
|
return request({
|
|
url: 'api/user/findUserInfo',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//忘记密码/修改密码
|
|
forgetPsw(data) {
|
|
return request({
|
|
url: 'api/forgetPsw',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//发送验证码
|
|
sendSmsCode(data) {
|
|
return request({
|
|
url: 'api/sendSmsCode',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//短信登录
|
|
toLogin(data) {
|
|
return request({
|
|
url: 'api/loginByCode',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//注册账号
|
|
regByCode(data) {
|
|
return request({
|
|
url: 'api/regByCode',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//账号登录
|
|
loginForPsw(data) {
|
|
return request({
|
|
url: '/api/loginForPsw',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//修改用户信息
|
|
registerEditUser(data) {
|
|
return request({
|
|
url: 'api/user/registerEditUser',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//用户信息
|
|
getMemberInfo(data) {
|
|
return request({
|
|
url: 'api/user/getinfo',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
}
|
|
export default api |