adminmodel

package
v0.0.0-...-e28ac33 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 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 Article

type Article struct {
	ID             string    `json:"id"`
	Title          string    `json:"title"`
	Body           string    `json:"body"`
	Description    string    `json:"description"`
	PublishStatus  int       `json:"publishStatus"`
	ThumbnailImage string    `json:"thumbnailImage"`
	PostedAt       time.Time `json:"postedAt"`
	CreatedAt      time.Time `json:"createdAt"`
	UpdatedAt      time.Time `json:"updatedAt"`
}

func (Article) IsNode

func (Article) IsNode()

type ArticleConnection

type ArticleConnection struct {
	PageInfo *PageInfo      `json:"pageInfo"`
	Edges    []*ArticleEdge `json:"edges"`
	Nodes    []*Article     `json:"nodes"`
}

func (ArticleConnection) IsConnection

func (ArticleConnection) IsConnection()

type ArticleEdge

type ArticleEdge struct {
	Cursor string   `json:"cursor"`
	Node   *Article `json:"node"`
}

func (ArticleEdge) IsEdge

func (ArticleEdge) IsEdge()

type ArticleMutationInput

type ArticleMutationInput struct {
	Title          string    `json:"title"`
	Body           string    `json:"body"`
	Description    string    `json:"description"`
	PublishStatus  int       `json:"publishStatus"`
	ThumbnailImage string    `json:"thumbnailImage"`
	PostedAt       time.Time `json:"postedAt"`
}

type Connection

type Connection interface {
	IsConnection()
}

type Edge

type Edge interface {
	IsEdge()
}

type Node

type Node interface {
	IsNode()
}

Common

type PageInfo

type PageInfo struct {
	Page             int  `json:"page"`
	PaginationLength int  `json:"paginationLength"`
	HasNextPage      bool `json:"hasNextPage"`
	HasPreviousPage  bool `json:"hasPreviousPage"`
	Count            int  `json:"count"`
	TotalCount       int  `json:"totalCount"`
	Limit            int  `json:"limit"`
	Offset           int  `json:"offset"`
}

type Pagination

type Pagination struct {
	Limit  *int `json:"limit"`
	Offset *int `json:"offset"`
}

Jump to

Keyboard shortcuts

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