model

package
v0.0.0-...-da05238 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 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 CreateTodoInput

type CreateTodoInput struct {
	Text string `json:"text"`
}

type DeleteTodoInput

type DeleteTodoInput struct {
	ID string `json:"id"`
}

type Todo

type Todo struct {
	gorm.Model
	ID   string `json:"id" gorm:"column:id"`
	Text string `json:"text" gorm:"column:text"`
	Done bool   `json:"done" gorm:"column:done"`
}

type UpdateTodoInput

type UpdateTodoInput struct {
	ID   string  `json:"id"`
	Text *string `json:"text"`
	Done *bool   `json:"done"`
}

Jump to

Keyboard shortcuts

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