全部加入JWT驗證
This commit is contained in:
parent
51f4bafb9f
commit
56322e39dc
|
@ -6,12 +6,14 @@ using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_space_algorithmController : ControllerBase
|
public class Parking_space_algorithmController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -8,11 +8,13 @@ using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_spaces_cam_ptzController : ControllerBase
|
public class Parking_spaces_cam_ptzController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -5,6 +5,7 @@ using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
|
|
||||||
|
@ -12,6 +13,7 @@ namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_spaces_cam_ptz_car_num_checkController : ControllerBase
|
public class Parking_spaces_cam_ptz_car_num_checkController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -6,12 +6,14 @@ using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_spaces_cam_ptz_passController : ControllerBase
|
public class Parking_spaces_cam_ptz_passController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -7,11 +7,13 @@ using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_spaces_cam_ptz_violationController : ControllerBase
|
public class Parking_spaces_cam_ptz_violationController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -8,11 +8,13 @@ using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
using WebApi_data_value.ViewModel;
|
using WebApi_data_value.ViewModel;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_spaces_historyController : ControllerBase
|
public class Parking_spaces_historyController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -8,12 +8,14 @@ using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
using WebApi_data_value.ViewModel;
|
using WebApi_data_value.ViewModel;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_spaces_instantController : ControllerBase
|
public class Parking_spaces_instantController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -7,11 +7,13 @@ using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_spaces_lcd_instandController : ControllerBase
|
public class Parking_spaces_lcd_instandController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -7,12 +7,14 @@ using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
using WebApi_data_value.ViewModel;
|
using WebApi_data_value.ViewModel;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_spaces_roiController : ControllerBase
|
public class Parking_spaces_roiController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -7,11 +7,13 @@ using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_spaces_roi_car_num_checkController : ControllerBase
|
public class Parking_spaces_roi_car_num_checkController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -7,11 +7,13 @@ using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_spaces_roi_passController : ControllerBase
|
public class Parking_spaces_roi_passController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -7,11 +7,13 @@ using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_spaces_roi_violationController : ControllerBase
|
public class Parking_spaces_roi_violationController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -8,11 +8,13 @@ using Microsoft.EntityFrameworkCore;
|
||||||
using MySqlX.XDevAPI.Common;
|
using MySqlX.XDevAPI.Common;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_spaces_total_tableController : ControllerBase
|
public class Parking_spaces_total_tableController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -7,11 +7,13 @@ using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Parking_spaces_violation_total_tableController : ControllerBase
|
public class Parking_spaces_violation_total_tableController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -8,11 +8,13 @@ using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
using WebApi_data_value.ViewModel;
|
using WebApi_data_value.ViewModel;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Violation_car_tableController : ControllerBase
|
public class Violation_car_tableController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
|
@ -8,12 +8,14 @@ using Microsoft.EntityFrameworkCore;
|
||||||
using WebApi_data_value.Models;
|
using WebApi_data_value.Models;
|
||||||
using WebApi_data_value.Services;
|
using WebApi_data_value.Services;
|
||||||
using WebApi_data_value.ViewModel;
|
using WebApi_data_value.ViewModel;
|
||||||
|
using WebApi_data_value.Authorization;
|
||||||
|
|
||||||
namespace WebApi_data_value.Controllers
|
namespace WebApi_data_value.Controllers
|
||||||
{
|
{
|
||||||
|
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
[Authorize]
|
||||||
public class Yuntech_in_car_tableController : ControllerBase
|
public class Yuntech_in_car_tableController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly SqlContext _context;
|
private readonly SqlContext _context;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user