model

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 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 CreatePostInput

type CreatePostInput struct {
	ID     int     `json:"id" db:"id"`
	Name   *string `json:"name,omitempty" db:"name"`
	UserID *int    `json:"user_id,omitempty" db:"user_id"`
}

AutoGenerated input for Post

type PostsPayload

type PostsPayload struct {
	// rows affection by mutation
	RowsAffected int           `json:"rows_affected" db:"rows_affected"`
	Posts        []*model.Post `json:"posts,omitempty" db:"posts"`
}

Autogenerated payload object

type UpdatePostInput

type UpdatePostInput struct {
	ID     *int    `json:"id,omitempty" db:"id"`
	Name   *string `json:"name,omitempty" db:"name"`
	UserID *int    `json:"user_id,omitempty" db:"user_id"`
}

AutoGenerated update input for Post

Jump to

Keyboard shortcuts

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