smartphone

package
v0.0.0-...-6098c1d Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllSmartphones

func GetAllSmartphones(c *fiber.Ctx) error

func GetSmartphoneDetail

func GetSmartphoneDetail(c *fiber.Ctx) error

GetSmartphoneDetail - Retrieves detailed information about a specific smartphone. This function fetches the smartphone details along with related data. If the smartphone is not found, it returns a 404 error.

func SearchSmartphoneWithMAUT

func SearchSmartphoneWithMAUT(c *fiber.Ctx) error

SearchSmartphoneWithMAUT - Filters smartphones based on user input, then applies MAUT ranking to determine the best choices.

Request Body (JSON):

{
  "brand": "Samsung",
  "min_price": 4000000,
  "max_price": 8000000,
  "min_ram": 6
}

Returns:

  • A ranked list of smartphones based on MAUT analysis.

Types

This section is empty.

Jump to

Keyboard shortcuts

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