功能模块: - 用户注册/登录/KYC - 资金账户/交易账户 - 实时行情/币种管理 - 即时交易/充提审核 - 管理后台 技术栈: - 后端: SpringBoot 2.2.4 + MyBatis Plus - 前端: uni-app x (Vue3 + UTS) - 数据库: MySQL Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26 lines
474 B
Plaintext
26 lines
474 B
Plaintext
/**
|
|
* 行情API
|
|
*/
|
|
import { get } from './request.uts'
|
|
|
|
/**
|
|
* 获取币种列表
|
|
*/
|
|
export func getCoinList (): Promise<any> {
|
|
return get('/api/market/list', null)
|
|
}
|
|
|
|
/**
|
|
* 获取币种详情
|
|
*/
|
|
export func getCoinDetail (code: string): Promise<any> {
|
|
return get('/api/market/detail', { code } as UTSJSONObject)
|
|
}
|
|
|
|
/**
|
|
* 搜索币种
|
|
*/
|
|
export func searchCoins (keyword: string): Promise<any> {
|
|
return get('/api/market/search', { keyword } as UTSJSONObject)
|
|
}
|