feat(*): 模型协议 - 升级声明式协议、扩充官方插件并完善生成任务恢复
This commit is contained in:
1 parent
3f4a9ea3d0
commit
4724f0767b
132 files changed
+4576
-1420
No files matched your search
@@ -20,6 +20,7 @@ type taskBillingCoordinator struct {
|
||||
type taskBillingRepository interface {
|
||||
MarkBillingRunning(orderID string) error
|
||||
SettleBillingOrder(orderID string, providerRequestID string) error
|
||||
RestoreRefundedBillingOrder(orderID string, providerRequestID string) error
|
||||
RefundBillingOrder(orderID string, errorText string) error
|
||||
MarkBillingUncertain(orderID string, errorText string) error
|
||||
BillingOrder(orderID string) (*model.BillingOrder, error)
|
||||
@@ -49,6 +50,13 @@ func (c *taskBillingCoordinator) SettleBilling(orderID string, providerRequestID
|
||||
return c.repo.SettleBillingOrder(orderID, providerRequestID)
|
||||
}
|
||||
|
||||
func (c *taskBillingCoordinator) RestoreRefundedBilling(orderID string, providerRequestID string) error {
|
||||
if orderID == "" {
|
||||
return nil
|
||||
}
|
||||
return c.repo.RestoreRefundedBillingOrder(orderID, providerRequestID)
|
||||
}
|
||||
|
||||
func (c *taskBillingCoordinator) RefundBilling(orderID string, errorText string) error {
|
||||
if orderID == "" {
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user