|
@@ -1,7 +1,8 @@
|
|
|
-using AutoMapper;
|
|
|
-using Hotline.Permissions;
|
|
|
+using Hotline.Permissions;
|
|
|
using Hotline.Settings;
|
|
|
using Hotline.Share.Dtos.Org;
|
|
|
+using MapsterMapper;
|
|
|
+using Microsoft.AspNetCore.Authorization;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
using XF.Domain.Exceptions;
|
|
|
|
|
@@ -27,6 +28,7 @@ namespace Hotline.Api.Controllers
|
|
|
/// <returns></returns>
|
|
|
[Permission(EPermission.GetOrgJson)]
|
|
|
[HttpGet("getorgjson")]
|
|
|
+ [AllowAnonymous]
|
|
|
public async Task<IReadOnlyList<SystemOrganize>> GetOrgJson()
|
|
|
{
|
|
|
return await _systemOrganizeRepository.GetOrgJson();
|