models

package
v0.0.0-...-37f34db Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forum

type Forum struct {
	Posts   int64  `json:"posts"    db:"posts"`
	Slug    string `json:"slug"     db:"slug"`
	Threads int32  `json:"threads"  db:"threads"`
	Title   string `json:"title"    db:"title"`
	User    string `json:"user"     db:"user_nick"`
}

type NewForum

type NewForum struct {
	Slug  string `json:"slug"     db:"slug"`
	Title string `json:"title"    db:"title"`
	User  string `json:"user"     db:"user_nick"`
}

type Post

type Post struct {
	Author   string `json:"author"   db:"author"`
	Created  string `json:"created"  db:"created"`
	Forum    string `json:"forum"    db:"forum"`
	Id       int64  `json:"id"       db:"id"`
	IsEdited bool   `json:"isEdited" db:"isEdited"`
	Message  string `json:"message"  db:"message"`
	Parent   int64  `json:"parent"   db:"parent"`
	Thread   int32  `json:"thread"   db:"thread"`
}

type PostAccount

type PostAccount struct {
	Author *User   `json:"author,omitempty"`
	Forum  *Forum  `json:"forum,omitempty"`
	Post   Post    `json:"post"`
	Thread *Thread `json:"thread,omitempty"`
}

type Status

type Status struct {
	Forum  int64 `json:"forum"`
	Post   int64 `json:"post"`
	Thread int64 `json:"thread"`
	User   int64 `json:"user"`
}

type Thread

type Thread struct {
	Author  string `json:"author"  db:"author"`
	Created string `json:"created" db:"created"`
	Forum   string `json:"forum"   db:"forum"`
	Id      int32  `json:"id"      db:"id"`
	Message string `json:"message" db:"message"`
	Slug    string `json:"slug,omitempty"    db:"slug"`
	Title   string `json:"title"   db:"title"`
	Votes   int32  `json:"votes"   db:"votes"`
}

type User

type User struct {
	Nickname string `db:"nickname"`
	Email    string `db:"email"`
	Fullname string `db:"full_name"`
	About    string `db:"about"`
}

type UserUpdate

type UserUpdate struct {
	About    string `json:"about"    db:"about"`
	Email    string `json:"email"    db:"email"`
	Fullname string `json:"fullname" db:"fullname"`
}

type Vote

type Vote struct {
	Nickname string `json:"nickname"`
	Voice    int    `json:"voice"`
}

Jump to

Keyboard shortcuts

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