103 lines
2.8 KiB
C#
103 lines
2.8 KiB
C#
using Api.Framework.Enums;
|
|
using Api.Framework.Tools;
|
|
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Api.Framework.Model
|
|
{
|
|
/// <summary>
|
|
/// 平台账号对象(拼多多|阿里妈妈|京东联盟)
|
|
/// </summary>
|
|
public class fl_cps_member : base_model
|
|
{
|
|
public override string ToString()
|
|
{
|
|
switch (cpstype)
|
|
{
|
|
case CpsType.阿里妈妈:
|
|
case CpsType.多多进宝:
|
|
case CpsType.唯品联盟:
|
|
case CpsType.抖音联盟:
|
|
case CpsType.苏宁易购:
|
|
case CpsType.快手联盟:
|
|
return $"{usernick}({username})";
|
|
case CpsType.京东联盟:
|
|
return $"{username}({usernick})";
|
|
default:
|
|
return $"{usernick}({username})";
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 登录名(京东联盟:key)
|
|
/// </summary>
|
|
public string username { get; set; }
|
|
|
|
/// <summary>
|
|
/// 用户昵称(京东联盟:unionId)
|
|
/// </summary>
|
|
public string usernick { get; set; }
|
|
|
|
/// <summary>
|
|
/// Cookies
|
|
/// </summary>
|
|
[SugarColumn(ColumnDataType = "text")]
|
|
public string cookies { get; set; }
|
|
|
|
/// <summary>
|
|
/// 登录时间
|
|
/// </summary>
|
|
public DateTime logintime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 账号类型
|
|
/// </summary>
|
|
public CpsType cpstype { get; set; }
|
|
|
|
/// <summary>
|
|
/// 异常通知
|
|
/// </summary>
|
|
public SwitchType abnormal_tip { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否下载
|
|
/// </summary>
|
|
public SwitchType is_download { get; set; }
|
|
|
|
private bool _online;
|
|
/// <summary>
|
|
/// 在线
|
|
/// </summary>
|
|
public bool online { get { return (cpstype == CpsType.阿里妈妈 || cpstype == CpsType.京东联盟 || cpstype == CpsType.抖音联盟) ? _online : true; } set { _online = value; } }
|
|
|
|
/// <summary>
|
|
/// 高佣是否有效(淘宝有效)
|
|
/// </summary>
|
|
public bool is_valid { get; set; }
|
|
|
|
/// <summary>
|
|
/// 其他
|
|
/// </summary>
|
|
[SugarColumn(ColumnDataType = "text")]
|
|
public string other { get; set; }
|
|
|
|
/// <summary>
|
|
/// 其他2
|
|
/// </summary>
|
|
public string other2 { get; set; }
|
|
|
|
public fl_cps_member()
|
|
{
|
|
this.online = false;
|
|
this.cookies = string.Empty;
|
|
this.abnormal_tip = SwitchType.开启;
|
|
this.is_download = SwitchType.开启;
|
|
this.is_valid = true;
|
|
}
|
|
}
|
|
}
|