wangxinhui
2024-12-26 78b99e5348592a29ca1393a5e13db619cc4eba56
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 *接口编写处...
*如果接口需要做Action的权限验证,请在Action上使用属性
*如: [ApiActionPermission("base_ware_location",Enums.ActionPermissionOptions.Search)]
 */
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using WIDESEA_Core.Utilities;
using WIDESEA_Entity.DomainModels;
using WIDESEA_Services.IServices;
 
namespace WIDESEA_Services.Controllers
{
    public partial class base_ware_locationController
    {
        private readonly Ibase_ware_locationService _service;//访问业务代码
        private readonly IHttpContextAccessor _httpContextAccessor;
 
        [ActivatorUtilitiesConstructor]
        public base_ware_locationController(
            Ibase_ware_locationService service,
            IHttpContextAccessor httpContextAccessor
        )
        : base(service)
        {
            _service = service;
            _httpContextAccessor = httpContextAccessor;
        }
        /// <summary>
        /// 解绑辊分下料架设备绑定关系
        /// </summary>
        /// <returns></returns>
        [HttpPost, Route("GFXLuntie"), AllowAnonymous]
        public WebResponseContent GFXLuntie([FromBody] base_ware_location[] keys)
        {
            return _service.GFXLuntie(keys);
        }
    }
}