model

package
v0.0.0-...-95ef38e Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRequest

type UserRequest struct {
	DisplayName string `json:"display_name,omitempty" example:"Jonny"`
	FirstName   string `json:"first_name,omitempty" example:"Jon"`
	LastName    string `json:"last_name,omitempty" example:"Doe"`
}

UserRequest represents metadata of a user

type UserResponse

type UserResponse struct {
	ID          int64     `json:"-"`
	GUID        string    `json:"guid"`
	DisplayName string    `json:"display_name,omitempty"`
	FirstName   string    `json:"first_name,omitempty"`
	LastName    string    `json:"last_name,omitempty"`
	CreatedAt   time.Time `json:"created_at,omitempty"`
	UpdatedAt   time.Time `json:"updated_at,omitempty" `
}

UserResponse represents metadata of a user

Jump to

Keyboard shortcuts

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