You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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; }
|
|
|
|
}
|
|
|
|
}
|