104 lines
3.5 KiB
C#
104 lines
3.5 KiB
C#
/*
|
||
*接口编写处...
|
||
*如果接口需要做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<IActionResult> GetAlertMessage()
|
||
{
|
||
return Json(_service.GetAlertMessage());
|
||
}
|
||
[Route("GetFirstVideoAddress"), HttpGet]
|
||
[AllowAnonymous]
|
||
public async Task<IActionResult> GetFirstVideoAddress(string iframeid = "gljsv01")
|
||
{
|
||
return Json(_service.GetFirstVideoAddress());
|
||
}
|
||
[Route("GetSecondVideoAddress"), HttpGet]
|
||
[AllowAnonymous]
|
||
public async Task<IActionResult> GetSecondVideoAddress(string iframeid = "gljsv01")
|
||
{
|
||
return Json(_service.GetSecondVideoAddress());
|
||
}
|
||
[Route("GetThirdVideoAddress"), HttpGet]
|
||
[AllowAnonymous]
|
||
public async Task<IActionResult> GetThirdVideoAddress(string iframeid = "gljsv01")
|
||
{
|
||
return Json(_service.GetThirdVideoAddress());
|
||
}
|
||
[Route("GetFourthVideoAddress"), HttpGet]
|
||
[AllowAnonymous]
|
||
public async Task<IActionResult> GetFourthVideoAddress(string iframeid = "gljsv01")
|
||
{
|
||
return Json(_service.GetFourthVideoAddress());
|
||
}
|
||
[Route("GetFifthVideoAddress"), HttpGet]
|
||
[AllowAnonymous]
|
||
public async Task<IActionResult> GetFifthVideoAddress(string iframeid = "gljsv01")
|
||
{
|
||
return Json(_service.GetFifthVideoAddress());
|
||
}
|
||
[Route("GetSixthVideoAddress"), HttpGet]
|
||
[AllowAnonymous]
|
||
public async Task<IActionResult> GetSixthVideoAddress(string iframeid = "gljsv01")
|
||
{
|
||
return Json(_service.GetSixthVideoAddress());
|
||
}
|
||
[Route("GetSeventhVideoAddress"), HttpGet]
|
||
[AllowAnonymous]
|
||
public async Task<IActionResult> GetSeventhVideoAddress(string iframeid = "gljsv01")
|
||
{
|
||
return Json(_service.GetSeventhVideoAddress());
|
||
}
|
||
[Route("GetEighthVideoAddress"), HttpGet]
|
||
[AllowAnonymous]
|
||
public async Task<IActionResult> GetEighthVideoAddress(string iframeid = "gljsv01")
|
||
{
|
||
return Json(_service.GetEighthVideoAddress());
|
||
}
|
||
[Route("GetNinthVideoAddress"), HttpGet]
|
||
[AllowAnonymous]
|
||
public async Task<IActionResult> GetNinthVideoAddress(string iframeid = "gljsv01")
|
||
{
|
||
return Json(_service.GetNinthVideoAddress());
|
||
}
|
||
[Route("GetTenthVideoAddress"), HttpGet]
|
||
[AllowAnonymous]
|
||
public async Task<IActionResult> GetTenthVideoAddress(string iframeid = "gljsv01")
|
||
{
|
||
return Json(_service.GetTenthVideoAddress());
|
||
}
|
||
}
|
||
}
|