新增撞车订单人工退款
This commit is contained in:
@@ -86,6 +86,16 @@ func (s *Service) StartRefund(ctx context.Context, orderID uint64, refundAmountC
|
||||
return s.repo.StartRefund(ctx, orderID, refundAmountCent, bizType, remark)
|
||||
}
|
||||
|
||||
func (s *Service) StartMohongRefund(ctx context.Context, orderID uint64, refundAmountCent int64, remark string) (*RefundDTO, error) {
|
||||
if s.repo == nil {
|
||||
return nil, ErrDependencyUnavailable
|
||||
}
|
||||
if orderID == 0 || refundAmountCent < 0 {
|
||||
return nil, ErrRefundCannotStart
|
||||
}
|
||||
return s.repo.StartMohongRefund(ctx, orderID, refundAmountCent, remark)
|
||||
}
|
||||
|
||||
func (s *Service) QueryRefundStatus(ctx context.Context, orderID uint64) (*RefundDTO, error) {
|
||||
if s.repo == nil {
|
||||
return nil, ErrDependencyUnavailable
|
||||
|
||||
Reference in New Issue
Block a user