1.添加alph币种(矿池分配及转账规则页面、费率页面、挖矿教程页面、起付额度限制、最新报块跳转、支付id跳转) 完成
2.api文档页面修改8个接口请求方式为post 3.优化代码币种添加通用币种信息及挖矿教程页面跳转通用 4.m2pool断网重连 60秒内重连 处理中 5.收益计算器显示值修改 取消四舍五入 直接保留10位小数 添加千位符分隔显示 6.coinbus 添加seo相关配置及站点地图 处理中
This commit is contained in:
47
mining-pool/src/api/APIkey.js
Normal file
47
mining-pool/src/api/APIkey.js
Normal file
@@ -0,0 +1,47 @@
|
||||
import request from '../utils/request'
|
||||
|
||||
//申请APIKEY
|
||||
export function getApiKey(data) {
|
||||
return request({
|
||||
url: `pool/user/getApiKey`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取API列表
|
||||
export function getApiList(data) {
|
||||
return request({
|
||||
url: `pool/user/getApiList`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//修改指定apikey绑定的IP地址/权限
|
||||
export function getUpdateAPI(data) {
|
||||
return request({
|
||||
url: `pool/user/updateAPI`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//删除API
|
||||
export function getDelApi(data) {
|
||||
return request({
|
||||
url: `pool/user/delApi`,
|
||||
method: 'delete',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取当前apiKey基本信息
|
||||
export function getApiInfo(data) {
|
||||
return request({
|
||||
url: `pool/user/getApiInfo`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
48
mining-pool/src/api/alerts.js
Normal file
48
mining-pool/src/api/alerts.js
Normal file
@@ -0,0 +1,48 @@
|
||||
import request from '../utils/request'
|
||||
|
||||
//添加通知邮箱
|
||||
export function getAddNoticeEmail(data) {
|
||||
return request({
|
||||
url: `pool/notice/addNoticeEmail`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//发送添加通知邮件邮箱验证码
|
||||
export function getCode(data) {
|
||||
return request({
|
||||
url: `pool/notice/getCode`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//获取当前挖矿账户通知邮箱列表
|
||||
export function getList(data) {
|
||||
return request({
|
||||
url: `pool/notice/getList`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//修改通知邮箱备注
|
||||
export function getUpdateInfo(data) {
|
||||
return request({
|
||||
url: `pool/notice/updateInfo`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//删除通知邮箱
|
||||
export function deleteEmail(data) {
|
||||
return request({
|
||||
url: `pool/notice/deleteEmail`,
|
||||
method: 'delete',
|
||||
data
|
||||
})
|
||||
}
|
||||
15
mining-pool/src/api/auth.ts
Normal file
15
mining-pool/src/api/auth.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
interface LoginParams {
|
||||
username: string
|
||||
password: string
|
||||
remember: boolean
|
||||
}
|
||||
|
||||
export const login = (data: LoginParams) => {
|
||||
return request({
|
||||
url: '/api/login',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
64
mining-pool/src/api/home.js
Normal file
64
mining-pool/src/api/home.js
Normal file
@@ -0,0 +1,64 @@
|
||||
import request from '../utils/request'
|
||||
|
||||
//获取当前币种信息
|
||||
export function getCoinInfo(data) {
|
||||
return request({
|
||||
url: `pool/getCoinInfo`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取币种算力(曲线图)
|
||||
export function getPoolPower(data) {
|
||||
return request({
|
||||
url: `pool/getPoolPower`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取币种矿工数量(曲线图)
|
||||
export function getMinerCount(data) {
|
||||
return request({
|
||||
url: `pool/getMinerCount`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取当前幸运值
|
||||
export function getLuck(data) {
|
||||
return request({
|
||||
url: `pool/getLuck`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取币种报块信息
|
||||
export function getBlockInfo(data) {
|
||||
return request({
|
||||
url: `pool/getBlockInfo`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取全网算力
|
||||
export function getNetPower(data) {
|
||||
return request({
|
||||
url: `pool/getNetPower`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//计算器数据
|
||||
export function getParam(data) {
|
||||
return request({
|
||||
url: `pool/getParam`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
86
mining-pool/src/api/login.js
Normal file
86
mining-pool/src/api/login.js
Normal file
@@ -0,0 +1,86 @@
|
||||
import request from '../utils/request'
|
||||
|
||||
//登录
|
||||
export function getLogin(data) {
|
||||
return request({
|
||||
url: `auth/login`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//注册
|
||||
export function getRegister(data) {
|
||||
return request({
|
||||
url: `auth/register`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//注册验证码
|
||||
export function getRegisterCode(data) {
|
||||
return request({
|
||||
url: `auth/registerCode`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//登录验证码获取
|
||||
export function getLoginCode(data) {
|
||||
return request({
|
||||
url: `auth/loginCode`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//退出
|
||||
export function getLogout(data) {
|
||||
return request({
|
||||
url: `auth/logout`,
|
||||
method: 'Delete',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//获取用户当前币种下账号 分级
|
||||
export function getAccountGradeList(data) {
|
||||
return request({
|
||||
url: `pool/user/getAccountGradeList`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//修改密码
|
||||
export function getResetPwd(data) {
|
||||
return request({
|
||||
url: `auth/resetPwd`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//修改密码验证码获取
|
||||
export function getResetPwdCode(data) {
|
||||
return request({
|
||||
url: `auth/resetPwdCode`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//获取用户权限
|
||||
export function getUserProfile() {
|
||||
return request({
|
||||
url: `system/user/profile`,
|
||||
method: 'get',
|
||||
|
||||
})
|
||||
}
|
||||
63
mining-pool/src/api/miningAccount.js
Normal file
63
mining-pool/src/api/miningAccount.js
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '../utils/request'
|
||||
|
||||
//获取当前挖矿账号算力图
|
||||
export function getMinerAccountPower(data) {
|
||||
return request({
|
||||
url: `pool/getMinerAccountPower`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取当前挖矿账号信息(包含收益、余额)
|
||||
export function getMinerAccountInfo(data) {
|
||||
return request({
|
||||
url: `pool/getMinerAccountInfo`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取当前挖矿账号下的矿工总览表
|
||||
export function getMinerList(data) {
|
||||
return request({
|
||||
url: `pool/getMinerList`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取矿工算力(曲线图)
|
||||
export function getMinerPower(data) {
|
||||
return request({
|
||||
url: `pool/getMinerPower`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取收益历史记录
|
||||
export function getHistoryIncome(data) {
|
||||
return request({
|
||||
url: `pool/getHistoryIncome`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//获取提现历史记录
|
||||
export function getHistoryOutcome(data) {
|
||||
return request({
|
||||
url: `pool/getHistoryOutcome`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取当前挖矿账号算力分布图(柱状图)
|
||||
export function getAccountPowerDistribution(data) {
|
||||
return request({
|
||||
url: `pool/getAccountPowerDistribution`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
167
mining-pool/src/api/personalCenter.js
Normal file
167
mining-pool/src/api/personalCenter.js
Normal file
@@ -0,0 +1,167 @@
|
||||
import request from '../utils/request'
|
||||
|
||||
|
||||
//指定挖矿账号添加钱包 绑定钱包地址
|
||||
export function getAddBalace(data) {
|
||||
return request({
|
||||
url: `pool/user/addBalance`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 添加 绑定挖矿账号
|
||||
export function getAddMinerAccount(data) {
|
||||
return request({
|
||||
url: `pool/user/addMinerAccount`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 解绑(删除)挖矿账号
|
||||
export function getDelMinerAccount(data) {
|
||||
return request({
|
||||
url: `pool/user/delMinerAccount`,
|
||||
method: 'Delete',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取用户当前币种下账号
|
||||
export function getAccountList(data) {
|
||||
return request({
|
||||
url: `pool/user/getAccountList`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取付款设置相关内容 获取当前矿工账号绑定钱包地址
|
||||
export function getMinerAccountBalance(data) {
|
||||
return request({
|
||||
url: `pool/user/getMinerAccountBalance`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 判断挖矿账户名是否存在
|
||||
export function getCheckAccount(data) {
|
||||
return request({
|
||||
url: `pool/user/checkAccount`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 校验钱包地址是否有效
|
||||
export function getCheckBalance(data) {
|
||||
return request({
|
||||
url: `pool/user/checkBalance`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 校验账号和钱包地址
|
||||
export function getCheck(data) {
|
||||
return request({
|
||||
url: `pool/user/check`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 判断是否绑定 开启验证
|
||||
export function getIfBind(data) {
|
||||
return request({
|
||||
url: `pool/user/ifBind`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//绑定 获取二维码和安全码
|
||||
export function getBindInfo(data) {
|
||||
return request({
|
||||
url: `pool/user/getBindInfo`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//绑定谷歌验证器
|
||||
export function getBindGoogle(data) {
|
||||
return request({
|
||||
url: `pool/user/bindGoogle`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//绑定谷歌 邮箱验证码
|
||||
export function getBindCode(data) {
|
||||
return request({
|
||||
url: `pool/user/getBindCode`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//关闭双重验证 邮箱验证码
|
||||
export function getCloseCode(data) {
|
||||
return request({
|
||||
url: `pool/user/getCloseCode`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//关闭谷歌验证
|
||||
export function getCloseStepTwo(data) {
|
||||
return request({
|
||||
url: `pool/user/closeStepTwo`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//邮箱查询是否绑定双重验证
|
||||
export function getEmailIfBind(data) {
|
||||
return request({
|
||||
url: `pool/user/emailIfBind`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//个人中心修改密码
|
||||
export function getUpdatePwd(data) {
|
||||
return request({
|
||||
url: `auth/updatePwd`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//个人中心修改密码 验证码
|
||||
export function getUpdatePwdCode(data) {
|
||||
return request({
|
||||
url: `auth/updatePwdCode`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
121
mining-pool/src/api/readOnlyDisplay.js
Normal file
121
mining-pool/src/api/readOnlyDisplay.js
Normal file
@@ -0,0 +1,121 @@
|
||||
import request from '../utils/request'
|
||||
|
||||
|
||||
//生成只读页面链接
|
||||
export function getHtmlUrl(data) {
|
||||
return request({
|
||||
url: `pool/read/getHtmlUrl`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取只读页面list
|
||||
export function getUrlList(data) {
|
||||
return request({
|
||||
url: `pool/read/getUrlList`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//获取当前只读页面基础信息(仅包含页面权限,用户信息根据key)
|
||||
export function getPageInfo(data) {
|
||||
return request({
|
||||
url: `pool/read/getPageInfo`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//只读页面获取收益信息
|
||||
export function getProfitInfo(data) {
|
||||
return request({
|
||||
url: `pool/read/getProfitInfo`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//只读页面挖矿账号算力(曲线图)
|
||||
export function getMinerAccountPower(data) {
|
||||
return request({
|
||||
url: `pool/read/getMinerAccountPower`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//只读页面挖矿账号算力分布图(柱状图)
|
||||
export function getAccountPowerDistribution(data) {
|
||||
return request({
|
||||
url: `pool/read/getAccountPowerDistribution`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//只读页面 矿工总览表
|
||||
export function getMinerList(data) {
|
||||
return request({
|
||||
url: `pool/read/getMinerList`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//只读页面 获取收益历史记录
|
||||
export function getHistoryIncome(data) {
|
||||
return request({
|
||||
url: `pool/read/getHistoryIncome`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//只读页面 获取提现历史记录
|
||||
export function getHistoryOutcome(data) {
|
||||
return request({
|
||||
url: `pool/read/getHistoryOutcome`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//只读页面 小折线图
|
||||
export function getMinerPower(data) {
|
||||
return request({
|
||||
url: `pool/read/getMinerPower`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//创建只读页面 弹窗信息
|
||||
export function getUrlInfo(data) {
|
||||
return request({
|
||||
url: `pool/read/getUrlInfo`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//创建只读页面 修改信息
|
||||
export function getChangeUrlInfo(data) {
|
||||
return request({
|
||||
url: `pool/read/changeUrlInfo`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//删除只读信息
|
||||
export function getDelPage(data) {
|
||||
return request({
|
||||
url: `pool/read/delPage`,
|
||||
method: 'delete',
|
||||
data
|
||||
})
|
||||
}
|
||||
105
mining-pool/src/api/work.js
Normal file
105
mining-pool/src/api/work.js
Normal file
@@ -0,0 +1,105 @@
|
||||
import request from '../utils/request'
|
||||
|
||||
//提交工单
|
||||
export function getSubmitTicket(data) {
|
||||
return request({
|
||||
url: `pool/ticket/submitTicket`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//工单继续提交
|
||||
export function getResubmitTicket(data) {
|
||||
return request({
|
||||
url: `pool/ticket/resubmitTicket`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//已回复工单更改状态
|
||||
export function getReadTicket(data) {
|
||||
return request({
|
||||
url: `pool/ticket/readTicket`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//个人工单列表
|
||||
export function getPrivateTicket(data) {
|
||||
return request({
|
||||
url: `pool/ticket/getPrivateTicket`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//工单详情
|
||||
export function getTicketDetails(data) {
|
||||
return request({
|
||||
url: `pool/ticket/getTicketDetails`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//结束工单
|
||||
export function getEndTicket(data) {
|
||||
return request({
|
||||
url: `pool/ticket/endTicket`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//文件下载
|
||||
export function getDownloadFile() {
|
||||
return request({
|
||||
url: `pool/ticket/downloadFile`,
|
||||
method: 'get',
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//后台 查看工单详情
|
||||
export function getDetails(data) {
|
||||
return request({
|
||||
url: `pool/ticket/bk/details`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//后台 回复工单
|
||||
export function getReply(data) {
|
||||
return request({
|
||||
url: `pool/ticket/bk/respon`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//后台工单列表
|
||||
export function getTicketList(data) {
|
||||
return request({
|
||||
url: `pool/ticket/bk/list`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//后台 关闭指定工单
|
||||
export function getBKendTicket(data) {
|
||||
return request({
|
||||
url: `pool/ticket/bk/endTicket`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user