blog

package
v0.0.0-...-dfc7b52 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 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 BlogResponse

type BlogResponse struct {
	Id        uint      `json:"id"`
	Username  string    `json:"username"`
	Category  string    `json:"category"`
	Thumbnail string    `json:"thumbnail"`
	Title     string    `json:"title_blog"`
	Body      string    `json:"body_blog"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type BlogSearchResponse

type BlogSearchResponse struct {
	Title string `json:"title_blog"`
	Body  string `json:"body_blog"`
}

type Blogs

type Blogs struct {
	Id         uint      `json:"id"`
	UserId     int       `json:"user_id"`
	CategoryId int       `json:"category_id"`
	Thumbnail  string    `json:"thumbnail"`
	Title      string    `json:"title_blog"`
	Body       string    `json:"body_blog"`
	CreatedAt  time.Time `json:"created_at"`
	UpdatedAt  time.Time `json:"updated_at"`
}

type RequestCreateBlog

type RequestCreateBlog struct {
	UsernameId int    `json:"user_id"`
	Thumbnail  string `json:"thumbnail"`
	Title      string `json:"title"`
	Body       string `json:"body"`
	CategoryId int    `json:"category_id"`
}

type RequestUpdateBlog

type RequestUpdateBlog struct {
	Thumbnail  string `json:"thumbnail"`
	Title      string `json:"title"`
	Body       string `json:"body"`
	CategoryId string `json:"category_id"`
}

Jump to

Keyboard shortcuts

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