飞星
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.
 
 
 
 

53 regels
1.5 KiB

  1. using Permission.Entity.News;
  2. using Permission.Infrastructure.WebControls;
  3. namespace Permission.Service.IServices
  4. {
  5. public interface INewsInfoService
  6. {
  7. /// <summary>
  8. /// 新增内容
  9. /// </summary>
  10. /// <param name="model"></param>
  11. bool AddModel(NewsInfo model);
  12. /// <summary>
  13. /// 编辑内容
  14. /// </summary>
  15. /// <param name="model"></param>
  16. bool ModifyModel(NewsInfo model);
  17. bool ModifyModel(int newId,int op);
  18. /// <summary>
  19. /// 删除
  20. /// </summary>
  21. /// <param name="key">主键编号</param>
  22. bool DeleteModel(int key);
  23. /// <summary>
  24. /// 根据主键获取内容实体
  25. /// </summary>
  26. /// <param name="key">主键</param>
  27. /// <returns></returns>
  28. NewsInfo GetNewsInfoByKey(int key);
  29. /// <summary>
  30. /// 条件分页查询
  31. /// </summary>
  32. /// <param name="pagesize"></param>
  33. /// <param name="pageindex"></param>
  34. /// <param name="keyword"></param>
  35. /// <param name="typeid"></param>
  36. /// <returns></returns>
  37. Page<NewsInfo> PageList(int typeid, string keyword, int pagesize, int pageindex);
  38. /// <summary>
  39. /// 新闻列表分页
  40. /// </summary>
  41. /// <param name="pagesize">The pagesize.</param>
  42. /// <param name="pageindex">The pageindex.</param>
  43. /// <returns></returns>
  44. Page<NewsInfo> NewsListPageList(int pagesize, int pageindex);
  45. }
  46. }