data

package
v0.0.0-...-c4f823d Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT, MIT Imports: 11 Imported by: 0

README

Data

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewDB

func NewDB(c *conf.Data) *gorm.DB

func NewUserRepo

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

NewUserRepo .

Types

type Data

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

Data .

func NewData

func NewData(c *conf.Data, logger log.Logger, db *gorm.DB) (*Data, func(), error)

NewData .

type User

type User struct {
	gorm.Model
	Username string `json:"username"`
	Phone    string `json:"phone"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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