77 lines
2.4 KiB
C#
77 lines
2.4 KiB
C#
using Api.Framework.Enums;
|
|
using Api.Framework.Tools;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Api.Framework.Model
|
|
{
|
|
public class fl_ratio_info_custom_group : base_model
|
|
{
|
|
[Browsable(false)]
|
|
private string _name = " ";
|
|
/// <summary>
|
|
/// 分组名称
|
|
/// </summary>
|
|
[Category("独立分组编辑"), DisplayName("1.分组名称"), DefaultValue(""), Description("独立分组名称,自己用于区分独立分组")]
|
|
public string name
|
|
{
|
|
get { return _name; }
|
|
set
|
|
{
|
|
if (string.IsNullOrWhiteSpace(value))
|
|
throw new Exception("请填写分组名");
|
|
else
|
|
_name = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// CPS类型
|
|
/// </summary>
|
|
[Category("独立分组编辑"), DisplayName("2.联盟类型"), Description("针对哪个联盟平台生效"), ReadOnly(true)]
|
|
public CpsType cps_type { get; set; }
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 自定义分出比例
|
|
/// </summary>
|
|
public class fl_ratio_info_custom : base_model
|
|
{
|
|
/// <summary>
|
|
/// 独立分组id
|
|
/// </summary>
|
|
[Browsable(false)]
|
|
public long cgid { get; set; }
|
|
/// <summary>
|
|
/// 佣金条件
|
|
/// </summary>
|
|
[Category("属性编辑"), DisplayName("1.佣金条件"), Description("总佣金小于等于这个值,会采用该比例!")]
|
|
public double comm { get; set; }
|
|
|
|
/// <summary>
|
|
/// 返点数值
|
|
/// </summary>
|
|
[Category("属性编辑"), DisplayName("2.返利数值"), Description("满足条件的佣金,返利多少!")]
|
|
public double subsidy_num { get; set; }
|
|
|
|
/// <summary>
|
|
/// 补贴类型
|
|
/// </summary>
|
|
[Category("属性编辑"), DisplayName("3.返利类型"), DefaultValue(SubsidyType.百分比), Description("通过百分比,还是固定值返利!")]
|
|
public SubsidyType subsidy_type { get; set; }
|
|
|
|
/// <summary>
|
|
/// CPS类型
|
|
/// </summary>
|
|
//[Category("属性编辑"), DisplayName("4.联盟类型"), Description("针对哪个联盟平台生效"), ReadOnly(true)]
|
|
[Browsable(false)]
|
|
public CpsType cps_type { get; set; }
|
|
}
|
|
|
|
}
|