models

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserTypeCommon = iota
	UserTypeRobot
)

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	global.Model

	Name     string
	FullName string
	Email    string
	Phone    string
	UserType uint
	Password string
	OidcID   string `gorm:"column:oidc_id"`
	OidcType string `gorm:"column:oidc_type"`
	Admin    bool
	Banned   bool
}

type UserBasic

type UserBasic struct {
	ID    uint   `json:"id"`
	Name  string `json:"name"`
	Email string `json:"email"`
}

func ToUser

func ToUser(user *User) *UserBasic

Jump to

Keyboard shortcuts

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