Files
2026-06-11 15:17:50 +08:00

47 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.DouYinModel.Result
{
public class DouSubAccountModelItem
{
public List<DouSubAccountModel> DouSubAccountModel =new List<DouSubAccountModel>();
DouSubAccountModel currentModel = null;
public DouSubAccountModel CurrentModel
{
get
{
if (currentModel == null)
currentModel = DouSubAccountModel.FirstOrDefault();
else {
for (int i = 0; i < DouSubAccountModel.Count; i++)
{
if (DouSubAccountModel[i] == currentModel)
{
if (i == DouSubAccountModel.Count - 1)
currentModel = DouSubAccountModel[0];
else
currentModel = DouSubAccountModel[i + 1];
break;
}
}
}
return currentModel;
}
}
}
public class DouSubAccountModel
{
public string shop_id { get; set; }
public string sub_user_id { get; set; }
public string status { get; set; }
public string group_id { get; set; }
public string company_id { get; set; }
}
}