using LifePayment.Application.Contracts;
|
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Mvc;
|
using System.Collections.Generic;
|
using System.Threading.Tasks;
|
using Volo.Abp.AspNetCore.Mvc;
|
|
namespace LifePayment.HttpApi
|
{
|
[Route("api/[controller]/[action]")]
|
[ApiController]
|
[Authorize]
|
public class SyncController : AbpController
|
{
|
private readonly ISyncService syncService;
|
|
public SyncController(ISyncService syncService)
|
{
|
this.syncService = syncService;
|
}
|
|
/// <summary>
|
/// 同步测试订单数据
|
/// </summary>
|
/// <returns></returns>
|
[HttpPost]
|
[AllowAnonymous]
|
public Task<List<string>> SyncFromTest()
|
{
|
return syncService.SyncFromTest();
|
}
|
}
|
}
|