usecase

package
v0.0.0-...-1a43062 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOrderNumValid

func IsOrderNumValid(number string) bool

Func check number according Luhn algorithm https://ru.wikipedia.org/wiki/Алгоритм_Луна

func OrderLogsTimeFormat

func OrderLogsTimeFormat(orders []models.OrderLog) []types.OrderLogResponse

func OrdersTimeFormat

func OrdersTimeFormat(orders []models.Order) []types.OrderResponse

func SaveOrder

func SaveOrder(ctx context.Context, storage *dbstorage.DBStorage, login string, number string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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