sunpengfei
9 天以前 484de131314a90144cceac6ea721e345ad014f08
LifePayment/LifePayment.Application.Contracts/LifePay/ILifePayRateService.cs
New file
@@ -0,0 +1,52 @@
using Alipay.EasySDK.Payment.Common.Models;
using LifePayment.Application.Contracts.LifePay;
using LifePayment.Domain.Shared;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Services;
using ZeroD.Util;
namespace LifePayment.Application.Contracts;
public interface ILifePayRateService : IApplicationService
{
    /// <summary>
    /// 获取折扣通道配置分页
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task<PageOutput<CreateEditRateChannelOutput>> GetLifePayRateChannelPage(PageInput input);
    /// <summary>
    /// 获取折扣通道配置列表
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task<List<CreateEditRateChannelOutput>> GetLifePayRateChannelAllList(QueryRateChannelInput input);
    /// <summary>
    /// 新增编辑折扣通道配置
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task<int> CreateOrEditLifePayRateChannel(CreateEditRateChannelInput input);
    /// <summary>
    /// 设置折扣通道状态
    /// </summary>
    /// <param name="id"></param>
    /// <param name="status"></param>
    /// <returns></returns>
    Task<int> SetRateChannelStatus(Guid id, LifePayRateChannelStatus status);
    /// <summary>
    /// 删除折扣通道
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    Task<int> DeleteRateChannel(Guid id);
    Task<CreateEditRateChannelOutput> GetRateChannelByCode(string code);
}