1
yanjinhui
2025-06-12 10c497ad3b1802e1c8feed8df0a290a407ec72bc
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
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_ISystemServices;
using WIDESEAWCS_Model.Models;
 
namespace WIDESEAWCS_Server.Controllers.System
{
    [Route("api/StorageMode")]
    [ApiController]
    public class StoragemodeController : ApiBaseController<Idt_StoragemodeService, dt_storagemode>
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        public StoragemodeController(Idt_StoragemodeService service, IHttpContextAccessor httpContextAccessor) : base(service)
        {
            _httpContextAccessor = httpContextAccessor;
        }
 
        [HttpPost, Route("UpdateStoragemode"), AllowAnonymous]
        public WebResponseContent UpdateStoragemode(int storagemode)
        {
            return Service.UpdateStoragemode(storagemode);
        }
    }
}