12345678910111213141516171819202122232425 |
- using LJProxy.LJLib.Net.SPI.Server;
- using LJProxy.Models;
- using LJProxy.Services;
- using Microsoft.AspNetCore.Mvc;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace LJProxy.Excutor
- {
- public class GetUpdateJsonExcutor : ExcutorBase<GetUpdateJsonRequest>
- {
- VersionService _service = new VersionService();
- protected override IActionResult ExcuteInternal(GetUpdateJsonRequest request, object state)
- {
- string updateJson = _service.GetUpdateJson();
- var result = new ContentResult();
- result.Content = updateJson;
- result.ContentType = "application/json";
- return result;
- }
- }
- }
|