using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using YD_YiLu.Api.Services.Interface; using YD_YiLu.Commons.Dto.DeviceSync; namespace YD_YiLu.Api.Controllers { /// /// 设置接口 /// [AllowAnonymous] public class SettingController : ControllerBase { private readonly IDeviceSyncService _deviceSyncService; public SettingController(IDeviceSyncService deviceSyncService) { _deviceSyncService = deviceSyncService; } /// /// 拉取安装包新版本 /// [HttpPost] [Route("/setting/verify/app")] public async Task AppVerify([FromBody] AppVerifyRequestDto dto) { return await _deviceSyncService.AppVerifyAsync(dto); } /// /// 新增app版本 /// /// /// [HttpPost("app/version/add")] public async Task AddAppVersion([FromBody] AppVersionAddRequestDto dto) { return await _deviceSyncService.AppVersionAddAsync(dto); } } }