model

package
v0.0.0-...-673c5a3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LikesUpdate

type LikesUpdate struct {
	Added   []int `json:"added"`
	Removed []int `json:"removed"`
}

type PageInfo

type PageInfo struct {
	HasPreviousPage bool `json:"hasPreviousPage"`
	HasNextPage     bool `json:"hasNextPage"`
	StartCursor     *int `json:"startCursor"`
	EndCursor       *int `json:"endCursor"`
}

type Rule

type Rule struct {
	ID      int       `json:"id"`
	User    *User     `json:"user"`
	Created string    `json:"created"`
	Summary string    `json:"summary"`
	Detail  *string   `json:"detail"`
	Likes   *UserPage `json:"likes"`
}

type RulePage

type RulePage struct {
	Rules    []*Rule   `json:"rules"`
	PageInfo *PageInfo `json:"pageInfo"`
}

type User

type User struct {
	ID    int       `json:"id"`
	Name  string    `json:"name"`
	Rules *RulePage `json:"rules"`
	Likes *RulePage `json:"likes"`
}

type UserPage

type UserPage struct {
	Users    []*User   `json:"users"`
	PageInfo *PageInfo `json:"pageInfo"`
}

type UserToken

type UserToken struct {
	Token     string `json:"token"`
	ExpiresAt int    `json:"expiresAt"`
}

Jump to

Keyboard shortcuts

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