using Abp.AspNetCore.Mvc.Authorization; using Abp.Auditing; using Microsoft.AspNetCore.Mvc; using VberAdmin.Authorization; using VberAdmin.Controllers; using VberAdmin.Query; namespace VberAdmin.Web.Controllers; using Abp.Authorization; [AbpMvcAuthorize, DisableAuditing] public class BsController : VberAdminControllerBase { private readonly QueryAppService QueryApp; public BsController(QueryAppService queryApp) { QueryApp = queryApp; } public async Task SysUser() { ViewBag.IsActive = await QueryApp.GetActiveStateSelectStr(); ViewBag.IsActive2 = await QueryApp.GetActiveStateArrayStr(); ViewBag.UserType = await QueryApp.GetUserTypeSelectStr(1); ViewBag.UserTypeAll = await QueryApp.GetUserTypeSelectStr(); ViewBag.AccountType = await QueryApp.GetAccountTypeSelectStr(); ViewBag.Gender = await QueryApp.GetGenderTypeSelectStr(); ViewBag.Gender2 = await QueryApp.GetGenderTypeArrayStr(); return View(); } public async Task SysRole() { ViewBag.RoleTypeAll = await QueryApp.GetRoleTypeSelectStr(); ViewBag.RoleType = await QueryApp.GetRoleTypeSelectStr(1); ViewBag.AccountType = await QueryApp.GetAccountTypeSelectStr(); return View(); } [AbpMvcAuthorize(PermissionNames.VberSystemMgFunctionMg)] public async Task Function() { ViewBag.FunctionType = await QueryApp.GetFunctionTypeSelectStr(); return View(); } [AbpMvcAuthorize(PermissionNames.VberSystemMgStateMgQuery)] public ActionResult State() { return View(); } [AbpMvcAuthorize(PermissionNames.VberSystemMgSettingMg)] public ActionResult Setting() { return View(); } [AbpMvcAuthorize(PermissionNames.VberSystemMgLogMg)] public ActionResult Log() { ViewBag.ServiceNames = QueryApp.GetLogServiceSelectStr(); return View(); } [AbpAllowAnonymous] public ActionResult Notification() { return View(); } [AbpMvcAuthorize(PermissionNames.VberSystemMgHelpMg)] public async Task Help() { ViewBag.HelpType = await QueryApp.GetHelpTypeSelectStr(); ViewBag.FunctionMenu = await QueryApp.QueryFunctionPageSelectStr(); return View(); } public async Task Tenant() { ViewBag.IsActive = await QueryApp.GetActiveStateSelectStr(); ViewBag.IsActive2 = await QueryApp.GetActiveStateArrayStr(); return View(); } [AbpMvcAuthorize(PermissionNames.VberUserHelpInfo)] public ActionResult UserHelp() { return View(); } }