using Coldairarrow.Entity.DTO; using Coldairarrow.Entity.HuiYan; using Coldairarrow.Util; using System.Collections.Generic; using System.Threading.Tasks; namespace Coldairarrow.Business.HuiYan { public interface IcatsBusiness { Task> GetDataListAsync(PageInput input); Task GetTheDataAsync(string id); Task AddDataAsync(cats data); Task UpdateDataAsync(cats data); Task DeleteDataAsync(List ids); Task> GetTreeDataListAsync(CatsTreeInputDTO input); AjaxResult GetParentCatList(); AjaxResult AddKeyWord(CatDto model); Task> GetTreeDataListAsync(); AjaxResult AddKeyWord(KeyWordDto model); AjaxResult SetKeyOpenTime(string id); } public class CatsTreeInputDTO { public string parentId { get; set; } } public class CatTreeDTO : TreeModel { public object children { get => Children; } public string title { get => Text; } public string value { get => Id; } public string key { get => Id; } public int Type { get; set; } /// /// 淘宝时间是否超时 /// public bool IsShowTBTime { get; set; } /// /// 京东时间 /// public bool IsShowJDTime { get; set; } /// /// 拼多多时间是否超时 /// public bool IsShowPddTime { get; set; } } }