平安校园
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.

преди 3 месеца
123456789101112131415161718192021222324252627282930313233343536
  1. namespace SafeCampus.Application.Services;
  2. public interface IApiBaseInterface<T, TList, in TS> where TS : BasePageInput where T : class where TList : class
  3. {
  4. /// <summary>
  5. /// 添加
  6. /// </summary>
  7. /// <param name="vm"></param>
  8. /// <returns></returns>
  9. public Task<bool> Add(T vm);
  10. /// <summary>
  11. /// 删除
  12. /// </summary>
  13. /// <param name="Id"></param>
  14. /// <returns></returns>
  15. public Task<bool> Delete(long Id);
  16. /// <summary>
  17. /// 修改
  18. /// </summary>
  19. /// <param name="vm"></param>
  20. /// <returns></returns>
  21. public Task<bool> Update(T vm);
  22. /// <summary>
  23. /// 根据id获取信息
  24. /// </summary>
  25. /// <param name="Id"></param>
  26. /// <returns></returns>
  27. public Task<T> GetInfo(long Id);
  28. /// <summary>
  29. /// 获取列表
  30. /// </summary>
  31. /// <param name="search"></param>
  32. /// <returns></returns>
  33. public Task<SqlSugarPagedList<TList>> GetList(TS search);
  34. }