|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
-
- //
-
-
-
-
-
-
-
-
- namespace SafeCampus.System;
-
- /// <summary>
- /// 职位服务
- /// </summary>
- public interface ISysPositionService : ITransient
- {
- #region 查询
-
- /// <summary>
- /// 获取职位列表
- /// </summary>
- /// <returns>职位列表</returns>
- Task<List<SysPosition>> GetListAsync();
-
- /// <summary>
- /// 获取职位信息
- /// </summary>
- /// <param name="id">职位ID</param>
- /// <returns>职位信息</returns>
- Task<SysPosition> GetSysPositionById(long id);
-
- /// <summary>
- /// 职位分页查询
- /// </summary>
- /// <param name="input">查询参数</param>
- /// <returns>分页列表</returns>
- Task<SqlSugarPagedList<SysPosition>> Page(PositionPageInput input);
-
- /// <summary>
- /// 职位选择器
- /// </summary>
- /// <param name="input">查询参数</param>
- /// <returns></returns>
- Task<List<PositionSelectorOutput>> Selector(PositionSelectorInput input);
-
-
-
- /// <summary>
- /// 根据id集合获取职位集合
- /// </summary>
- /// <param name="input"></param>
- /// <returns></returns>
- Task<List<SysPosition>> GetPositionListByIdList(IdListInput input);
-
- /// <summary>
- /// 职位树形结构
- /// </summary>
- /// <param name="input"></param>
- /// <returns></returns>
- Task<List<PositionTreeOutput>> Tree(PositionTreeInput input);
-
- /// <summary>
- /// 职位详情
- /// </summary>
- /// <param name="input"></param>
- /// <returns></returns>
- Task<SysPosition> Detail(BaseIdInput input);
-
- #endregion
-
- #region 编辑
-
- /// <summary>
- /// 编辑职位
- /// </summary>
- /// <param name="input">编辑参数</param>
- /// <param name="name">名称</param>
- /// <returns></returns>
- Task Edit(PositionEditInput input, string name = SystemConst.SYS_POS);
-
-
- /// <summary>
- /// 刷新缓存
- /// </summary>
- /// <returns></returns>
- Task RefreshCache();
-
- #endregion
-
- #region 新增
-
- /// <summary>
- /// 添加职位
- /// </summary>
- /// <param name="input">添加参数</param>
- /// <param name="name">名称</param>
- /// <returns></returns>
- Task Add(PositionAddInput input, string name = SystemConst.SYS_POS);
-
- #endregion
-
- #region 删除
-
- /// <summary>
- /// 删除职位
- /// </summary>
- /// <param name="input">id列表</param>
- /// <param name="name">名称</param>
- /// <returns></returns>
- Task Delete(BaseIdListInput input, string name = SystemConst.SYS_POS);
-
- #endregion
- }
|