models

package
v0.0.0-...-3d0862d Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

Functions

func AcceptReservedMoney

func AcceptReservedMoney(userId, serviceId, orderId string, amount float64) (error, int)

func GetAccountBalance

func GetAccountBalance(userId string) (interface{}, error, int)

func InitDB

func InitDB(user, password, host, dbname string)

func RefillUserAccount

func RefillUserAccount(userId string, amount float64) error

func ReserveUsersAccountMoney

func ReserveUsersAccountMoney(userId, serviceId, orderId string, cost float64) (error, int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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