models

package
v0.0.0-...-3eb33f1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDB

func CloseDB()

func DeleteTodo

func DeleteTodo(id int) error

Types

type Model

type Model struct {
	ID         int `gorm:"primary_key" json:"id"`
	CreatedOn  int `json:"created_on"`
	ModifiedOn int `json:"modified_on"`
}

type TodoModels

type TodoModels struct {
	Id       int
	Name     string
	Value    string
	Describe string
	Status   string
}

func GetTodo

func GetTodo(id int) TodoModels

func TodoList

func TodoList() []*TodoModels

func (*TodoModels) Create

func (todo *TodoModels) Create() error

func (*TodoModels) Update

func (todo *TodoModels) Update() error

Jump to

Keyboard shortcuts

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