12345678910111213141516171819202122232425262728293031323334 |
- using DllEapDal.OFILM;
- using DllEapEntity.Dtos;
- using DllEapEntity.OFILM;
- using Microsoft.AspNetCore.Authorization;
- using Microsoft.AspNetCore.Hosting;
- using Microsoft.AspNetCore.Mvc;
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Threading.Tasks;
- namespace DllEapBll.OFILM
- {
- [ApiController]
- [Route("eap/api/[controller]/[action]")]
- [Authorize]
- public class MacOrderController : ControllerBase
- {
- private IHostingEnvironment hostEnvironment;
- public MacOrderController(IHostingEnvironment hostingEnvironment)
- {
- this.hostEnvironment = hostingEnvironment;
- }
- [HttpGet]
- public async Task<LayuiModel<MacOrderDescDto>> Get(string order)
- {
- var path = hostEnvironment.WebRootPath + "/doc/ASM指令解释.xls";
- var dal = new MacOrderDescDal();
- var data = await dal.Get(order, path);
- return data;
- }
- }
- }
|