log middleware

This commit is contained in:
2025-09-29 09:14:39 +03:00
parent 49ffe9ae03
commit e15d56196d
27 changed files with 641 additions and 164 deletions

20
database/psql/groups.go Normal file
View File

@@ -0,0 +1,20 @@
package psql
import "github.com/shopspring/decimal"
type Group struct {
ID int
Name string
IsAdmin bool
IsVip bool
IsTester bool
Multiplier decimal.Decimal
Sale decimal.Decimal
MaxWaifus int
}
// func GetGroupById(id int) (*Group, error) {
// group := new(Group)
// // err := Database.Get(group, "select * from groups where id=$1;", id)
// return group, err
// }