entity

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 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 Log

type Log struct {
	Level     string          `json:"string"`
	Ts        float64         `json:"ts"`
	Path      string          `json:"path"`
	Message   string          `json:"message"`
	RequestID string          `json:"requestID"`
	Method    string          `json:"method"`
	IP        string          `json:"ip"`
	Info      json.RawMessage `json:"info"`
}

type Note

type Note struct {
	Id      string `json:"id"`
	UserId  string `json:"userId"`
	Title   string `json:"title"`
	Content string `json:"content"`
}

type Post

type Post struct {
	Title string
	Date  string
}

type Todo

type Todo struct {
	Id          string  `json:"id"`
	UserId      string  `json:"userId"`
	Task        string  `json:"task"`
	Status      string  `json:"status"`
	Deadline    *string `json:"deadline"`
	CompletedAt *string `json:"completedAt"`
}

type User

type User struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	Email    string `json:"email"`
	Password []byte `json:"password"`
}

Jump to

Keyboard shortcuts

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