models

package
v0.0.0-...-7208f07 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile struct {
	ID         uint64    `json:"id" db:"id"`
	LineID     string    `json:"line_id" db:"line_id"`
	Name       string    `json:"name" db:"name"`
	Nickname   string    `json:"nickname" db:"nickname"`
	Email      string    `json:"email" db:"email"`
	PictureURL string    `json:"picture_url" db:"picture_url"`
	Token      string    `json:"token" db:"token"`
	CreatedAt  time.Time `json:"created_at" db:"created_at"`
	UpdatedAt  time.Time `json:"updated_at" db:"updated_at"`
}

Profile declare models user profile

func NewProfile

func NewProfile(val *user.Profile) *Profile

NewProfile return *Profile

func (*Profile) ToEntity

func (p *Profile) ToEntity() *user.Profile

Jump to

Keyboard shortcuts

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