29Wx状态初始化
This commit is contained in:
1 parent
9fd5579fcd
commit
40c702883c
322 files changed
+155553
No files matched your search
@@ -0,0 +1,46 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user