From 24291408f88ad14e7a85ca90a56925a10d4ee75d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E9=93=AD?= Date: Mon, 1 Jul 2024 14:59:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/zltx/internal/po/notify.go | 11 +++++++++++ plugins/zltx/internal/po/query.go | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 plugins/zltx/internal/po/notify.go create mode 100644 plugins/zltx/internal/po/query.go diff --git a/plugins/zltx/internal/po/notify.go b/plugins/zltx/internal/po/notify.go new file mode 100644 index 0000000..153ee77 --- /dev/null +++ b/plugins/zltx/internal/po/notify.go @@ -0,0 +1,11 @@ +package po + +import "plugins/zltx/internal/vo" + +type Notify struct { + MerchantId int `json:"merchantId" validate:"required"` + OutTradeNo string `json:"outTradeNo" validate:"required"` + RechargeAccount string `json:"rechargeAccount" validate:"required"` + Status vo.OrderStatus `json:"status" validate:"required"` + Sign string `json:"sign" validate:"required"` +} diff --git a/plugins/zltx/internal/po/query.go b/plugins/zltx/internal/po/query.go new file mode 100644 index 0000000..87b5ead --- /dev/null +++ b/plugins/zltx/internal/po/query.go @@ -0,0 +1,18 @@ +package po + +import "plugins/zltx/internal/vo" + +type QueryReq struct { + MerchantId string `validate:"required"` + OutTradeNo string `validate:"required"` + TimeStamp int64 `validate:"required"` + Version string `validate:"required"` + Sign string +} + +type QueryResp struct { + Code vo.Code `json:"code"` + Status vo.OrderStatus `json:"status"` + Message string `json:"message"` + OutTradeNo string `json:"outTradeNo"` +}