old_flsystem/类库/Api.Framework/Model/fl_cps_member.cs

103 lines
2.8 KiB
C#
Raw Normal View History

2022-09-20 03:10:29 +00:00
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; }
2022-12-28 09:10:01 +00:00
/// <summary>
/// 其他2
/// </summary>
public string other2 { get; set; }
2022-09-20 03:10:29 +00:00
public fl_cps_member()
{
this.online = false;
this.cookies = string.Empty;
this.abnormal_tip = SwitchType.;
this.is_download = SwitchType.;
this.is_valid = true;
}
}
}