entities

package
v0.0.0-...-4424c87 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 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 Category

type Category struct {
	ID       int    `json:"id"`
	Category string `json:"category"`
	ImageURL string `json:"image_url"`
}

type Like

type Like struct {
	ID     int `json:"id"`
	UserID int `json:"user_id"`
	PostID int `json:"post_id"`
}

type LoginInput

type LoginInput struct {
	Identity string `json:"identity"`
	Password string `json:"password"`
}

type Post

type Post struct {
	ID          int     `json:"id"`
	UserID      int     `json:"-"`
	CategoryID  int     `json:"category_id"`
	PostDate    string  `json:"post_date"`
	ImageURL    string  `json:"image_url"`
	Description string  `json:"description"`
	Name        string  `json:"name"`
	Username    string  `json:"username"`
	Email       string  `json:"email"`
	Likes       []*Like `json:"likes"`
}

type Response

type Response struct {
	ID       int    `json:"id"`
	Name     string `json:"name"`
	Username string `json:"username"`
	Token    string `json:"token"`
}

type User

type User struct {
	ID       int    `json:"id"`
	Email    string `json:"email"`
	Name     string `json:"name"`
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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