refactor: reorganize modules and add Linux build tooling

This commit is contained in:
2026-08-09 12:41:08 +08:00
parent 86024fa81d
commit 5cc5fd92ed
1461 changed files with 4054 additions and 4724 deletions

View File

@@ -0,0 +1,51 @@
POST http://127.0.0.1:12239/wallet.Alipay/WapPay
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"user_identification": "user_123",
"amount": 1000,
"description": "商品描述",
"notify_url": "https://example.com/alipay/notify",
"quit_url": "https://example.com/quit"
}
###
POST http://127.0.0.1:12239/wallet.Alipay/PagePay
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"user_identification": "user_123",
"amount": 1000,
"description": "商品描述",
"notify_url": "https://example.com/alipay/notify",
"return_url": "https://example.com/ok"
}
###
POST http://127.0.0.1:12239/wallet.Alipay/AppPay
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"user_identification": "user_123",
"amount": 1000,
"description": "商品描述",
"notify_url": "https://example.com/alipay/notify"
}
###
POST http://127.0.0.1:12239/wallet.Alipay/Transfer
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"user_identification": "user_123",
"amount": 1000,
"fee": 0,
"description": "提现到支付宝"
}

View File

@@ -0,0 +1,93 @@
POST http://127.0.0.1:12239/wallet.Basic/GetWallet
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"is_total_today_in": true,
"is_total_today_out": true,
"is_total_month_in": true,
"is_total_month_out": true,
"is_total_all_in": true,
"is_total_all_out": true
}
###
POST http://127.0.0.1:12239/wallet.Basic/SetPayPassword
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"passport_identity": "user_123",
"password": "123456"
}
###
POST http://127.0.0.1:12239/wallet.Basic/BindPaymentId
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"pay_type": 1,
"auth_code": "wx_auth_code_abc"
}
###
POST http://127.0.0.1:12239/wallet.Basic/Transactions
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"trans_type": 1,
"trade_type": 3,
"start": "2023-01-01",
"end": "2023-12-31",
"page": 1,
"page_size": 20
}
###
POST http://127.0.0.1:12239/wallet.Basic/AddBankCard
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"wallet_identity": "wallet_abc",
"card_no": "622202XXXXXXXXXX",
"card_owner": "张三",
"id_card": "110101199001011234",
"phone": "13800000000"
}
###
POST http://127.0.0.1:12239/wallet.Basic/GetBankCard
content-type: application/json
Authorization: {{BSM_TOKEN}}
{}
###
POST http://127.0.0.1:12239/wallet.Basic/RmBankCard
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"identity": "bank_card_ident_001"
}
###
POST http://127.0.0.1:12239/wallet.Basic/ApplyCash
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"channel": 1,
"amount": 1000,
"remark": "申请提现"
}

View File

@@ -0,0 +1,8 @@
POST http://127.0.0.1:12239/wallet.Payment/Hello
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"account": "admin",
"password": "password"
}

View File

@@ -0,0 +1,70 @@
POST http://127.0.0.1:12239/wallet.Payment/Hello
content-type: application/json
Authorization: {{BSM_TOKEN}}
{}
###
POST http://127.0.0.1:12239/wallet.Payment/Way
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"platform": "app"
}
###
POST http://127.0.0.1:12239/wallet.Payment/Get
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1,
"identity": "pay_123456"
}
###
POST http://127.0.0.1:12239/wallet.Payment/ByOrder
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"order_no": "order_202309090001",
"pay_channel": 1,
"pay_type": "JSAPI",
"password": "123456",
"args": "{}",
"desc": "支付电商订单",
"open_id": "wx_open_id_abc"
}
###
POST http://127.0.0.1:12239/wallet.Payment/ByCharge
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"amount": 1000,
"remark": "充值",
"pay_channel": 1,
"pay_type": "JSAPI",
"desc": "账户充值",
"open_id": "wx_open_id_abc"
}
###
POST http://127.0.0.1:12239/wallet.Payment/Callback
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1,
"identity": "pay_123456",
"callback_status": true,
"callback_msg": "SUCCESS"
}

View File

@@ -0,0 +1 @@
grpc & http rest test.

View File

@@ -0,0 +1,82 @@
POST http://127.0.0.1:12239/wallet.Wechat/JsapiPreOrder
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"user_identification": "user_123",
"amount": 1000,
"auth_code": "wx_auth_code_abc",
"description": "商品描述",
"notify_url": "https://example.com/wx/notify",
"orderNo": "order_202309090001"
}
###
POST http://127.0.0.1:12239/wallet.Wechat/AppPreOrder
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"user_identification": "user_123",
"amount": 1000,
"description": "商品描述",
"notify_url": "https://example.com/wx/notify"
}
###
POST http://127.0.0.1:12239/wallet.Wechat/NativePreOrder
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"user_identification": "user_123",
"amount": 1000,
"description": "商品描述",
"notify_url": "https://example.com/wx/notify"
}
###
POST http://127.0.0.1:12239/wallet.Wechat/Transfer
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"user_identification": "user_123",
"amount": 1000,
"fee": 0,
"description": "提现到零钱",
"transfer_name": "张三"
}
###
POST http://127.0.0.1:12239/wallet.Wechat/WxCallback
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": "EV-001",
"create_time": "2023-09-09T12:00:00Z",
"resource_type": "encrypt-resource",
"event_type": "TRANSACTION.SUCCESS",
"summary": "支付成功",
"resource": {
"original_type": "transaction",
"algorithm": "AEAD_AES_256_GCM",
"ciphertext": "...",
"associated_data": "xxx",
"nonce": "yyy"
},
"SignInfo": {
"transaction_id": "4200000000000000000",
"act_code": "A01",
"hall_code": "H01",
"hall_belong_mch_id": 100000000,
"card_id": "card_001",
"code": "SUCCESS",
"activity_id": "act_001"
}
}