IGroupCategroyRepository.cs 877 B

1234567891011121314151617181920212223242526272829
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using Datory;
  4. using GxPress.Result.Web;
  5. namespace GxPress.Repository.Interface.Group
  6. {
  7. public interface IGroupCategroyRepository : IRepository
  8. {
  9. /// <summary>
  10. /// 添加小组广场
  11. /// </summary>
  12. /// <param name="groupCategroy"></param>
  13. /// <returns></returns>
  14. Task<int> InsertAsync(Entity.tede2.Group.GroupCategroy groupCategroy);
  15. Task<bool> UpdateAsync(Entity.tede2.Group.GroupCategroy groupCategroy);
  16. Task<Entity.tede2.Group.GroupCategroy> GetAsync(int id);
  17. Task<bool> DeleteAsync(int id);
  18. /// <summary>
  19. /// 根据parendId获取
  20. /// </summary>
  21. /// <param name="parentId"></param>
  22. /// <returns></returns>
  23. Task<IEnumerable<GroupCategoryResult>> GetAllAsync(int parentId);
  24. }
  25. }