mysql

package
v0.0.0-...-25e9490 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserDB

func NewUserDB(client *gorm.DB) repository.UserDB

Types

type User

type User struct {
	// model    gorm.Model
	ID       int64 `gorm:"primaryKey;autoIncrement"`
	Username string
	Password string
	Email    string
	Phone    string
}

User 是 mysql 【独有】的,和 db 中的表数据一一对应,和 entities 层的 User 的作用域不一样

func (User) TableName

func (User) TableName() string

Jump to

Keyboard shortcuts

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