This commit is contained in:
2026-09-21 15:03:52 +08:00
parent d597975b42
commit 369bbd43fd
31 changed files with 2480 additions and 769 deletions
+78 -57
View File
@@ -28,6 +28,84 @@ func (s *OrderServer) Items(ctx context.Context, in *order.OrderItemsRequest) (*
return l.Items(in)
}
func (s *OrderServer) AddressItem(ctx context.Context, in *order.AddressItemsRequest) (*order.Response, error) {
l := logic.NewAddressItemLogic(ctx, s.svcCtx)
return l.AddressItem(in)
}
func (s *OrderServer) AddressByStore(ctx context.Context, in *order.AddressByStoreItemsRequest) (*order.Response, error) {
l := logic.NewAddressByStoreLogic(ctx, s.svcCtx)
return l.AddressByStore(in)
}
func (s *OrderServer) OrderAuditingItems(ctx context.Context, in *order.OrderAuditingItemsRequest) (*order.Response, error) {
l := logic.NewOrderAuditingItemsLogic(ctx, s.svcCtx)
return l.OrderAuditingItems(in)
}
func (s *OrderServer) OrderAuditing(ctx context.Context, in *order.OrderAuditingRequest) (*order.Response, error) {
l := logic.NewOrderAuditingLogic(ctx, s.svcCtx)
return l.OrderAuditing(in)
}
func (s *OrderServer) OrderCreate(ctx context.Context, in *order.AdminCreateOrderRequest) (*order.Response, error) {
l := logic.NewOrderCreateLogic(ctx, s.svcCtx)
return l.OrderCreate(in)
}
func (s *OrderServer) OrderDown(ctx context.Context, in *order.OrderItemsRequest) (*order.ExcelExportResponse, error) {
l := logic.NewOrderDownLogic(ctx, s.svcCtx)
return l.OrderDown(in)
}
func (s *OrderServer) OrderInfo(ctx context.Context, in *order.IdRequest) (*order.Response, error) {
l := logic.NewOrderInfoLogic(ctx, s.svcCtx)
return l.OrderInfo(in)
}
func (s *OrderServer) SupplyItems(ctx context.Context, in *order.SupplyItemsRequest) (*order.Response, error) {
l := logic.NewSupplyItemsLogic(ctx, s.svcCtx)
return l.SupplyItems(in)
}
func (s *OrderServer) SupplyStatus(ctx context.Context, in *order.StatusRequest) (*order.Response, error) {
l := logic.NewSupplyStatusLogic(ctx, s.svcCtx)
return l.SupplyStatus(in)
}
func (s *OrderServer) UpdateAddressSaleInfo(ctx context.Context, in *order.UpdateAddressSaleInfoRequest) (*order.UpdateAddressSaleInfoResponse, error) {
l := logic.NewUpdateAddressSaleInfoLogic(ctx, s.svcCtx)
return l.UpdateAddressSaleInfo(in)
}
func (s *OrderServer) UpdateOrderDeliverStatus(ctx context.Context, in *order.UpdateOrderDeliverStatusRequest) (*order.UpdateOrderDeliverStatusResponse, error) {
l := logic.NewUpdateOrderDeliverStatusLogic(ctx, s.svcCtx)
return l.UpdateOrderDeliverStatus(in)
}
// type 1为销售 2为门店 3为个人
func (s *OrderServer) GetOrderInfo(ctx context.Context, in *order.GetOrderInfoRequest) (*order.OrderInfoResponse, error) {
l := logic.NewGetOrderInfoLogic(ctx, s.svcCtx)
return l.GetOrderInfo(in)
}
// status 1 为已支付 4 支付失败,其它的返回错误
func (s *OrderServer) UpdateOrderPayStatus(ctx context.Context, in *order.UpdateOrderPayStatusRequest) (*order.UpdateOrderPayStatusResponse, error) {
l := logic.NewUpdateOrderPayStatusLogic(ctx, s.svcCtx)
return l.UpdateOrderPayStatus(in)
}
// API
func (s *OrderServer) ApiSupply(ctx context.Context, in *order.ApiSupplyRequest) (*order.Response, error) {
l := logic.NewApiSupplyLogic(ctx, s.svcCtx)
return l.ApiSupply(in)
}
func (s *OrderServer) ApiSupplyInfo(ctx context.Context, in *order.ApiSupplyInfoRequest) (*order.Response, error) {
l := logic.NewApiSupplyInfoLogic(ctx, s.svcCtx)
return l.ApiSupplyInfo(in)
}
func (s *OrderServer) WebCreate(ctx context.Context, in *order.CreateOrderRequest) (*order.Response, error) {
l := logic.NewWebCreateLogic(ctx, s.svcCtx)
return l.WebCreate(in)
@@ -77,60 +155,3 @@ func (s *OrderServer) WebCartEdit(ctx context.Context, in *order.EditCartRequest
l := logic.NewWebCartEditLogic(ctx, s.svcCtx)
return l.WebCartEdit(in)
}
func (s *OrderServer) AddressItem(ctx context.Context, in *order.AddressItemsRequest) (*order.Response, error) {
l := logic.NewAddressItemLogic(ctx, s.svcCtx)
return l.AddressItem(in)
}
func (s *OrderServer) AddressByStore(ctx context.Context, in *order.AddressByStoreItemsRequest) (*order.Response, error) {
l := logic.NewAddressByStoreLogic(ctx, s.svcCtx)
return l.AddressByStore(in)
}
func (s *OrderServer) OrderAuditingItems(ctx context.Context, in *order.OrderAuditingItemsRequest) (*order.Response, error) {
l := logic.NewOrderAuditingItemsLogic(ctx, s.svcCtx)
return l.OrderAuditingItems(in)
}
func (s *OrderServer) OrderAuditing(ctx context.Context, in *order.OrderAuditingRequest) (*order.Response, error) {
l := logic.NewOrderAuditingLogic(ctx, s.svcCtx)
return l.OrderAuditing(in)
}
func (s *OrderServer) OrderCreate(ctx context.Context, in *order.AdminCreateOrderRequest) (*order.Response, error) {
l := logic.NewOrderCreateLogic(ctx, s.svcCtx)
return l.OrderCreate(in)
}
func (s *OrderServer) OrderDown(ctx context.Context, in *order.OrderItemsRequest) (*order.ExcelExportResponse, error) {
l := logic.NewOrderDownLogic(ctx, s.svcCtx)
return l.OrderDown(in)
}
func (s *OrderServer) OrderInfo(ctx context.Context, in *order.IdRequest) (*order.Response, error) {
l := logic.NewOrderInfoLogic(ctx, s.svcCtx)
return l.OrderInfo(in)
}
func (s *OrderServer) UpdateAddressSaleInfo(ctx context.Context, in *order.UpdateAddressSaleInfoRequest) (*order.UpdateAddressSaleInfoResponse, error) {
l := logic.NewUpdateAddressSaleInfoLogic(ctx, s.svcCtx)
return l.UpdateAddressSaleInfo(in)
}
func (s *OrderServer) UpdateOrderDeliverStatus(ctx context.Context, in *order.UpdateOrderDeliverStatusRequest) (*order.UpdateOrderDeliverStatusResponse, error) {
l := logic.NewUpdateOrderDeliverStatusLogic(ctx, s.svcCtx)
return l.UpdateOrderDeliverStatus(in)
}
// type 1为销售 2为门店 3为个人
func (s *OrderServer) GetOrderInfo(ctx context.Context, in *order.GetOrderInfoRequest) (*order.OrderInfoResponse, error) {
l := logic.NewGetOrderInfoLogic(ctx, s.svcCtx)
return l.GetOrderInfo(in)
}
// status 1 为已支付 4 支付失败,其它的返回错误
func (s *OrderServer) UpdateOrderPayStatus(ctx context.Context, in *order.UpdateOrderPayStatusRequest) (*order.UpdateOrderPayStatusResponse, error) {
l := logic.NewUpdateOrderPayStatusLogic(ctx, s.svcCtx)
return l.UpdateOrderPayStatus(in)
}