gorm3

package
v1.0.1-billing Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	gorm.Model
	Rating      int
	RatingMarks int
}

User struct represents user model.

func GetUsersRegisteredToday

func GetUsersRegisteredToday(limit int) ([]User, error)

GetUsersRegisteredToday returns all users registered today

func GetUsersRegisteredTodayWithMaxRating

func GetUsersRegisteredTodayWithMaxRating(limit int) ([]User, error)

GetUsersRegisteredTodayWithMaxRating returns all users registered today with max rating

func GetUsersWithMaxRating

func GetUsersWithMaxRating(limit int) ([]User, error)

GetUsersWithMaxRating returns limit users with maximal rating

Jump to

Keyboard shortcuts

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