1
dengjunjie
2025-03-18 9f225bb1f1e26d25c1652d3e1ec2a8f239f69615
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_TenantController.cs
@@ -1,19 +1,33 @@
namespace WIDESEA_WMSServer.Controllers;

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_Core.Const;
using WIDESEA_Core.Helper;
using WIDESEA_Core.HttpContextUser;
using WIDESEA_ISystemService;
using WIDESEA_Model;
using WIDESEA_Model.Models;
[Route("api/tenant")]
[ApiController]
public class Sys_TenantController : ApiBaseController<ISys_TenantService, Sys_Tenant>
namespace WIDESEA_WMSServer.Controllers
{
    private readonly IHttpContextAccessor _httpContextAccessor;
    public Sys_TenantController(ISys_TenantService tenantService, IHttpContextAccessor httpContextAccessor) : base(tenantService)
    [Route("api/tenant")]
    [ApiController]
    public class Sys_TenantController : ApiBaseController<ISys_TenantService, Sys_Tenant>
    {
        _httpContextAccessor = httpContextAccessor;
    }
        private readonly IHttpContextAccessor _httpContextAccessor;
    [HttpGet, Route("initTenantInfo"), AllowAnonymous]
    public WebResponseContent InitTenantInfo(string tenantName, int tenantType)
    {
        return Service.InitTenantInfo(tenantName, tenantType);
        public Sys_TenantController(ISys_TenantService tenantService, IHttpContextAccessor httpContextAccessor) : base(tenantService)
        {
            _httpContextAccessor = httpContextAccessor;
        }
        [HttpGet, Route("initTenantInfo"), AllowAnonymous]
        public WebResponseContent InitTenantInfo(string tenantName, int tenantType)
        {
            return Service.InitTenantInfo(tenantName, tenantType);
        }
    }
}
}