| New file |
| | |
| | | using LifePayment.Domain.Shared; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel.DataAnnotations; |
| | | |
| | | namespace LifePayment.Application.Contracts.LifePay; |
| | | |
| | | public class CreateEditRateChannelInput |
| | | { |
| | | public Guid? Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 充值类型 |
| | | /// </summary> |
| | | [Required(ErrorMessage = "充值类型是必填项。")] |
| | | public LifePayOrderTypeEnum LifePayOrderType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 通道 |
| | | /// </summary> |
| | | [Required(ErrorMessage = "通道是必填项。")] |
| | | public string RateChannelName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ID |
| | | /// </summary> |
| | | [Required(ErrorMessage = "ID是必填项。")] |
| | | public string Code { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 供应商折扣 |
| | | /// </summary> |
| | | [Required(ErrorMessage = "供应商折扣是必填项。")] |
| | | public decimal SupplierRate { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 平台折扣 |
| | | /// </summary> |
| | | [Required(ErrorMessage = "平台折扣是必填项。")] |
| | | public decimal PlatformRate { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 通道状态 |
| | | /// </summary> |
| | | [Required(ErrorMessage = "通道状态是必填项。")] |
| | | public LifePayRateChannelStatus Status { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 通知内容 |
| | | /// </summary> |
| | | [Required(ErrorMessage = "通知内容是必填项。")] |
| | | public string Remark { get; set; } |
| | | } |
| | | |
| | | public class CreateEditRateChannelOutput: CreateEditRateChannelInput |
| | | { |
| | | public DateTime CreationTime { get; set; } |
| | | } |
| | | |
| | | public class QueryRateChannelInput |
| | | { |
| | | public LifePayRateChannelStatus? Status { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 充值类型 |
| | | /// </summary> |
| | | public LifePayOrderTypeEnum? LifePayOrderType { get; set; } |
| | | } |