update cart
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-30 03:54:12 +07:00
parent 323f50fb43
commit 073a7e6d8c
10 changed files with 207 additions and 163 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ import (
"cake_crm/internal/app"
"cake_crm/internal/modules/messenger/telegram"
"cake_crm/internal/modules/storage/storage_file"
"cake_crm/internal/services/card"
"cake_crm/internal/services/cart"
"cake_crm/internal/services/order"
proto "cake_crm/proto"
"context"
@@ -22,7 +22,7 @@ import (
func main() {
storage := storage_file.NewStorageFile()
cardService := card.NewService(storage)
cartService := cart.NewService(storage)
orderService := order.NewService()
@@ -55,7 +55,7 @@ func main() {
// Create a gRPC server object
s := grpc.NewServer()
// Attach the Greeter service to the server
proto.RegisterCRMServer(s, app.NewServer(storage, messenger, cardService, orderService))
proto.RegisterCRMServer(s, app.NewServer(storage, messenger, cartService, orderService))
// Serve gRPC server
log.Println("Serving gRPC on 0.0.0.0:8080")
go func() {