12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- using Attribute;
- using Common;
- using Dto;
- using Vo;
- using Enums;
- using Filters;
- using Infrastructure;
- using Infrastructure.Model;
- using Mapster;
- using Microsoft.AspNetCore.Mvc;
- using Middleware;
- using Model;
- using Services.Client;
- using Model.Base;
- namespace Controllers
- {
- /// <summary>
- /// App)Controller
- /// </summary>
- // [Route("app")]
- // [ApiExplorerSettings(GroupName = "App")]
- public class AppController : BaseController
- {
- /// <summary>
- /// api分组接口
- /// </summary>
- private readonly IAppBottomNavsService _AppBottomNavsService;
- private readonly IFileUpdateInfoService _FileUpdateInfoService;
- private readonly IPageUpdateInfoService _PageUpdateInfoService;
- public AppController(IAppBottomNavsService AppBottomNavsService,IFileUpdateInfoService FileUpdateInfoService,IPageUpdateInfoService PageUpdateInfoService)
- {
- _AppBottomNavsService = AppBottomNavsService;
- _FileUpdateInfoService = FileUpdateInfoService;
- _PageUpdateInfoService = PageUpdateInfoService;
- }
- /// <summary>
- /// APP底部导航列表
- /// </summary>
- /// <param name="parm">请求参数</param>
- /// <returns>APP底部导航列表</returns>
- [HttpGet]
- [Route("/v1/kxsconfig/app/appBottomNavs")]
- public IActionResult AppBottomNavs([FromQuery] AppAppBottomNavsDto parm)
- {
- var response = _AppBottomNavsService.AppBottomNavs(parm);
- return SUCCESS(response);
- }
- /// <summary>
- /// APP静态资源
- /// </summary>
- /// <param name="parm">请求参数</param>
- /// <returns>APP静态资源</returns>
- [HttpGet]
- [Route("/v1/kxsconfig/app/staticFiles")]
- public IActionResult StaticFiles([FromQuery] AppStaticFilesDto parm)
- {
- var response = _FileUpdateInfoService.StaticFiles(parm);
- return SUCCESS(response);
- }
- /// <summary>
- /// APP页面数据检查
- /// </summary>
- /// <param name="parm">请求参数</param>
- /// <returns>APP页面数据检查</returns>
- [HttpGet]
- [Route("/v1/kxsconfig/app/pageInfo")]
- public IActionResult PageInfo([FromQuery] AppPageInfoDto parm)
- {
- var response = _PageUpdateInfoService.Queryable()
- .First(x => x.moduleVersion == parm.moduleVersion)
- .Adapt<AppPageInfoVo>() ?? new AppPageInfoVo();
- return SUCCESS(response);
- }
- }
- }
|