using System; using System.Collections.Generic; using System.Text; using Song.Entities; using System.Data; namespace Song.ServiceInterfaces { /// /// 问题消息管理 /// public interface IMessage : WeiSha.Common.IBusinessInterface { /// /// 添加 /// /// 业务实体 int Add(Message entity); /// /// 修改 /// /// 业务实体 void Save(Message entity); /// /// 删除 /// /// 业务实体 int Delete(Message entity); /// /// 删除,按主键ID; /// /// 实体的主键 int Delete(int identify); /// /// 删除,按主键id和学员id /// /// 主键id /// 学员账户id int Delete(int identify,int acid); /// /// 获取单一实体对象,按主键ID; /// /// 实体的主键 /// Message GetSingle(int identify); /// /// 获取留言 /// /// 课程id /// 章节id /// Message[] GetAll(int couid, int olid); /// /// 获取留言 /// /// 章节id /// 排序方式,desc或asc /// Message[] GetAll(int olid,string order); /// /// 获取留言 /// /// /// /// /// /// Message[] GetCount(int couid, int olid, string order, int count); /// /// 获取留言数量 /// /// /// /// int GetOfCount(int couid, int olid); /// /// 分页获取 /// /// /// /// /// /// 创建时间,起始范围 /// 创建时间,结束的范围 /// /// /// /// Message[] GetPager(int couid, int olid, int stid, string sear, DateTime? startTime, DateTime? endTime, int size, int index, out int countSum); /// /// 分页获取 /// /// /// /// /// /// /// /// /// /// /// Message[] GetPager(int couid, int olid, int stid, string sear, int startPlay, int endPlay, int size, int index, out int countSum); } }