You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
779 B

package common.ecommerce.shared.audit;
/**
* 一次 SDK 调用的结果状态。
*
* <p>只有 {@link #SUCCESS} 表示完整成功;批处理部分失败是 {@link #PARTIAL},
* <b>不能</b>当成功处理(例如幂等层会把成功当成业务动作已完成)。</p>
*/
public enum CallOutcome {
/** 调用成功(适配器没有抛异常,且没有失败明细)。 */
SUCCESS,
/**
* 批处理部分成功:有失败明细,但调用方仍拿到了结果(如审核发货部分单失败)。
*
* <p>不算 {@link #SUCCESS};需要逐条看 {@code failedCount} / {@code resultCode}。</p>
*/
PARTIAL,
/** 调用失败(能力不支持、参数校验、平台返回错误、网络异常等)。 */
FAILURE
}