#if NETCOREAPP3_1 || NET5_0

using Microsoft.AspNetCore.Mvc;

namespace Essensoft.Paylink.Alipay
{
    /// <summary>
    /// Alipay 通知响应
    /// </summary>
    public static class AlipayNotifyResult
    {
        private static readonly ContentResult success = new() { Content = "success", ContentType = "text/plain", StatusCode = 200 };
        private static readonly ContentResult failure = new() { Content = "failure", ContentType = "text/plain", StatusCode = 200 };

        /// <summary>
        /// 成功
        /// </summary>
        public static IActionResult Success => success;

        /// <summary>
        /// 失败
        /// </summary>
        public static IActionResult Failure => failure;
    }
}

#endif
