Files
HTCloud/HT.Cloud.Web/Controllers/HomeController.cs
2023-03-03 16:07:50 +08:00

59 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*******************************************************************************
* Copyright © 2020 HT.Cloud.Framework 版权所有
* Author: HT.Cloud
* Description: WaterCloud快速开发平台
* Website
*********************************************************************************/
using Microsoft.AspNetCore.Mvc;
using HT.Cloud.Service.SystemOrganize;
namespace HT.Cloud.Web.Controllers
{
public class HomeController : Controller
{
public SystemSetService _setService { get; set; }
[HttpGet]
[HandlerLogin]
public ActionResult Index()
{
//主页信息获取
if (_setService.currentuser.UserId == null)
{
return View();
}
var systemset = _setService.GetForm(_setService.currentuser.CompanyId).GetAwaiter().GetResult();
ViewBag.ProjectName = systemset.F_ProjectName;
ViewBag.LogoIcon = ".." + systemset.F_Logo;
return View();
}
[HttpGet]
[HandlerLogin]
public ActionResult Default()
{
return View();
}
[HttpGet]
[HandlerLogin]
public ActionResult UserSetting()
{
return View();
}
[HttpGet]
public ActionResult Error()
{
return View();
}
[HttpGet]
[HandlerLogin]
public ActionResult Message()
{
return View();
}
}
}