upd: 修改订单与家政人员接口
This commit is contained in:
		| @ -0,0 +1,61 @@ | ||||
| using KonSoft.Admin.Dtos; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Threading.Tasks; | ||||
| using Volo.Abp.Application.Services; | ||||
|  | ||||
| namespace KonSoft.Admin.IApplicationServices; | ||||
|  | ||||
| public interface IHouseholdWorkerAppService : IApplicationService | ||||
| { | ||||
|     /// <summary> | ||||
|     /// 家政人员注册 | ||||
|     /// </summary> | ||||
|     /// <param name="input"></param> | ||||
|     /// <returns></returns> | ||||
|     Task RegisterAsync(WorkerRegisterDto input); | ||||
|  | ||||
|     /// <summary> | ||||
|     /// 家政人员接单 | ||||
|     /// </summary> | ||||
|     /// <param name="orderId"></param> | ||||
|     /// <returns></returns> | ||||
|     Task AcceptOrderAsync(Guid orderId); | ||||
|  | ||||
|     /// <summary> | ||||
|     /// 家政人员退单 | ||||
|     /// </summary> | ||||
|     /// <param name="orderId"></param> | ||||
|     /// <returns></returns> | ||||
|     Task RejectOrderAsync(Guid orderId); | ||||
|  | ||||
|  | ||||
|     /// <summary> | ||||
|     /// 已到达(开始服务) | ||||
|     /// </summary> | ||||
|     /// <param name="orderId"></param> | ||||
|     /// <returns></returns> | ||||
|     Task StartServiceAsync(Guid orderId); | ||||
|  | ||||
|     /// <summary> | ||||
|     /// 完成服务 | ||||
|     /// </summary> | ||||
|     /// <param name="orderId"></param> | ||||
|     /// <returns></returns> | ||||
|     Task CompleteServiceAsync(Guid orderId); | ||||
|  | ||||
|     /// <summary> | ||||
|     /// 获取当前分配给家政人员的订单列表 | ||||
|     /// </summary> | ||||
|     /// <returns></returns> | ||||
|     Task<List<OrderDto>> GetAssignedOrdersAsync(OrderPagedResultRequestDto requestDto); | ||||
|  | ||||
|     /// <summary> | ||||
|     /// 获取待接单订单 | ||||
|     /// </summary> | ||||
|     /// <returns></returns> | ||||
|     Task<List<OrderDto>> GetCreatedOrdersAsync(OrderPagedResultRequestDto requestDto); | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @ -15,14 +15,37 @@ public interface IOrderAppService : IApplicationService | ||||
|     /// <returns></returns> | ||||
|     Task<OrderDto> CreateAsync(CreateOrderDto input); | ||||
|  | ||||
|     Task<OrderDto> PayAsync(Guid orderId, PayOrderDto input); | ||||
|     Task AssignAsync(Guid orderId, Guid workerId); | ||||
|     Task StartServiceAsync(Guid orderId); | ||||
|     Task CompleteServiceAsync(Guid orderId); | ||||
|     Task ConfirmAsync(Guid orderId); | ||||
|     /// <summary> | ||||
|     /// 支付上门费 | ||||
|     /// </summary> | ||||
|     /// <param name="orderId"></param> | ||||
|     /// <param name="input"></param> | ||||
|     /// <returns></returns> | ||||
|     Task PayServiceCallFeeAsync(Guid orderId, PayOrderDto input); | ||||
|  | ||||
|  | ||||
|     /// <summary> | ||||
|     /// 支付 | ||||
|     /// </summary> | ||||
|     /// <param name="orderId"></param> | ||||
|     /// <param name="input"></param> | ||||
|     /// <returns></returns> | ||||
|     Task PayAsync(Guid orderId, PayOrderDto input); | ||||
|  | ||||
|     /// <summary> | ||||
|     /// 取消订单 | ||||
|     /// </summary> | ||||
|     /// <param name="orderId"></param> | ||||
|     /// <param name="reason"></param> | ||||
|     /// <returns></returns> | ||||
|     Task CancelAsync(Guid orderId, string reason); | ||||
|     Task DeleteAsync(params Guid[] ids); | ||||
|     /// <summary> | ||||
|     /// 修改订单 | ||||
|     /// </summary> | ||||
|     /// <param name="input"></param> | ||||
|     /// <returns></returns> | ||||
|     Task EditAsync(OrderDto input); | ||||
|     Task<OrderDto> GetAsync(Guid id); | ||||
|     Task<PagedResultDto<OrderDto>> GetListAsync(PagedResultRequestDto input); | ||||
|     Task<PagedResultDto<OrderDto>> GetListAsync(OrderPagedResultRequestDto input); | ||||
| } | ||||
| @ -1,7 +0,0 @@ | ||||
| using Volo.Abp.Application.Services; | ||||
|  | ||||
| namespace KonSoft.Admin.IApplicationServices; | ||||
|  | ||||
| public interface IWorkerAppService : IApplicationService | ||||
| { | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 于鹏
					于鹏