using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using MadRunFabric.Common;
using Microsoft.AspNetCore.Authorization;

namespace WorkOrderApi.Areas.Hy_Order.Controllers
{
    /// <summary>
    /// 测试 - 售后管理系统
    /// </summary>
    [Area("hy")]
    [AllowAnonymous]
    [ApiVersion("6.0")]
    [Route("api/hy")]
    [Produces("application/json")]
    public class InfoController : BaseController
    {
        [HttpGet]
        public IEnumerable<string> Get()
        {
            return new string[] { $"版本信息 {RequestedApiVersion} - For Hy", "开发团队: Mad Fun Fabric" };
        }

        protected ApiVersion RequestedApiVersion => HttpContext.GetRequestedApiVersion();
    }
}