添加项目文件。

This commit is contained in:
dell
2023-03-03 16:07:50 +08:00
parent 2c462551b6
commit 011039960e
585 changed files with 362460 additions and 0 deletions

View File

@ -0,0 +1,44 @@
/*******************************************************************************
* Copyright © 2020 HT.Cloud.Framework 版权所有
* Author: HT.Cloud
* Description: WaterCloud快速开发平台
* Website
*********************************************************************************/
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using HT.Cloud.Code;
using HT.Cloud.Service.SystemManage;
namespace HT.Cloud.Web.Areas.SystemManage.Controllers
{
[Area("SystemManage")]
public class QuickModuleController : Controller
{
public QuickModuleService _moduleService { get; set; }
[HttpGet]
public virtual ActionResult Index()
{
return View();
}
[HttpGet]
[HandlerAjaxOnly]
public async Task<ActionResult> GetTransferJson()
{
var userId = _moduleService.currentuser.UserId;
var data = await _moduleService.GetTransferList(userId);
return Content(data.ToJson());
}
[HttpPost]
[HandlerAjaxOnly]
public async Task<ActionResult> SubmitForm(string permissionIds)
{
string[] temp = string.IsNullOrEmpty(permissionIds) ? null : permissionIds.Split(',');
await _moduleService.SubmitForm(temp);
return Content(new AlwaysResult { state = ResultType.success.ToString(), message = "操作成功" }.ToJson());
}
}
}