using System;
using System.Collections.Generic;
namespace RoadFlow.Data.Interface
{
public interface IUsers
{
///
/// 新增
///
int Add(RoadFlow.Data.Model.Users model);
///
/// 更新
///
int Update(RoadFlow.Data.Model.Users model);
///
/// 查询所有记录
///
List GetAll();
///
/// 查询单条记录
///
Model.Users Get(string id);
///
/// 删除
///
int Delete(string id);
///
/// 查询记录条数
///
long GetCount();
///
/// 根据帐号查询一条记录
///
RoadFlow.Data.Model.Users GetByAccount2(string Account2);
///
/// 查询一个岗位下所有人员
///
///
///
List GetAllByOrganizeID(string organizeID);
///
/// 查询一组岗位下所有人员
///
///
///
List GetAllByOrganizeIDArray(string[] organizeIDArray);
///
/// 检查帐号是否重复
///
/// 帐号
/// 人员ID(此人员除外)
///
bool HasAccount2(string Account2, string userID = "");
///
/// 修改用户密码
///
///
///
///
bool UpdatePassword(string password, Guid userID);
///
/// 更新排序
///
int UpdateSort(Guid userID, int sort);
}
}