|
@@ -6,12 +6,14 @@ using Hotline.Repository.SqlSugar.Extensions;
|
|
|
using Hotline.Settings;
|
|
|
using Hotline.Share.Dtos;
|
|
|
using Hotline.Share.Dtos.Roles;
|
|
|
+using Hotline.Share.Enums.Settings;
|
|
|
using MapsterMapper;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
using Microsoft.Extensions.Options;
|
|
|
using SqlSugar;
|
|
|
using XF.Domain.Exceptions;
|
|
|
using XF.Domain.Options;
|
|
|
+using XF.Utility.EnumExtensions;
|
|
|
using XF.Utility.UnifyResponse;
|
|
|
|
|
|
namespace Hotline.Api.Controllers;
|
|
@@ -307,6 +309,15 @@ public class RoleController : BaseController
|
|
|
.ToListAsync();
|
|
|
}
|
|
|
|
|
|
+ [HttpGet("base-data")]
|
|
|
+ public object BaseData()
|
|
|
+ {
|
|
|
+ return new
|
|
|
+ {
|
|
|
+ AccessLevelOptions = EnumExts.GetDescriptions<ETableAccessLevel>()
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
#endregion
|
|
|
|
|
|
#region private
|