|
|
|
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<PageResult<cats>> GetDataListAsync(PageInput<ConditionDTO> input);
|
|
|
|
Task<cats> GetTheDataAsync(string id);
|
|
|
|
Task AddDataAsync(cats data);
|
|
|
|
Task UpdateDataAsync(cats data);
|
|
|
|
Task DeleteDataAsync(List<string> ids);
|
|
|
|
|
|
|
|
Task<List<CatTreeDTO>> GetTreeDataListAsync(CatsTreeInputDTO input);
|
|
|
|
|
|
|
|
AjaxResult GetParentCatList();
|
|
|
|
|
|
|
|
AjaxResult AddKeyWord(CatDto model);
|
|
|
|
Task<List<CatTreeDTO>> 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; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 淘宝时间是否超时
|
|
|
|
/// </summary>
|
|
|
|
public bool IsShowTBTime { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 京东时间
|
|
|
|
/// </summary>
|
|
|
|
public bool IsShowJDTime { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 拼多多时间是否超时
|
|
|
|
/// </summary>
|
|
|
|
public bool IsShowPddTime { get; set; }
|
|
|
|
}
|
|
|
|
}
|