zhengyuxuan
2025-04-02 87095b4a2d3e342f4374423b22d90f0ed6557a7d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using LifePayment.Application.Contracts;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Uow;
using ZeroD.Util;
 
namespace LifePayment.HttpApi
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    [Authorize]
    public class OperateHistoryController : AbpController
    {
        private readonly IOperateHistoryService _operateHistoryService;
        public OperateHistoryController(
               IOperateHistoryService operateHistoryService)
        {
            _operateHistoryService = operateHistoryService;
        }
        /// <summary>
        /// 查询日志
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [HttpPost]
        [UnitOfWork(IsDisabled = true)]
        public async Task<PageOutput<OperateHistoryDto>> GetOperateHistoryByRelationId(GetOperateHistoryInput input)
        {
            return await _operateHistoryService.GetOperateHistoryByRelationId(input);
        }
 
        /// <summary>
        /// 根据type查询日志
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [HttpPost]
        [UnitOfWork(IsDisabled = true)]
        public async Task<PageOutput<OperateHistoryDto>> GetOperateHistoryByType(QueryOperateHistoryByTypeInput input)
        {
            return await _operateHistoryService.GetOperateHistoryByType(input);
        }
    }
}