data

package
v0.0.0-...-771d5d4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewMacroRepo

func NewMacroRepo(data *Data, logger log.Logger) biz.MacroRepo

func NewUserKeyboardBindingRepo

func NewUserKeyboardBindingRepo(data *Data, logger log.Logger) biz.UserKeyboardBindingRepo

func NewUserRepo

func NewUserRepo(data *Data, logger log.Logger) biz.UserRepo

Types

type Data

type Data struct {
	// contains filtered or unexported fields
}

Data .

func NewData

func NewData(c *conf.Data, sc *conf.Server) (*Data, func(), error)

type User

type User struct {
	Id        int64  `gorm:"primaryKey;autoIncrement:false" json:"id"`
	Name      string `gorm:"size:255" json:"name"`
	Password  string `gorm:"size:255" json:"password"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
}

Jump to

Keyboard shortcuts

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