order_service

command
v0.0.0-...-01a1143 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 14 Imported by: 0

README

Order Service

Overview

The order-service is responsible for order placement. It validates the user and product availability before placing an order.

Database Structure

The orders are stored in the orders table:

Column Type Description
id UUID Unique identifier for the order
user_id UUID The ID of the user placing the order
product_id UUID The ID of the product being ordered
quantity INTEGER Quantity of product ordered
Status TEXT Available or Booked
total_price FLOAT Total price for the order
created_at TIMESTAMP Order creation timestamp
updated_at TIMESTAMP Order updation timestamp

Event Emission

  • OrderPlaced: Emitted after successfully placing an order, consumed by other services.

API Endpoints

For more details on the API, refer to the API Endpoints.


Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL