Laservall_manager_system/VOL.WebApi/Controllers/Sys/Partial/FormCollectionObjectControl...

34 lines
1.0 KiB
C#
Raw Normal View History

2025-09-25 14:37:10 +08:00
/*
*...
*Action的权限验证Action上使用属性
*: [ApiActionPermission("FormCollectionObject",Enums.ActionPermissionOptions.Search)]
*/
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Http;
using VOL.Entity.DomainModels;
using VOL.Sys.IServices;
namespace VOL.Sys.Controllers
{
public partial class FormCollectionObjectController
{
private readonly IFormCollectionObjectService _service;//访问业务代码
private readonly IHttpContextAccessor _httpContextAccessor;
[ActivatorUtilitiesConstructor]
public FormCollectionObjectController(
IFormCollectionObjectService service,
IHttpContextAccessor httpContextAccessor
)
: base(service)
{
_service = service;
_httpContextAccessor = httpContextAccessor;
}
}
}