model

package
v0.0.0-...-cc2418b Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServiceRequest

type AuthServiceRequest struct {
	Token string `json:"token"`
}

type AuthServiceResponse

type AuthServiceResponse struct {
	UserId string `json:"user_id"`
}

type CreatePostInput

type CreatePostInput struct {
	Title       string
	Description string
	Content     string
}

type Post

type Post struct {
	ID          string
	UserId      string
	Title       string
	Description string
	Content     string
	CreatedAt   time.Time
}

type PostMongo

type PostMongo struct {
	ID          primitive.ObjectID `bson:"_id,omitempty"`
	UserId      string
	Title       string
	Description string
	Content     string
	CreatedAt   time.Time
}

type UpdatePostInput

type UpdatePostInput struct {
	Title       string
	Description string
	Content     string
	UserId      string
}

Jump to

Keyboard shortcuts

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