HaniBlindBox/server/HoneyBox/src/HoneyBox.Api/api-migration-remaining.http
2026-01-04 01:47:02 +08:00

460 lines
10 KiB
HTTP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# HoneyBox API
# api-migration-remaining spec
# : 54
@baseUrl = http://localhost:5238/api
@contentType = application/json
# TokenID: 215832026
@authToken = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoi5b6u5L-h55So5oi3MTMxMCIsImV4cCI6MTc2NzQzMTM1OCwidWlkIjoiMzMyMjY2IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZWlkZW50aWZpZXIiOiIyMTU4MyIsImF1ZCI6IkhvbmV5Qm94VXNlcnMiLCJpc3MiOiJIb25leUJveCJ9.700XWIUmzEumNk5tNYRshh7M42A8MG1X4yTHuz9PZbc
### ============================================
### 1. (AddressController) - 7
### Requirements: 1.1-1.7
### ============================================
### 1.1
POST {{baseUrl}}/addAddress
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"receiver_name": "",
"receiver_phone": "13800138000",
"detailed_address": ""
}
### 1.2
GET {{baseUrl}}/getAddressList
Authorization: Bearer {{authToken}}
### 1.3
GET {{baseUrl}}/getDefaultAddress
Authorization: Bearer {{authToken}}
### 1.4
GET {{baseUrl}}/getAddressDetail?id=1
Authorization: Bearer {{authToken}}
### 1.5
POST {{baseUrl}}/updateAddress
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"id": 1,
"receiver_name": "",
"receiver_phone": "13900139000",
"detailed_address": ""
}
### 1.6
POST {{baseUrl}}/setDefaultAddress
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"id": 1
}
### 1.7
POST {{baseUrl}}/deleteAddress
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"id": 1
}
### ============================================
### 2. (SignController) - 3
### Requirements: 3.1-3.3
### ============================================
### 2.1
GET {{baseUrl}}/sign_info
Authorization: Bearer {{authToken}}
### 2.2
POST {{baseUrl}}/sign
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
### 2.3 ()
POST {{baseUrl}}/sign_add
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
### ============================================
### 3. (PayController) - 6
### Requirements: 2.1-2.6
### ============================================
### 3.1
POST {{baseUrl}}/wx_pay
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"order_no": "TEST_ORDER_001",
"amount": 10.00,
"body": "",
"attach": "order_yfs"
}
### 3.2
POST {{baseUrl}}/balance_pay
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"order_num": "TEST_ORDER_001",
"amount": 10.00
}
### 3.3
POST {{baseUrl}}/recharge
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"money": 100.00
}
### 3.4
GET {{baseUrl}}/recharge_config
### 3.5
POST {{baseUrl}}/create_recharge_order
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"money": 100.00
}
### 3.6
GET {{baseUrl}}/query_pay_status?order_num=TEST_ORDER_001
Authorization: Bearer {{authToken}}
### ============================================
### 4. (WelfareController) - 2
### Requirements: 4.1-4.2
### ============================================
### 4.1
GET {{baseUrl}}/fuliwu?type=1&page=1
### 4.2
POST {{baseUrl}}/fuliwu_buy
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer {{authToken}}
goods_id=1&num=1
### ============================================
### 5. (GoodsController) - 5
### Requirements: 5.1-5.5
### ============================================
### 5.1
POST {{baseUrl}}/infinite_goodsdetail
Content-Type: {{contentType}}
{
"goods_id": 1
}
### 5.2 (POST)
POST {{baseUrl}}/goodsdetail
Content-Type: {{contentType}}
{
"goods_id": 1,
"prize_num": 1
}
### 5.3
POST {{baseUrl}}/infinite_goodsdetail2
Content-Type: {{contentType}}
{
"goods_id": 1
}
### 5.4
POST {{baseUrl}}/shang_log
Content-Type: {{contentType}}
{
"goods_id": 1,
"prize_num": 1,
"page": 1
}
### 5.5
GET {{baseUrl}}/ling_zhu_king?goods_id=1
### ============================================
### 6. (OrderController) - 9
### Requirements: 6.1-6.9
### ============================================
### 6.1
GET {{baseUrl}}/get_order_status?order_num=TEST_ORDER_001
Authorization: Bearer {{authToken}}
### 6.2
GET {{baseUrl}}/get_order_list?page=1&page_size=10
Authorization: Bearer {{authToken}}
### 6.3
POST {{baseUrl}}/create_web_pay_order
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"goods_id": 1,
"num": 1
}
### 6.4
POST {{baseUrl}}/get_order_url_link
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"order_num": "TEST_ORDER_001"
}
### 6.5
POST {{baseUrl}}/mall_orderbuy
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"goods_id": 1,
"num": 1
}
### 6.6
GET {{baseUrl}}/prize_order_log?order_num=TEST_ORDER_001
Authorization: Bearer {{authToken}}
### 6.7
GET {{baseUrl}}/item_card_list
Authorization: Bearer {{authToken}}
### 6.8
POST {{baseUrl}}/infinite_mibao_orderbuy
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"goods_id": 1
}
### 6.9
POST {{baseUrl}}/get_user_test
Content-Type: {{contentType}}
{
"user_id": 1
}
### ============================================
### 7. (CouponController) - 5
### Requirements: 7.1-7.5
### ============================================
### 7.1
POST {{baseUrl}}/receive
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"coupon_ids": "1,2,3"
}
### 7.2
GET {{baseUrl}}/coupon
Authorization: Bearer {{authToken}}
### 7.3 使
GET {{baseUrl}}/used?goods_id=1
Authorization: Bearer {{authToken}}
### 7.4
POST {{baseUrl}}/t_coupon_list
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"page": 1
}
### 7.5
POST {{baseUrl}}/t_coupon_ling
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"coupon_id": 1
}
### ============================================
### 8. (UserController) - 2
### Requirements: 8.1-8.2
### ============================================
### 8.1
GET {{baseUrl}}/quan_yi
Authorization: Bearer {{authToken}}
### 8.2
POST {{baseUrl}}/quan_yi_ling
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"reward_id": 1
}
### ============================================
### 9. (CollectionController) - 3
### Requirements: 9.1-9.3
### ============================================
### 9.1
GET {{baseUrl}}/collect_list?page=1&pageSize=10
Authorization: Bearer {{authToken}}
### 9.2
POST {{baseUrl}}/cancelCollect
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"goods_id": 1
}
### 9.3
GET {{baseUrl}}/collect_status?goods_id=1
Authorization: Bearer {{authToken}}
### ============================================
### 10. (RankController) - 2
### Requirements: 10.1-10.2
### ============================================
### 10.1
GET {{baseUrl}}/getRankList?type=diamond&page=1&limit=10
### 10.2
GET {{baseUrl}}/record?page=1
### ============================================
### 11. (RedeemController) - 2
### Requirements: 11.1-11.2
### ============================================
### 11.1 使
POST {{baseUrl}}/redeem_code
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"code": "TEST_CODE_001"
}
### 11.2
GET {{baseUrl}}/redeem_record?page=1&pageSize=10
Authorization: Bearer {{authToken}}
### ============================================
### 12. (WarehouseController) - 2
### Requirements: 12.1-12.2
### ============================================
### 12.1
POST {{baseUrl}}/warehouse_movein
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"recovery_info": "1,2,3"
}
### 12.2
POST {{baseUrl}}/warehouse_remove
Content-Type: {{contentType}}
Authorization: Bearer {{authToken}}
{
"recovery_info": "1,2,3"
}
### ============================================
### 13. (AuthController) - 1
### Requirements: 13.1
### ============================================
### 13.1 H5
POST {{baseUrl}}/login_bind_mobile_h5
Content-Type: {{contentType}}
{
"mobile": "13800138000",
"code": "123456"
}
### ============================================
### 14. (ConfigController) - 1
### Requirements: 14.1
### ============================================
### 14.1 (POST)
POST {{baseUrl}}/danye
Content-Type: {{contentType}}
{
"type": "rule"
}
### ============================================
### 15. (MallController) - 3
### Requirements: 15.1-15.3
### ============================================
### 15.1
GET {{baseUrl}}/get_diamond_list
### 15.2
GET {{baseUrl}}/createOrderProducts?product_id=1&pay_type=2
Authorization: Bearer {{authToken}}
### 15.3
GET {{baseUrl}}/get_diamond_order_log?order_num=TEST_ORDER_001
Authorization: Bearer {{authToken}}
### ============================================
###
### ============================================
#
# api-migration-remaining spec 54
#
# :
# 1. API (dotnet run)
# 2.
# 3. Token
#
# : 100%
# : 54
# : 54