models

package
v0.0.0-...-f57bf2a Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 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 Avatar

type Avatar struct {
	gorm.Model
	FilePath string `json:"file_path"`
	UserID   uint   `json:"user_id"`
}

type AvatarInput

type AvatarInput struct {
	FilePath string `json:"file_path"`
}

type Avatars

type Avatars []Avatar

type User

type User struct {
	gorm.Model
	Name   string `json:"name"`
	Avatar Avatar
}

type UserInput

type UserInput struct {
	Name string `json:"name"`
}

type Users

type Users []User

Jump to

Keyboard shortcuts

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