|
@@ -22,16 +22,16 @@ namespace Controllers
|
|
// [ApiExplorerSettings(GroupName = "PageUpdateInfo")]
|
|
// [ApiExplorerSettings(GroupName = "PageUpdateInfo")]
|
|
public class PageUpdateInfoController : BaseController
|
|
public class PageUpdateInfoController : BaseController
|
|
{
|
|
{
|
|
- /// <summary>
|
|
|
|
- /// api分组接口
|
|
|
|
- /// </summary>
|
|
|
|
private readonly IPageUpdateInfoService _PageUpdateInfoService;
|
|
private readonly IPageUpdateInfoService _PageUpdateInfoService;
|
|
|
|
+ private readonly IAppBottomNavsService _AppBottomNavsService;
|
|
|
|
+ private readonly IFileUpdateInfoService _FileUpdateInfoService;
|
|
|
|
|
|
|
|
|
|
- public PageUpdateInfoController(IPageUpdateInfoService PageUpdateInfoService)
|
|
|
|
|
|
+ public PageUpdateInfoController(IPageUpdateInfoService PageUpdateInfoService, IAppBottomNavsService AppBottomNavsService, IFileUpdateInfoService FileUpdateInfoService)
|
|
{
|
|
{
|
|
_PageUpdateInfoService = PageUpdateInfoService;
|
|
_PageUpdateInfoService = PageUpdateInfoService;
|
|
-
|
|
|
|
|
|
+ _AppBottomNavsService = AppBottomNavsService;
|
|
|
|
+ _FileUpdateInfoService = FileUpdateInfoService;
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -153,6 +153,25 @@ namespace Controllers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 生成APP配置文件
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="parm">请求参数</param>
|
|
|
|
+ /// <returns>生成APP配置文件</returns>
|
|
|
|
+ [HttpPut]
|
|
|
|
+ [Route("/Api/SystemSet/makeAppInitData")]
|
|
|
|
+ public string makeAppInitData([FromBody] MakeAppInitDataDto parm)
|
|
|
|
+ {
|
|
|
|
+ string AppInfoList = _AppBottomNavsService.makeAppInitData(parm.Kind);
|
|
|
|
+ string FileInfoList = _FileUpdateInfoService.makeAppInitData(parm.Kind);
|
|
|
|
+ string PageInfoList = _PageUpdateInfoService.makeAppInitData(parm.Kind);
|
|
|
|
+ return AppInfoList + "#cut#" + FileInfoList + "#cut#" + PageInfoList;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|