add
This commit is contained in:
@@ -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" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{
|
||||||
"name": "螺纹钢",
|
"name": "螺纹钢",
|
||||||
"code": "RB",
|
"code": "RB",
|
||||||
"tick": 1.0,
|
"tick": 1.0,
|
||||||
"tick_price": 10.0
|
"tick_price": 10.0
|
||||||
|
}'
|
||||||
|
|
||||||
|
|
||||||
|
curl -X POST http://localhost:20010/exchange/create \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d '{
|
||||||
|
"name": "1234",
|
||||||
|
"code": "ads"
|
||||||
}'
|
}'
|
||||||
@@ -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';
|
const path = '/exchange/create';
|
||||||
final url = '$baseUrl$path';
|
final url = '$baseUrl$path';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user