using HL_FristAidPlatform_Help;
using HL_FristAidPlatform_Models;
namespace HL_FristAidPlatform_IDataBase
{
///
/// 接口层 我的收藏
///
public interface IT_Service_Enshrine
{
#region 增
///
/// 增加一条数据
///
/// 实体
///
bool Add(T_Service_Enshrine model);
///
/// 新增 仅更新赋值的字段
///
///
///
int AddNotNullColumns(T_Service_Enshrine model);
///
/// 新增 仅更新赋值的字段
/// 用于移动端
///
/// 实体类
///
int AddForApp(T_Service_Enshrine model);
#endregion
#region 删
///
/// 删除数据
///
bool Delete(long ID);
///
/// 逻辑删除
///
/// 实体类
///
int LogicalDelete(T_Service_Enshrine model);
///
/// 删除
/// 用于移动端
///
/// 实体类,ID必填
///
int DeleteForApp(T_Service_Enshrine model);
#endregion
#region 改
///
/// 更新一条数据
///
/// 实体
///
bool Update(T_Service_Enshrine model);
///
/// 仅更新赋值的字段
///
/// 实体类
///
int UpdateNotNullColumns(T_Service_Enshrine model);
///
/// 修改--仅更新赋值的字段
/// 用于移动端
///
/// 实体类
///
int UpdateForApp(T_Service_Enshrine model);
#endregion
#region 查
///
/// 得到一个对象实体
///
/// 主键
///
T_Service_Enshrine GetModel(long ID);
///
/// 得到一个对象实体
/// 用于移动端
///
/// 患者编号
/// GUID
///
TableModel GetModelForApp(long id, string guid);
///
/// 根据分页获得数据列表
///
/// 起始页
/// 每页条数
/// 用户编号
/// 类型 1:病例
///
TableModel GetPageList(int pageSize, int pageIndex, long userId, int type);
///
/// 根据分页获得数据列表
/// 用于移动端
///
/// 起始页
/// 每页条数
/// 用户编号
/// 类型 1:病例
///
TableModel GetPageListForApp(int pageSize, int pageIndex, long userId, int type);
///
/// 查询具体收藏
///
/// 用户编号
/// 类型 1:病例
/// 动态编号
///
TableModel GetModelByDynamicGuid(long userId, int type, string dynamicGuid);
#endregion
}
}