支持客服主动发起申诉
This commit is contained in:
@@ -203,13 +203,22 @@ func (r *Repository) activeDisputeDTO(ctx context.Context, orderID uint64) *Acti
|
||||
return nil
|
||||
}
|
||||
return &ActiveDisputeDTO{
|
||||
ID: row.ID,
|
||||
InitiatorID: row.InitiatorID,
|
||||
Type: row.Type,
|
||||
Status: row.Status,
|
||||
ID: row.ID,
|
||||
InitiatorID: row.InitiatorID,
|
||||
InitiatorType: effectiveDisputeInitiatorType(row),
|
||||
InitiatorAdminID: row.InitiatorAdminID,
|
||||
Type: row.Type,
|
||||
Status: row.Status,
|
||||
}
|
||||
}
|
||||
|
||||
func effectiveDisputeInitiatorType(row model.Dispute) string {
|
||||
if row.InitiatorType == "admin" {
|
||||
return "admin"
|
||||
}
|
||||
return "user"
|
||||
}
|
||||
|
||||
func shouldAttachCheckout(status string) bool {
|
||||
switch status {
|
||||
case orderStatusPendingCheckoutConfirm, orderStatusPendingCheckoutAccept, orderStatusCheckoutDisputing, orderStatusCompleted:
|
||||
|
||||
Reference in New Issue
Block a user