chore 优化代码
This commit is contained in:
		| @ -1,28 +1,28 @@ | ||||
| using KonSoft.Admin.Dtos; | ||||
| using System; | ||||
| using System; | ||||
| using System.Threading.Tasks; | ||||
| using KonSoft.Admin.Dtos; | ||||
| using Volo.Abp.Application.Dtos; | ||||
| using Volo.Abp.Application.Services; | ||||
|  | ||||
| namespace KonSoft.Admin.IApplicationServices | ||||
| namespace KonSoft.Admin.IApplicationServices; | ||||
|  | ||||
| public interface IOrderAppService : IApplicationService | ||||
| { | ||||
|     public interface IOrderAppService : IApplicationService | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// 创建订单 | ||||
|         /// </summary> | ||||
|         /// <param name="input"></param> | ||||
|         /// <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); | ||||
|         Task CancelAsync(Guid orderId, string reason); | ||||
|         Task DeleteAsync(params Guid[] ids); | ||||
|         Task EditAsync(OrderDto input); | ||||
|         Task<OrderDto> GetAsync(Guid id); | ||||
|         Task<PagedResultDto<OrderDto>> GetListAsync(PagedResultRequestDto input); | ||||
|     } | ||||
| } | ||||
|     /// <summary> | ||||
|     ///     创建订单 | ||||
|     /// </summary> | ||||
|     /// <param name="input"></param> | ||||
|     /// <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); | ||||
|     Task CancelAsync(Guid orderId, string reason); | ||||
|     Task DeleteAsync(params Guid[] ids); | ||||
|     Task EditAsync(OrderDto input); | ||||
|     Task<OrderDto> GetAsync(Guid id); | ||||
|     Task<PagedResultDto<OrderDto>> GetListAsync(PagedResultRequestDto input); | ||||
| } | ||||
| @ -0,0 +1,16 @@ | ||||
| using System; | ||||
| using System.Threading.Tasks; | ||||
| using KonSoft.Admin.Dtos; | ||||
| using Volo.Abp.Application.Dtos; | ||||
| using Volo.Abp.Application.Services; | ||||
|  | ||||
| namespace KonSoft.Admin.IApplicationServices; | ||||
|  | ||||
| public interface IProductAppService : IApplicationService | ||||
| { | ||||
|     Task CreateAsync(CreateProductDto input); | ||||
|     Task UpdateAsync(UpdateProductDto input); | ||||
|     Task DeleteAsync(Guid id); | ||||
|     Task<ProductDto> GetAsync(Guid id); | ||||
|     Task<PagedResultDto<ProductDto>> GetListAsync(PagedResultRequestDto input); | ||||
| } | ||||
| @ -1,17 +0,0 @@ | ||||
| using KonSoft.Admin.Dtos; | ||||
| using System; | ||||
| using System.Threading.Tasks; | ||||
| using Volo.Abp.Application.Dtos; | ||||
| using Volo.Abp.Application.Services; | ||||
|  | ||||
| namespace KonSoft.Admin.IApplicationServices | ||||
| { | ||||
|     public interface IProductService: IApplicationService | ||||
|     { | ||||
|         Task CreateAsync(CreateProductDto input); | ||||
|         Task UpdateAsync(UpdateProductDto input); | ||||
|         Task DeleteAsync(Guid id); | ||||
|         Task<ProductDto> GetAsync(Guid id); | ||||
|         Task<PagedResultDto<ProductDto>> GetListAsync(PagedResultRequestDto input); | ||||
|     } | ||||
| } | ||||
| @ -1,16 +1,13 @@ | ||||
| using KonSoft.Admin.Dtos; | ||||
| using System; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
| using KonSoft.Admin.Dtos; | ||||
|  | ||||
| namespace KonSoft.Admin.IApplicationServices | ||||
| namespace KonSoft.Admin.IApplicationServices; | ||||
|  | ||||
| public interface IServiceCategoryAppService | ||||
| { | ||||
|     public interface IServiceCategoryAppService | ||||
|     { | ||||
|         Task<ServiceCategoryDto> CreateAsync(CreateServiceCategoryDto input); | ||||
|         Task DeleteAsync(Guid id); | ||||
|         Task<List<ServiceCategoryDto>> GetTreeAsync(); | ||||
|     } | ||||
| } | ||||
|     Task<ServiceCategoryDto> CreateAsync(CreateServiceCategoryDto input); | ||||
|     Task DeleteAsync(Guid id); | ||||
|     Task<List<ServiceCategoryDto>> GetTreeAsync(); | ||||
| } | ||||
| @ -1,13 +1,7 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
| using Volo.Abp.Application.Services; | ||||
| using Volo.Abp.Application.Services; | ||||
|  | ||||
| namespace KonSoft.Admin.IApplicationServices | ||||
| namespace KonSoft.Admin.IApplicationServices; | ||||
|  | ||||
| public interface IWorkerAppService : IApplicationService | ||||
| { | ||||
|     public interface IWorkerAppService : IApplicationService | ||||
|     { | ||||
|     } | ||||
| } | ||||
| } | ||||
| @ -1,15 +1,5 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
| namespace KonSoft.Admin.IApplicationServices; | ||||
|  | ||||
| namespace KonSoft.Admin.IApplicationServices | ||||
| public interface IWorkerAssignmentService | ||||
| { | ||||
|     public interface IWorkerAssignmentService | ||||
|     { | ||||
|  | ||||
|  | ||||
|  | ||||
|     } | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user