model

package
v0.0.0-...-864a334 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	UserID int32  `gorm:"not null;uniqueIndex:UserIDAndToken"`
	Token  string `gorm:"not null;uniqueIndex:UserIDAndToken"`
}

func (*Session) DomainBind

func (s *Session) DomainBind() *entity.Session

DomainBind binds model type fields to entity model.

type User

type User struct {
	gorm.Model
	Login string `gorm:"unique;not null"`
}

func (*User) DomainBind

func (u *User) DomainBind() *entity.User

DomainBind binds model type fields to entity model.

Jump to

Keyboard shortcuts

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