Yuebon.WebApi/Controllers/DashboardController.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Yuebon.WebApi.Controllers;
/// <summary>
///
/// </summary>
[Route("api/[controller]")]
[ApiController]
public class DashboardController :ApiController
{
private IUserService _userService;
private ISystemTypeService _systemTypeService;
private IAPPService _appService;
private ILogService _logService;
private IRoleService _roleService;
/// <summary>
/// 构造函数注入服务
/// </summary>
/// <param name="iService"></param>
/// <param name="systemTypeService"></param>
/// <param name="roleService"></param>
/// <param name="logService"></param>
/// <param name="appService"></param>
public DashboardController(IUserService iService, ISystemTypeService systemTypeService, IRoleService roleService ,ILogService logService, IAPPService appService)
{
_userService = iService;
_systemTypeService = systemTypeService;
_logService = logService;
_roleService = roleService;
_appService = appService;
}
/// <summary>
/// 子系统初始化
/// </summary>
/// <param name="userId">用户Id</param>
/// <param name="appId">应用Id</param>
/// <param name="systemCode">子系统代码</param>
/// <returns>返回用户User对象</returns>
[HttpGet("InitSystem")]
[NoPermissionRequired]
public async Task<IActionResult> InitSystem(long userId,string appId, string systemCode)
{
CommonResult result = new CommonResult();
if (string.IsNullOrEmpty(userId.ToString()))
{
result.ErrMsg = ErrCode.err40007;
}
if (string.IsNullOrEmpty(systemCode))
{
result.ErrMsg = ErrCode.err40007;
}
else
{
string strHost = Request.Host.ToString();
APP app = await _appService.GetAPP(appId);
if (app == null)
{
result.ErrCode = "40001";
result.ErrMsg = ErrCode.err40001;
}
后面还有 69 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。