dto

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserDto

type UserDto struct {
	Id                   snowflake.ID   `json:"id"`
	OUId                 snowflake.ID   `json:"ouid"`
	OU                   string         `json:"ou" `
	Account              string         `json:"preferred_username" `
	DisplayName          string         `json:"displayname" `
	Email                string         `json:"email" `
	EmailConfirmed       bool           `json:"emailconfirmed"`
	PhoneNumber          string         `json:"phonenumber"`
	PhoneNumberConfirmed bool           `json:"phonenumberconfirmed"`
	PasswordHash         string         `json:"-"`
	IsTemporaryPassword  bool           `json:"istemporarypassword"`
	Lockoutenabled       bool           `json:"lockoutenabled"`
	Lockoutend           time.Time      `json:"lockoutend"`
	Roles                []string       `json:"roles" copier:"-" gorm:"-"`
	Claims               datatypes.JSON `json:"claims"`
}

func NewUserDto

func NewUserDto(user *models.User) *UserDto

func (*UserDto) GetEmail

func (r *UserDto) GetEmail() string

func (*UserDto) GetId

func (r *UserDto) GetId() string

func (*UserDto) GetPasswordHash

func (r *UserDto) GetPasswordHash() string

func (*UserDto) GetUserName

func (r *UserDto) GetUserName() string

Jump to

Keyboard shortcuts

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