Initial commit: Monisuo - 虚拟货币模拟交易平台

功能模块:
- 用户注册/登录/KYC
- 资金账户/交易账户
- 实时行情/币种管理
- 即时交易/充提审核
- 管理后台

技术栈:
- 后端: SpringBoot 2.2.4 + MyBatis Plus
- 前端: uni-app x (Vue3 + UTS)
- 数据库: MySQL

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
sion
2026-03-21 20:52:33 +08:00
commit 7694a34ade
108 changed files with 12563 additions and 0 deletions

43
app/api/asset.uts Normal file
View File

@@ -0,0 +1,43 @@
/**
* 资产API
*/
import { get, post } from './request.uts'
/**
* 获取资产总览
*/
export func getAssetOverview (): Promise<any> {
return get('/api/asset/overview', null)
}
/**
* 获取资金账户
*/
export func getFundAccount (): Promise<any> {
return get('/api/asset/fund', null)
}
/**
* 获取交易账户
*/
export func getTradeAccounts (): Promise<any> {
return get('/api/asset/trade', null)
}
/**
* 资金划转
*/
export func transfer (direction: number, amount: string): Promise<any> {
return post('/api/asset/transfer', { direction, amount } as UTSJSONObject)
}
/**
* 获取资金流水
*/
export func getFlows (flowType: number | null, pageNum: number, pageSize: number): Promise<any> {
const params: UTSJSONObject = { pageNum: pageNum, pageSize: pageSize }
if (flowType !== null) {
params['flowType'] = flowType
}
return get('/api/asset/flow', params)
}