IOrderRepository.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Threading.Tasks;
  2. using Datory;
  3. using GxPress.Common.Page;
  4. using GxPress.Request.Order;
  5. using GxPress.Result.Order;
  6. namespace GxPress.Repository.Interface.Order
  7. {
  8. public interface IOrderRepository : IRepository
  9. {
  10. /// <summary>
  11. /// 查询订单
  12. /// </summary>
  13. /// <param name="request"></param>
  14. /// <returns></returns>
  15. Task<PagedList<Entity.Order.Order>> GetAllOrderAsync(OrderSearchRequest request);
  16. /// <summary>
  17. /// 财务中心
  18. /// </summary>
  19. /// <param name="request"></param>
  20. /// <returns></returns>
  21. Task<OrderFinanceResult<Entity.Order.Order>> GetAllOrderFinnceAsync(OrderFinanceSearchRequest request);
  22. /// <summary>
  23. /// 添加
  24. /// </summary>
  25. /// <param name="order"></param>
  26. /// <returns></returns>
  27. Task<int> InsertAsync(Entity.Order.Order order);
  28. /// <summary>
  29. ///获取订单
  30. /// </summary>
  31. /// <param name="orderNumber"></param>
  32. /// <returns></returns>
  33. Task<Entity.Order.Order> GetOrderAsync(string orderNumber);
  34. Task<bool> UpdateAsync(Entity.Order.Order order);
  35. Task<bool> GetExistsAsync(int userId, int mediaId);
  36. }
  37. }