package v1 import ( . "github.com/alimy/mir/v3" . "github.com/alimy/mir/v3/engine" "github.com/rocboss/paopao-ce/internal/model/web" ) func init() { AddEntries(new(AlipayPub), new(AlipayPriv)) } // AlipayPub 支付宝相关不用授权的服务 type AlipayPub struct { Group Group `mir:"v1"` // AlipayNotify 支付宝回调 AlipayNotify func(Post, web.AlipayNotifyReq) `mir:"/alipay/notify"` } // AlipayPub 支付宝相关授权的服务 type AlipayPriv struct { Chain Chain `mir:"-"` Group Group `mir:"v1"` // UserRechargeLink 用户充值 UserRechargeLink func(Post, web.UserRechargeLinkReq) web.UserRechargeLinkResp `mir:"/user/recharge"` // UserRechargeResult 获取充值结果 UserRechargeResult func(Get, web.UserRechargeResultReq) web.UserRechargeResultResp `mir:"/user/recharge"` // UserWalletBills 获取用户账单 UserWalletBills func(Get, web.UserWalletBillsReq) web.UserWalletBillsResp `mir:"/user/wallet/bills"` }