diff --git a/internal/biz/bo/order_notify_bo.go b/internal/biz/bo/order_notify_bo.go index 880b9dd..318dd1e 100644 --- a/internal/biz/bo/order_notify_bo.go +++ b/internal/biz/bo/order_notify_bo.go @@ -9,6 +9,7 @@ type OrderNotifyBo struct { OutRequestNo string Request string Responses string + NotifyUrl string CreateTime *time.Time UpdateTime *time.Time } diff --git a/internal/data/model/order_notify.gen.go b/internal/data/model/order_notify.gen.go index 32c2ac6..7536654 100644 --- a/internal/data/model/order_notify.gen.go +++ b/internal/data/model/order_notify.gen.go @@ -17,6 +17,7 @@ type OrderNotify struct { OutRequestNo string `gorm:"column:out_request_no;not null" json:"out_request_no"` Request string `gorm:"column:request;not null" json:"request"` Responses string `gorm:"column:responses" json:"responses"` + NotifyUrl string `gorm:"column:notify_url;not null;comment:回调地址" json:"notify_url"` CreateTime *time.Time `gorm:"column:create_time;not null" json:"create_time"` UpdateTime *time.Time `gorm:"column:update_time" json:"update_time"` } diff --git a/internal/data/repoimpl/order_notify.go b/internal/data/repoimpl/order_notify.go index 11b13cd..f370be3 100644 --- a/internal/data/repoimpl/order_notify.go +++ b/internal/data/repoimpl/order_notify.go @@ -32,6 +32,7 @@ func (p *OrderNotifyRepoImpl) Create(ctx context.Context, req *bo.OrderNotifyBo) OrderNo: req.OrderNo, OutRequestNo: req.OutRequestNo, Request: req.Request, + NotifyUrl: req.NotifyUrl, CreateTime: &now, UpdateTime: &now, }