userPoints

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(entity *Entity) int64

func Save

func Save(entity *Entity) int64

Types

type Entity

type Entity struct {
	UserId        uint64    `gorm:"primaryKey;column:user_id;autoIncrement;not null;" json:"userId"`            //
	CurrentPoints int64     `gorm:"column:current_points;type:bigint;not null;default:0;" json:"currentPoints"` //
	CreatedAt     time.Time `gorm:"column:created_at;index;autoCreateTime;<-:create;" json:"createdAt"`         //
	UpdatedAt     time.Time `gorm:"column:updated_at;autoUpdateTime;" json:"updatedAt"`
}

func Get

func Get(id any) (entity Entity)

func (*Entity) TableName

func (itself *Entity) TableName() string

Jump to

Keyboard shortcuts

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