chore: 并入 iotlcm-admin-svr 历史到 admin-svr/(原提交 49818c6)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package pay
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/api/pay/v1"
|
||||
)
|
||||
|
||||
type IPayV1 interface {
|
||||
AlipayPay(ctx context.Context, req *v1.AlipayPayReq) (res *v1.AlipayPayRes, err error)
|
||||
AlipayNotify(ctx context.Context, req *v1.AlipayNotifyReq) (res *v1.AlipayNotifyRes, err error)
|
||||
AlipayReturn(ctx context.Context, req *v1.AlipayReturnReq) (res *v1.AlipayReturnRes, err error)
|
||||
AlipayTradeQuery(ctx context.Context, req *v1.AlipayTradeQueryReq) (res *v1.AlipayTradeQueryRes, err error)
|
||||
AlipayRefund(ctx context.Context, req *v1.AlipayRefundReq) (res *v1.AlipayRefundRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type AlipayPayReq struct {
|
||||
g.Meta `path:"/alipay/pay" method:"get,post" tags:"支付宝支付" summary:"创建支付宝支付链接" x-check-permission:"cpc:current:user"`
|
||||
model.AlipayPayInput
|
||||
}
|
||||
|
||||
type AlipayPayRes struct {
|
||||
model.AlipayPayOutput
|
||||
}
|
||||
|
||||
type AlipayNotifyReq struct {
|
||||
g.Meta `path:"/alipay/notify" method:"post" tags:"支付宝支付" summary:"支付宝异步通知"`
|
||||
model.AlipayNotifyInput
|
||||
}
|
||||
|
||||
type AlipayNotifyRes struct {
|
||||
model.AlipayNotifyOutput
|
||||
}
|
||||
|
||||
type AlipayReturnReq struct {
|
||||
g.Meta `path:"/alipay/return" method:"get" tags:"支付宝支付" summary:"支付宝同步回跳"`
|
||||
model.AlipayReturnInput
|
||||
}
|
||||
|
||||
type AlipayReturnRes struct {
|
||||
model.AlipayReturnOutput
|
||||
}
|
||||
|
||||
type AlipayTradeQueryReq struct {
|
||||
g.Meta `path:"/alipay/query" method:"get" tags:"支付宝支付" summary:"查询支付宝交易" x-check-permission:"cpc:current:user"`
|
||||
model.AlipayTradeQueryInput
|
||||
}
|
||||
|
||||
type AlipayTradeQueryRes struct {
|
||||
model.AlipayTradeQueryOutput
|
||||
}
|
||||
|
||||
type AlipayRefundReq struct {
|
||||
g.Meta `path:"/alipay/refund" method:"post" tags:"支付宝支付" summary:"支付宝退款" x-check-permission:"cpc:current:user"`
|
||||
model.AlipayRefundInput
|
||||
}
|
||||
|
||||
type AlipayRefundRes struct {
|
||||
model.AlipayRefundOutput
|
||||
}
|
||||
Reference in New Issue
Block a user