INoticeService.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using Lottomat.Application.Entity.PublicInfoManage;
  3. using Lottomat.Util.WebControl;
  4. using System.Collections.Generic;
  5. using System.Linq.Expressions;
  6. namespace Lottomat.Application.IService.PublicInfoManage
  7. {
  8. /// <summary>
  9. /// 版 本 1.0
  10. /// Copyright (c) 2016-2017
  11. /// 创建人:赵轶
  12. /// 日 期:2015.12.7 16:40
  13. /// 描 述:电子公告
  14. /// </summary>
  15. public interface INoticeService
  16. {
  17. #region 获取数据
  18. /// <summary>
  19. /// 公告列表
  20. /// </summary>
  21. /// <param name="pagination">分页</param>
  22. /// <param name="queryJson">查询参数</param>
  23. /// <returns></returns>
  24. IEnumerable<NewsEntity> GetPageList(Pagination pagination, string queryJson);
  25. /// <summary>
  26. /// 公告实体
  27. /// </summary>
  28. /// <param name="keyValue">主键值</param>
  29. /// <returns></returns>
  30. NewsEntity GetEntity(string keyValue);
  31. /// <summary>
  32. /// 获取所有数据
  33. /// </summary>
  34. /// <param name="condition"></param>
  35. /// <returns></returns>
  36. IEnumerable<NewsEntity> GetList(Expression<Func<NewsEntity, bool>> condition);
  37. #endregion
  38. #region 提交数据
  39. /// <summary>
  40. /// 删除公告
  41. /// </summary>
  42. /// <param name="keyValue">主键</param>
  43. void RemoveForm(string keyValue);
  44. /// <summary>
  45. /// 保存公告表单(新增、修改)
  46. /// </summary>
  47. /// <param name="keyValue">主键值</param>
  48. /// <param name="newsEntity">公告实体</param>
  49. /// <returns></returns>
  50. void SaveForm(string keyValue, NewsEntity newsEntity);
  51. #endregion
  52. }
  53. }