mirror of https://github.com/rocboss/paopao-ce
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.
35 lines
946 B
35 lines
946 B
package v1
|
|
|
|
import (
|
|
. "github.com/alimy/mir/v4"
|
|
. "github.com/alimy/mir/v4/engine"
|
|
"github.com/rocboss/paopao-ce/internal/model/web"
|
|
)
|
|
|
|
func init() {
|
|
AddEntry(new(AlipayPub), new(AlipayPriv))
|
|
}
|
|
|
|
// AlipayPub 支付宝相关不用授权的服务
|
|
type AlipayPub struct {
|
|
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"`
|
|
}
|