功能模块: - 用户注册/登录/KYC - 资金账户/交易账户 - 实时行情/币种管理 - 即时交易/充提审核 - 管理后台 技术栈: - 后端: SpringBoot 2.2.4 + MyBatis Plus - 前端: uni-app x (Vue3 + UTS) - 数据库: MySQL Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
37 lines
859 B
Plaintext
37 lines
859 B
Plaintext
/**
|
|
* 充提API
|
|
*/
|
|
import { get, post } from './request.uts'
|
|
|
|
/**
|
|
* 申请充值
|
|
*/
|
|
export func deposit (amount: string, remark: string | null): Promise<any> {
|
|
return post('/api/fund/deposit', { amount, remark } as UTSJSONObject)
|
|
}
|
|
|
|
/**
|
|
* 申请提现
|
|
*/
|
|
export func withdraw (amount: string, remark: string | null): Promise<any> {
|
|
return post('/api/fund/withdraw', { amount, remark } as UTSJSONObject)
|
|
}
|
|
|
|
/**
|
|
* 取消订单
|
|
*/
|
|
export func cancelOrder (orderNo: string): Promise<any> {
|
|
return post('/api/fund/cancel', { orderNo } as UTSJSONObject)
|
|
}
|
|
|
|
/**
|
|
* 获取充提记录
|
|
*/
|
|
export func getOrders (type: number | null, pageNum: number, pageSize: number): Promise<any> {
|
|
const params: UTSJSONObject = { pageNum: pageNum, pageSize: pageSize }
|
|
if (type !== null) {
|
|
params['type'] = type
|
|
}
|
|
return get('/api/fund/orders', params)
|
|
}
|