From 484de131314a90144cceac6ea721e345ad014f08 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期四, 04 十二月 2025 09:20:56 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/LifePaymentApi

---
 LifePayment/LifePayment.HttpApi/LifePay/LifePayRateController.cs |   95 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 95 insertions(+), 0 deletions(-)

diff --git a/LifePayment/LifePayment.HttpApi/LifePay/LifePayRateController.cs b/LifePayment/LifePayment.HttpApi/LifePay/LifePayRateController.cs
new file mode 100644
index 0000000..c653287
--- /dev/null
+++ b/LifePayment/LifePayment.HttpApi/LifePay/LifePayRateController.cs
@@ -0,0 +1,95 @@
+锘縰sing Alipay.AopSdk.F2FPay.Model;
+using LifePayment.Application;
+using LifePayment.Application.Contracts;
+using LifePayment.Application.Contracts.LifePay;
+using LifePayment.Application.LifePay;
+using LifePayment.Domain;
+using LifePayment.Domain.Common;
+using LifePayment.Domain.Shared;
+using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.Extensions.Logging;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Volo.Abp;
+using Volo.Abp.AspNetCore.Mvc;
+using Volo.Abp.AspNetCore.WebClientInfo;
+using ZeroD.Util;
+using ZeroD.Util.Fadd;
+
+namespace LifePayment.HttpApi
+{
+    [Route("api/[controller]/[action]")]
+    [ApiController]
+    [Authorize]
+    public class LifePayRateController : AbpController
+    {
+        private readonly ILifePayRateService _lifePayRateService;
+
+        public LifePayRateController(
+              ILifePayRateService lifePayRateService
+              )
+        {
+            _lifePayRateService = lifePayRateService;
+        }
+
+        /// <summary>
+        /// 鑾峰彇鎶樻墸閫氶亾閰嶇疆鍒嗛〉
+        /// </summary>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        [HttpPost]
+        public async Task<PageOutput<CreateEditRateChannelOutput>> GetLifePayRateChannelPage(PageInput input)
+        {
+            return await _lifePayRateService.GetLifePayRateChannelPage(input);
+        }
+
+        /// <summary>
+        /// 鑾峰彇鎶樻墸閫氶亾閰嶇疆鍒楄〃
+        /// </summary>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        [HttpPost]
+        [AllowAnonymous]
+        public async Task<List<CreateEditRateChannelOutput>> GetLifePayRateChannelAllList(QueryRateChannelInput input)
+        {
+            return await _lifePayRateService.GetLifePayRateChannelAllList(input);
+        }
+
+        /// <summary>
+        /// 鏂板缂栬緫鎶樻墸閫氶亾閰嶇疆
+        /// </summary>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        [HttpPost]
+        public async Task<int> CreateOrEditLifePayRateChannel(CreateEditRateChannelInput input)
+        {
+            return await _lifePayRateService.CreateOrEditLifePayRateChannel(input);
+        }
+
+        /// <summary>
+        /// 璁剧疆鎶樻墸閫氶亾鐘舵��
+        /// </summary>
+        /// <param name="id"></param>
+        /// <param name="status"></param>
+        /// <returns></returns>
+        [HttpGet]
+        public async Task<int> SetRateChannelStatus(Guid id, LifePayRateChannelStatus status)
+        {
+            return await _lifePayRateService.SetRateChannelStatus(id, status);
+        }
+
+        /// <summary>
+        /// 鍒犻櫎鎶樻墸閫氶亾
+        /// </summary>
+        /// <param name="id"></param>
+        /// <returns></returns>
+        [HttpPost]
+        public async Task<int> DeleteRateChannel(Guid id)
+        {
+            return await _lifePayRateService.DeleteRateChannel(id);
+        }
+    }
+}

--
Gitblit v1.9.1