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.
74 lines
1.9 KiB
74 lines
1.9 KiB
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace RoadFlow.Data.Interface
|
|
{
|
|
public interface IUsersRelation
|
|
{
|
|
/// <summary>
|
|
/// 新增
|
|
/// </summary>
|
|
int Add(RoadFlow.Data.Model.UsersRelation model);
|
|
|
|
/// <summary>
|
|
/// 更新
|
|
/// </summary>
|
|
int Update(RoadFlow.Data.Model.UsersRelation model);
|
|
|
|
/// <summary>
|
|
/// 查询所有记录
|
|
/// </summary>
|
|
List<RoadFlow.Data.Model.UsersRelation> GetAll();
|
|
|
|
/// <summary>
|
|
/// 查询单条记录
|
|
/// </summary>
|
|
Model.UsersRelation Get(Guid userid, Guid organizeid);
|
|
|
|
/// <summary>
|
|
/// 删除
|
|
/// </summary>
|
|
int Delete(string userid, string organizeid);
|
|
|
|
/// <summary>
|
|
/// 查询记录条数
|
|
/// </summary>
|
|
long GetCount();
|
|
|
|
/// <summary>
|
|
/// 查询一个岗位下所有记录
|
|
/// </summary>
|
|
List<RoadFlow.Data.Model.UsersRelation> GetAllByOrganizeID(string organizeID);
|
|
|
|
/// <summary>
|
|
/// 查询一个用户所有记录
|
|
/// </summary>
|
|
List<RoadFlow.Data.Model.UsersRelation> GetAllByUserID(string userID);
|
|
|
|
/// <summary>
|
|
/// 查询一个用户主要岗位
|
|
/// </summary>
|
|
RoadFlow.Data.Model.UsersRelation GetMainByUserID(string userID);
|
|
|
|
/// <summary>
|
|
/// 删除一个用户记录
|
|
/// </summary>
|
|
int DeleteByUserID(Guid userID);
|
|
|
|
/// <summary>
|
|
/// 删除一个用户的兼职记录
|
|
/// </summary>
|
|
int DeleteNotIsMainByUserID(Guid userID);
|
|
|
|
/// <summary>
|
|
/// 删除一个机构下所有记录
|
|
/// </summary>
|
|
int DeleteByOrganizeID(Guid organizeID);
|
|
|
|
/// <summary>
|
|
/// 得到最大排序值
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
int GetMaxSort(Guid organizeID);
|
|
}
|
|
}
|
|
|