models

package
v0.0.0-...-f26a32d Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddRequest

type AddRequest struct {
	Title string `json:"title"`
	Data  string `json:"Data"`
}

type AddResponse

type AddResponse struct {
	Message string `json:"message"`
}

type DeleteRequest

type DeleteRequest struct {
	Id uint `json:"id"`
}

type DeleteResponse

type DeleteResponse struct {
	Message string `json:"message"`
}

type EditRequest

type EditRequest struct {
	ID    int64  `json:"id" `
	Title string `json:"title"`
	Data  string `json:"Data"`
}

type EditResponse

type EditResponse struct {
	Message string `json:"message"`
}

type Notebook

type Notebook struct {
	gorm.Model
	Title string `json:"title" gorm:"title"`
	Data  string `json:"Data" gorm:"data"`
}

Jump to

Keyboard shortcuts

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