將所有API分成大內網及外網

This commit is contained in:
leo890808 2024-04-24 16:33:49 +08:00
parent dfb05c45d5
commit e92347e5fa
19 changed files with 19 additions and 0 deletions

View File

@ -14,6 +14,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Parking_space_algorithmController : ControllerBase public class Parking_space_algorithmController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -17,6 +17,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Parking_spaces_camController : ControllerBase public class Parking_spaces_camController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -15,6 +15,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Parking_spaces_cam_ptzController : ControllerBase public class Parking_spaces_cam_ptzController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -14,6 +14,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
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;

View File

@ -14,6 +14,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Parking_spaces_cam_ptz_passController : ControllerBase public class Parking_spaces_cam_ptz_passController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -14,6 +14,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Parking_spaces_cam_ptz_violationController : ControllerBase public class Parking_spaces_cam_ptz_violationController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -15,6 +15,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Parking_spaces_historyController : ControllerBase public class Parking_spaces_historyController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -16,6 +16,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Parking_spaces_instantController : ControllerBase public class Parking_spaces_instantController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -14,6 +14,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Parking_spaces_lcd_instandController : ControllerBase public class Parking_spaces_lcd_instandController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -15,6 +15,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Parking_spaces_roiController : ControllerBase public class Parking_spaces_roiController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -14,6 +14,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
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;

View File

@ -14,6 +14,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Parking_spaces_roi_passController : ControllerBase public class Parking_spaces_roi_passController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -14,6 +14,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Parking_spaces_roi_violationController : ControllerBase public class Parking_spaces_roi_violationController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -15,6 +15,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Parking_spaces_total_tableController : ControllerBase public class Parking_spaces_total_tableController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -14,6 +14,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Parking_spaces_violation_total_tableController : ControllerBase public class Parking_spaces_violation_total_tableController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -18,6 +18,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園外網")]
public class Violation_car_tableController : ControllerBase public class Violation_car_tableController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -14,6 +14,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園大內網")]
public class Yuntech_camController : ControllerBase public class Yuntech_camController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -14,6 +14,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園大內網")]
public class Yuntech_cam_total_tableController : ControllerBase public class Yuntech_cam_total_tableController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;

View File

@ -17,6 +17,7 @@ namespace Parking_space_WebAPI.Controllers
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize] [Authorize]
[ApiExplorerSettings(GroupName = "校園大內網")]
public class Yuntech_in_car_tableController : ControllerBase public class Yuntech_in_car_tableController : ControllerBase
{ {
private readonly SqlContext _context; private readonly SqlContext _context;