model

package
v0.0.0-...-dd3d275 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const AddressDefaultNO = int64(2)
View Source
const AddressDefaultOK = int64(1)
View Source
const AddressStatusForbid = int64(2)
View Source
const AddressStatusOk = int64(1)
View Source
const UserStatusForbid = 2
View Source
const UserStatusOk = 1

Variables

This section is empty.

Functions

func Paginate

func Paginate(page, pageSize int) func(db *gorm.DB) *gorm.DB

Types

type Address

type Address struct {
	Id              int64
	UserId          int64
	Country         string
	Province        string
	City            string
	CountryDistrict string
	DetailedAddress string
	IsDefault       int64
	Status          int64
	CreatedAt       *time.Time
	UpdatedAt       *time.Time
}

func (Address) TableName

func (Address) TableName() string

type User

type User struct {
	Id          int64
	Username    string
	Salt        string
	Password    string
	Mobile      string
	Nickname    string
	Avatar      string
	Status      int64
	LastLoginAt *time.Time
	CreatedAt   *time.Time
	UpdatedAt   *time.Time
}

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