This commit is contained in:
vipg
2025-11-15 18:01:31 +08:00
parent 03f14394e5
commit 5c71c93eee
2 changed files with 11 additions and 2 deletions

View File

@@ -1,8 +1,16 @@
curl -X POST http://localhost:20010/api/variety/create \
curl -X POST http://localhost:20010/variety/create \
-H "Content-Type: application/json" \
-d '{
"name": "螺纹钢",
"code": "RB",
"tick": 1.0,
"tick_price": 10.0
}'
curl -X POST http://localhost:20010/exchange/create \
-H "Content-Type: application/json" \
-d '{
"name": "1234",
"code": "ads"
}'

View File

@@ -43,7 +43,8 @@ class _AddExchangePageState extends State<AddExchangePage> {
}
// 准备请求数据
const baseUrl = 'https://api.fishestlife.com';
// const baseUrl = 'https://api.fishestlife.com';
const baseUrl = 'http://localhost:20010';
const path = '/exchange/create';
final url = '$baseUrl$path';