factroy store

This commit is contained in:
2026-09-15 15:23:30 +08:00
parent 21ee6f47ec
commit 88c3cdada2
64 changed files with 3649 additions and 305 deletions
+42
View File
@@ -37,6 +37,7 @@ const (
Order_OrderCreate_FullMethodName = "/order.order/OrderCreate"
Order_OrderDown_FullMethodName = "/order.order/OrderDown"
Order_OrderInfo_FullMethodName = "/order.order/OrderInfo"
Order_UpdateAddressSaleInfo_FullMethodName = "/order.order/UpdateAddressSaleInfo"
Order_UpdateOrderDeliverStatus_FullMethodName = "/order.order/UpdateOrderDeliverStatus"
Order_GetOrderInfo_FullMethodName = "/order.order/GetOrderInfo"
Order_UpdateOrderPayStatus_FullMethodName = "/order.order/UpdateOrderPayStatus"
@@ -64,8 +65,11 @@ type OrderClient interface {
OrderCreate(ctx context.Context, in *AdminCreateOrderRequest, opts ...grpc.CallOption) (*Response, error)
OrderDown(ctx context.Context, in *OrderItemsRequest, opts ...grpc.CallOption) (*ExcelExportResponse, error)
OrderInfo(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Response, error)
UpdateAddressSaleInfo(ctx context.Context, in *UpdateAddressSaleInfoRequest, opts ...grpc.CallOption) (*UpdateAddressSaleInfoResponse, error)
UpdateOrderDeliverStatus(ctx context.Context, in *UpdateOrderDeliverStatusRequest, opts ...grpc.CallOption) (*UpdateOrderDeliverStatusResponse, error)
// type 1为销售 2为门店 3为个人
GetOrderInfo(ctx context.Context, in *GetOrderInfoRequest, opts ...grpc.CallOption) (*OrderInfoResponse, error)
// status 1 为已支付 4 支付失败,其它的返回错误
UpdateOrderPayStatus(ctx context.Context, in *UpdateOrderPayStatusRequest, opts ...grpc.CallOption) (*UpdateOrderPayStatusResponse, error)
}
@@ -257,6 +261,16 @@ func (c *orderClient) OrderInfo(ctx context.Context, in *IdRequest, opts ...grpc
return out, nil
}
func (c *orderClient) UpdateAddressSaleInfo(ctx context.Context, in *UpdateAddressSaleInfoRequest, opts ...grpc.CallOption) (*UpdateAddressSaleInfoResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(UpdateAddressSaleInfoResponse)
err := c.cc.Invoke(ctx, Order_UpdateAddressSaleInfo_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orderClient) UpdateOrderDeliverStatus(ctx context.Context, in *UpdateOrderDeliverStatusRequest, opts ...grpc.CallOption) (*UpdateOrderDeliverStatusResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(UpdateOrderDeliverStatusResponse)
@@ -309,8 +323,11 @@ type OrderServer interface {
OrderCreate(context.Context, *AdminCreateOrderRequest) (*Response, error)
OrderDown(context.Context, *OrderItemsRequest) (*ExcelExportResponse, error)
OrderInfo(context.Context, *IdRequest) (*Response, error)
UpdateAddressSaleInfo(context.Context, *UpdateAddressSaleInfoRequest) (*UpdateAddressSaleInfoResponse, error)
UpdateOrderDeliverStatus(context.Context, *UpdateOrderDeliverStatusRequest) (*UpdateOrderDeliverStatusResponse, error)
// type 1为销售 2为门店 3为个人
GetOrderInfo(context.Context, *GetOrderInfoRequest) (*OrderInfoResponse, error)
// status 1 为已支付 4 支付失败,其它的返回错误
UpdateOrderPayStatus(context.Context, *UpdateOrderPayStatusRequest) (*UpdateOrderPayStatusResponse, error)
mustEmbedUnimplementedOrderServer()
}
@@ -376,6 +393,9 @@ func (UnimplementedOrderServer) OrderDown(context.Context, *OrderItemsRequest) (
func (UnimplementedOrderServer) OrderInfo(context.Context, *IdRequest) (*Response, error) {
return nil, status.Error(codes.Unimplemented, "method OrderInfo not implemented")
}
func (UnimplementedOrderServer) UpdateAddressSaleInfo(context.Context, *UpdateAddressSaleInfoRequest) (*UpdateAddressSaleInfoResponse, error) {
return nil, status.Error(codes.Unimplemented, "method UpdateAddressSaleInfo not implemented")
}
func (UnimplementedOrderServer) UpdateOrderDeliverStatus(context.Context, *UpdateOrderDeliverStatusRequest) (*UpdateOrderDeliverStatusResponse, error) {
return nil, status.Error(codes.Unimplemented, "method UpdateOrderDeliverStatus not implemented")
}
@@ -730,6 +750,24 @@ func _Order_OrderInfo_Handler(srv interface{}, ctx context.Context, dec func(int
return interceptor(ctx, in, info, handler)
}
func _Order_UpdateAddressSaleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateAddressSaleInfoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrderServer).UpdateAddressSaleInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Order_UpdateAddressSaleInfo_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrderServer).UpdateAddressSaleInfo(ctx, req.(*UpdateAddressSaleInfoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Order_UpdateOrderDeliverStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateOrderDeliverStatusRequest)
if err := dec(in); err != nil {
@@ -863,6 +901,10 @@ var Order_ServiceDesc = grpc.ServiceDesc{
MethodName: "OrderInfo",
Handler: _Order_OrderInfo_Handler,
},
{
MethodName: "UpdateAddressSaleInfo",
Handler: _Order_UpdateAddressSaleInfo_Handler,
},
{
MethodName: "UpdateOrderDeliverStatus",
Handler: _Order_UpdateOrderDeliverStatus_Handler,