using SqlSugar;
namespace dy.net.model.entity
{
[SugarTable(TableName = "dy_cookie")]
public class DouyinCookie
{
[SugarColumn(IsPrimaryKey = true)]
public string Id { get; set; }
///
/// 用户抖音ID,对应我关注信息里面的myself_user_id
///
[SugarColumn(Length =500,IsNullable =true)]
public string MyUserId { get; set; }
///
/// 用户描述
///
public string UserName { get; set; }
///
/// 用户抖音Cookie
///
[SugarColumn(Length =-1,IsNullable =true)]
public string Cookies { get; set; }
///
/// 存储路径(收藏视频的存储路径)
///
[SugarColumn(Length =255,IsNullable =true)]
public string SavePath { get; set; }
///
/// 是否按收藏夹文件夹来存储视频
///
public bool UseCollectFolder { get; set; }
///
/// 是否下载合集
///
public bool DownMix { get; set; }
///
/// 是否下载短剧
///
public bool DownSeries { get; set; }
///
/// 1 开启同步 0 关闭同步
///
public int Status { get; set; }
///
/// 同步喜欢的视频需要sec_user_id
///
[SugarColumn(Length =500,IsNullable =true)]
public string SecUserId { get; set; }
///
/// 喜欢的视频存储路径
///
[SugarColumn(Length =500,IsNullable =true)]
public string FavSavePath { get; set; }
/////
///// 最新收藏夹的分页页码
/////
//[SugarColumn(Length =500,IsNullable =true)]
//public string CollectMaxCursor { get; set; }
/////
///// 最新我喜欢的分页页码
/////
//[SugarColumn(Length = 500, IsNullable = true)]
//public string FavoriteMaxCursor { get; set; }
///
/// 是否已经同步过了(就是是否是第一次同步) 0-未同步 1-已同步
/// 如果是0,则同步时会获取全部数据;如果是1,则同步时只获取最新的数据(也就是只查一次)
/// 接口可以将该值改为0,下次开始同步就会重新获取全部数据
///
public int CollHasSyncd { get; set; }
public int FavHasSyncd { get; set; }
public int UperSyncd { get; set; }
///
/// 关注的用户sec_user_id列表 json字符串存储
///
//[SugarColumn(Length =-1,IsNullable =true)]
//public string UpSecUserIds { get; set; }
///
/// Up主发布的视频存储路径
///
[SugarColumn(Length = 500, IsNullable = true)]
public string UpSavePath { get; set; }
///
/// 图片视频存储路径
///
[SugarColumn(Length = 500, IsNullable = true)]
public string ImgSavePath { get; set; }
///
/// 抖音返回的状态码,主要用于判断Cookie是否有效
/// 0 正常 8 - 用户未登录
///
public int StatusCode { get; set; }
///
///
///
[SugarColumn(Length = 100, IsNullable = true)]
public string StatusMsg { get; set; }
///
/// 是否统一一个路径(savepath)
///
public bool useSinglePath { get; set; }
}
}