You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.1 KiB
78 lines
2.1 KiB
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace RoadFlow.Data.Interface
|
|
{
|
|
public interface IUsers
|
|
{
|
|
/// <summary>
|
|
/// 新增
|
|
/// </summary>
|
|
int Add(RoadFlow.Data.Model.Users model);
|
|
|
|
/// <summary>
|
|
/// 更新
|
|
/// </summary>
|
|
int Update(RoadFlow.Data.Model.Users model);
|
|
|
|
/// <summary>
|
|
/// 查询所有记录
|
|
/// </summary>
|
|
List<RoadFlow.Data.Model.Users> GetAll();
|
|
|
|
/// <summary>
|
|
/// 查询单条记录
|
|
/// </summary>
|
|
Model.Users Get(string id);
|
|
|
|
/// <summary>
|
|
/// 删除
|
|
/// </summary>
|
|
int Delete(string id);
|
|
|
|
/// <summary>
|
|
/// 查询记录条数
|
|
/// </summary>
|
|
long GetCount();
|
|
|
|
/// <summary>
|
|
/// 根据帐号查询一条记录
|
|
/// </summary>
|
|
RoadFlow.Data.Model.Users GetByAccount2(string Account2);
|
|
|
|
/// <summary>
|
|
/// 查询一个岗位下所有人员
|
|
/// </summary>
|
|
/// <param name="organizeID"></param>
|
|
/// <returns></returns>
|
|
List<Model.Users> GetAllByOrganizeID(string organizeID);
|
|
|
|
/// <summary>
|
|
/// 查询一组岗位下所有人员
|
|
/// </summary>
|
|
/// <param name="organizeID"></param>
|
|
/// <returns></returns>
|
|
List<Model.Users> GetAllByOrganizeIDArray(string[] organizeIDArray);
|
|
|
|
/// <summary>
|
|
/// 检查帐号是否重复
|
|
/// </summary>
|
|
/// <param name="Account2">帐号</param>
|
|
/// <param name="userID">人员ID(此人员除外)</param>
|
|
/// <returns></returns>
|
|
bool HasAccount2(string Account2, string userID = "");
|
|
|
|
/// <summary>
|
|
/// 修改用户密码
|
|
/// </summary>
|
|
/// <param name="password"></param>
|
|
/// <param name="userID"></param>
|
|
/// <returns></returns>
|
|
bool UpdatePassword(string password, Guid userID);
|
|
|
|
/// <summary>
|
|
/// 更新排序
|
|
/// </summary>
|
|
int UpdateSort(Guid userID, int sort);
|
|
}
|
|
}
|
|
|