/* *接口编写处... *如果接口需要做Action的权限验证,请在Action上使用属性 *如: [ApiActionPermission("ReadDBTableName",Enums.ActionPermissionOptions.Search)] */ using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.DependencyInjection; using VolPro.Core.DBManager; using VolPro.Core.DbSqlSugar; using VolPro.Entity.DomainModels; using Warehouse.IServices; namespace Warehouse.Controllers { public partial class ReadDBTableNameController { private readonly IReadDBTableNameService _service;//访问业务代码 private readonly IHttpContextAccessor _httpContextAccessor; [ActivatorUtilitiesConstructor] public ReadDBTableNameController( IReadDBTableNameService service, IHttpContextAccessor httpContextAccessor ) : base(service) { _service = service; _httpContextAccessor = httpContextAccessor; } [Route("GetAlertMessage"), HttpGet] [AllowAnonymous] public async Task GetAlertMessage() { return Json(_service.GetAlertMessage()); } [Route("GetFirstVideoAddress"), HttpGet] [AllowAnonymous] public async Task GetFirstVideoAddress(string iframeid = "gljsv01") { return Json(_service.GetFirstVideoAddress()); } [Route("GetSecondVideoAddress"), HttpGet] [AllowAnonymous] public async Task GetSecondVideoAddress(string iframeid = "gljsv01") { return Json(_service.GetSecondVideoAddress()); } [Route("GetThirdVideoAddress"), HttpGet] [AllowAnonymous] public async Task GetThirdVideoAddress(string iframeid = "gljsv01") { return Json(_service.GetThirdVideoAddress()); } [Route("GetFourthVideoAddress"), HttpGet] [AllowAnonymous] public async Task GetFourthVideoAddress(string iframeid = "gljsv01") { return Json(_service.GetFourthVideoAddress()); } [Route("GetFifthVideoAddress"), HttpGet] [AllowAnonymous] public async Task GetFifthVideoAddress(string iframeid = "gljsv01") { return Json(_service.GetFifthVideoAddress()); } [Route("GetSixthVideoAddress"), HttpGet] [AllowAnonymous] public async Task GetSixthVideoAddress(string iframeid = "gljsv01") { return Json(_service.GetSixthVideoAddress()); } [Route("GetSeventhVideoAddress"), HttpGet] [AllowAnonymous] public async Task GetSeventhVideoAddress(string iframeid = "gljsv01") { return Json(_service.GetSeventhVideoAddress()); } [Route("GetEighthVideoAddress"), HttpGet] [AllowAnonymous] public async Task GetEighthVideoAddress(string iframeid = "gljsv01") { return Json(_service.GetEighthVideoAddress()); } [Route("GetNinthVideoAddress"), HttpGet] [AllowAnonymous] public async Task GetNinthVideoAddress(string iframeid = "gljsv01") { return Json(_service.GetNinthVideoAddress()); } [Route("GetTenthVideoAddress"), HttpGet] [AllowAnonymous] public async Task GetTenthVideoAddress(string iframeid = "gljsv01") { return Json(_service.GetTenthVideoAddress()); } } }