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.
101 lines
8.3 KiB
101 lines
8.3 KiB
import Vue from 'vue';
|
|
import qs from 'qs'
|
|
const api = {
|
|
//---------------------------------recharge充值---------------------------------
|
|
rechargeConfig: (params) => Vue.prototype.$axios.post('/api/recharge/rechargeConfig',params),//获取充值配置
|
|
rechargeAddress: (params) => Vue.prototype.$axios.post('/api/recharge/rechargeAddress',params),//获取对应数字币种的充值地址
|
|
recharge: (params) => Vue.prototype.$axios.post('/api/recharge/recharge',params),//法币在线充值下单
|
|
rechargeList: (params) => Vue.prototype.$axios.post('/api/recharge/rechargeList',params),//充值记录
|
|
|
|
|
|
|
|
//--------------------------------- withdraw提现 ---------------------------------
|
|
withdrawConfig: (params) => Vue.prototype.$axios.post('/api/withdraw/withdrawConfig',params),//获取提现配置
|
|
withdrawAddressList: (params) => Vue.prototype.$axios.post('/api/withdraw/withdrawAddressList',params),//提现地址列表
|
|
withdrawAddressAdd: (params) => Vue.prototype.$axios.post('/api/withdraw/withdrawAddressAdd',params),//保存提现地址
|
|
withdrawAddressDel: (params) => Vue.prototype.$axios.post('/api/withdraw/withdrawAddressDel',params),//删除提现地址
|
|
withdraw: (params) => Vue.prototype.$axios.post('/api/withdraw/withdraw',params),//提现下单
|
|
withdrawList: (params) => Vue.prototype.$axios.post('/api/withdraw/withdrawList',params),//提现记录
|
|
|
|
|
|
//--------------------------------- mine 挖矿 ---------------------------------
|
|
mineList: (params) => Vue.prototype.$axios.post('/api/mine/mineList',params),//获取挖矿产品列表、
|
|
mineRecord: (params) => Vue.prototype.$axios.post('/api/mine/mineRecord',params),//获取购买挖矿记录
|
|
showMineDetails: (params) => Vue.prototype.$axios.post('/api/mine/showMineDetails',params),//获取挖矿产品详情和用户余额
|
|
mineSubmit: (params) => Vue.prototype.$axios.post('/api/mine/mineSubmit',params),//提交购买挖矿产品订单
|
|
|
|
//--------------------------------- 行情 ---------------------------------
|
|
addFavor: (params) => Vue.prototype.$axios.post('/market/addFavor',params),//关注交易对
|
|
removeFavor: (params) => Vue.prototype.$axios.post('/market/removeFavor',params),//取消关注交易对
|
|
symbolGroup: (params) => Vue.prototype.$axios.post('/market/symbolGroup',params),//(新)获取交易对列表(HTTP)
|
|
marketDetail: (params) => Vue.prototype.$axios.post('/market/detail',params),//获取24显示行情(HTTP)
|
|
bboList: (params) => Vue.prototype.$axios.post('/market/bboList',params),//获取买卖单(HTTP)
|
|
tradeList: (params) => Vue.prototype.$axios.post('/market/tradeList',params),//获取成交记录(HTTP)
|
|
|
|
//--------------------------------- contract ---------------------------------
|
|
contractOrder: (params) => Vue.prototype.$axios.post('/api/contract/order',params),//合约下单接口
|
|
setWinOrLossStopPrice: (params) => Vue.prototype.$axios.post('/api/contract/setWinOrLossStopPrice',params),//设置止盈止损
|
|
contractCancel: (params) => Vue.prototype.$axios.post('/api/contract/cancel',params),//订单撤销
|
|
contractClosed: (params) => Vue.prototype.$axios.post('/api/contract/closed',params),//合约订单平仓
|
|
contractConfig: (params) => Vue.prototype.$axios.post('/api/contract/contractConfig',params),//合约配置
|
|
contractOrderList: (params) => Vue.prototype.$axios.post('/api/contract/orderList',params),//合约订单列表
|
|
|
|
//--------------------------------- transfer ---------------------------------
|
|
getTransferConfig: (params) => Vue.prototype.$axios.post('/api/transfer/getTransferConfig',params),//获取转账配置配置
|
|
changeCoinWays: (params) => Vue.prototype.$axios.post('/api/transfer/changeCoinWays',params),//切换币种或转出账户
|
|
transfer: (params) => Vue.prototype.$axios.post('/api/transfer/transfer',params),//提交划转资金
|
|
|
|
//--------------------------------- invitation ---------------------------------
|
|
invitation: (params) => Vue.prototype.$axios.post('/api/invitation/invitRules',params),//获取邀请规则文案
|
|
invitData: (params) => Vue.prototype.$axios.post('/api/invitation/invitData',params),//获取用户邀请数据
|
|
invitationRecord: (params) => Vue.prototype.$axios.post('/api/invitation/invitationRecord',params),//获取用户邀请记录
|
|
//--------------------------------- 申购 ---------------------------------
|
|
subscriptionList: (params) => Vue.prototype.$axios.post('/api/exchange/subscriptionList',params),//申购币列表
|
|
subscription: (params) => Vue.prototype.$axios.post('/api/exchange/subscription',params),//申购币详情
|
|
selCoin: (params) => Vue.prototype.$axios.post('api/exchange/selCoin',params),//申购详情页切换币种
|
|
exchangeCoin: (params) => Vue.prototype.$axios.post('/api/exchange/exchangeCoin',params),//提交申购订单
|
|
subscriptionRecord: (params) => Vue.prototype.$axios.post('/api/exchange/subscriptionRecord',params),//用户申购记录
|
|
|
|
|
|
//--------------------------------- charity ---------------------------------
|
|
charityList: (params) => Vue.prototype.$axios.post('/api/charity/charityList',params),//获取慈善产品列表
|
|
charityRecord: (params) => Vue.prototype.$axios.post('/api/charity/charityRecord',params),//获取慈善捐赠记录
|
|
charitySubmit: (params) => Vue.prototype.$axios.post('/api/charity/charitySubmit',params),//提交捐赠
|
|
showCharityDetails: (params) => Vue.prototype.$axios.post('/api/charity/showCharityDetails',params),//获取慈善产品详情和用户余额
|
|
//--------------------------------- 步数 ---------------------------------
|
|
updateSteps: (params) => Vue.prototype.$axios.post('/api/steps/updateSteps',params),// 更新步数
|
|
receivStepsAward: (params) => Vue.prototype.$axios.post('/api/steps/receivStepsAward',params),//领取奖励
|
|
|
|
//--------------------------------- home ---------------------------------
|
|
indexInfo: () => Vue.prototype.$axios.get('/api/index/info'),//获取系统通用配置
|
|
indexLang: (params) => Vue.prototype.$axios.post('/api/index/lang',params),//切换语言
|
|
customerService: (params) => Vue.prototype.$axios.post('/api/index/customerService',params),//获取客服联系方式
|
|
sendEmailCode: (params) => Vue.prototype.$axios.post('/api/index/sendEmailCode',params),//发送邮箱验证码
|
|
indexBanner: (params) => Vue.prototype.$axios.post('/api/index/banner',params),//获取banner图列表
|
|
noticeList: (params) => Vue.prototype.$axios.post('/api/index/noticeList',params),//获取公告滚动数据
|
|
notices: (params) => Vue.prototype.$axios.post('/api/index/notices',params),//获取公告分页列表
|
|
noticeRead: (params) => Vue.prototype.$axios.post('/api/index/noticeRead',params),//标记公告已读
|
|
noticeDetail: (params) => Vue.prototype.$axios.post('/api/index/noticeDetail',params),//获取公告详情
|
|
appVersion: (params) => Vue.prototype.$axios.post('/api/index/appVersion',params),//校验APP应用版本
|
|
|
|
//--------------------------------- 个人中心 ---------------------------------
|
|
register: (params) => Vue.prototype.$axios.post('/api/index/register',params),//注册
|
|
login: (params) => Vue.prototype.$axios.post('/api/user/login',params),//登录
|
|
loginOut: (params) => Vue.prototype.$axios.post('/api/user/loginOut',params),//退出登录
|
|
forgotPassword: (params) => Vue.prototype.$axios.post('/api/user/forgotPassword',params),//忘记密码
|
|
updatePassword: () => Vue.prototype.$axios.get('/api/user/updatePassword'),//修改登录密码
|
|
userAccount: (params) => Vue.prototype.$axios.post('/api/user/userAccount',params),//用户余额信息
|
|
bankCardInfo: (params) => Vue.prototype.$axios.post('/api/user/bankCardInfo',params),//获取银行卡信息
|
|
bindBank: (params) => Vue.prototype.$axios.post('/api/user/bindBank',params),//绑定/修改银行卡
|
|
certification: (params) => Vue.prototype.$axios.post('/api/user/certification',params),//保存实名认证信息
|
|
certificationInfo: (params) => Vue.prototype.$axios.post('/api/user/certificationInfo',params),//获取实名认证信息
|
|
billList: (params) => Vue.prototype.$axios.post('/api/user/billList',params),//账单记录
|
|
userInfo: (params) => Vue.prototype.$axios.post('/api/user/userInfo',params),//会员基本信息
|
|
updatePayPassword: (params) => Vue.prototype.$axios.post('/api/user/updatePayPassword',params),//修改提现密码
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
export default api
|
|
|