models

package
v0.0.0-...-06ebf3e Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Code generated by goctl. DO NOT EDIT.

Index

Constants

View Source
const (
	UserProfileTName = "user.user_profile"
)

Variables

This section is empty.

Functions

func IgnoreRecordNotFound

func IgnoreRecordNotFound(err error) error

Types

type UserProfile

type UserProfile struct {
	Id           int64     `gorm:"column:id"`
	Nick         string    `gorm:"column:nick"`
	Pwd          string    `gorm:"column:pwd"`
	Email        string    `gorm:"column:email"`
	CreateTime   time.Time `gorm:"column:create_time"`
	UpdateTime   time.Time `gorm:"column:update_time"`
	UserId       string    `gorm:"column:user_id"`
	VipTime      time.Time `gorm:"column:vip_time"`
	UserStatus   int64     `gorm:"column:user_status"` // 0正常 1禁用
	RegisterFrom int64     `gorm:"column:register_from"`
}

func (*UserProfile) Create

func (m *UserProfile) Create(db *gorm.DB) error

func (*UserProfile) DeleteByPrimary

func (m *UserProfile) DeleteByPrimary(db *gorm.DB, primary int64) error

func (*UserProfile) FindByEmail

func (m *UserProfile) FindByEmail(db *gorm.DB, key string) error

func (*UserProfile) FindByPrimary

func (m *UserProfile) FindByPrimary(db *gorm.DB, primary int64) error

func (*UserProfile) FindByUserId

func (m *UserProfile) FindByUserId(db *gorm.DB, key string) error

func (*UserProfile) TableName

func (m *UserProfile) TableName() string

func (*UserProfile) UpdateByPrimary

func (m *UserProfile) UpdateByPrimary(db *gorm.DB, primary int64) error

func (*UserProfile) UpdateFieldsByPrimary

func (m *UserProfile) UpdateFieldsByPrimary(db *gorm.DB, primary int64, fields map[string]interface{}) error

type UserProfileList

type UserProfileList []UserProfile

func (*UserProfileList) Create

func (l *UserProfileList) Create(db *gorm.DB, batchSize int) error

func (*UserProfileList) FindByPage

func (l *UserProfileList) FindByPage(db *gorm.DB, page int, size int) (total int64, err error)

func (*UserProfileList) FindByPrimarys

func (l *UserProfileList) FindByPrimarys(db *gorm.DB, primarys []int64) (err error)

Jump to

Keyboard shortcuts

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