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(Guid id);
///
/// 删除
///
int Delete(Guid id);
///
/// 查询记录条数
///
long GetCount();
///
/// 根据帐号查询一条记录
///
RoadFlow.Data.Model.Users GetByAccount(string account);
///
/// 查询一个岗位下所有人员
///
///
///
List GetAllByOrganizeID(Guid organizeID);
///
/// 查询一组岗位下所有人员
///
///
///
List GetAllByOrganizeIDArray(Guid[] organizeIDArray);
///
/// 检查帐号是否重复
///
/// 帐号
/// 人员ID(此人员除外)
///
bool HasAccount(string account, string userID = "");
///
/// 修改用户密码
///
///
///
///
bool UpdatePassword(string password, Guid userID);
///
/// 更新排序
///
int UpdateSort(Guid userID, int sort);
}
}