You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
paopao-ce/mirc/web/v1/alipay.go

33 lines
768 B

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(WebAlipayPub), new(WebAlipayPriv))
}
type WebAlipayPub struct {
Group Group `mir:"v1"`
// AlipayNotify 支付宝回调
AlipayNotify func(Post, web.AlipayNotifyReq) `mir:"/alipay/notify"`
}
type WebAlipayPriv struct {
Chain Chain `mir:"-"`
Group Group `mir:"v1"`
// UserRechargeLink 用户充值
UserRechargeLink func(Post) `mir:"/user/recharge"`
// UserRechargeResult 获取钱包余额
UserRechargeResult func(Get) `mir:"/user/recharge"`
// UserWalletBills 获取用户账单
UserWalletBills func(Get, web.UserWalletBillsReq) web.UserWalletBillsResp `mir:"/user/wallet/bills"`
}