model

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicResponse

type BasicResponse struct {
	Message string `json:"message"`
}

type Cursor added in v0.0.8

type Cursor struct {
	After  string `json:"after,omitempty" query:"after,omitempty" example:""`
	Before string `json:"before,omitempty" query:"before,omitempty" example:""`
}

type Empty

type Empty struct{}

type Mutation added in v0.0.11

type Mutation[T any] struct {
	Type constant.MutationType `json:"type"`
	Data *T                    `json:"data"`
}

type PaginationRequest added in v0.0.8

type PaginationRequest struct {
	Cursor Cursor   `query:"cursor"`
	Keys   []string `query:"-"`
	Limit  int      `query:"limit"`
	Sort   Sort     `query:"sort"`
}

type PaginationResponse added in v0.0.8

type PaginationResponse struct {
	Cursor Cursor `json:"cursor"`
	Total  int64  `json:"total"`
}

type Sort added in v0.0.8

type Sort struct {
	Key   string `query:"key" example:""`
	Order string `query:"order" validate:"omitempty,oneof=asc desc" example:"asc"`
}

Jump to

Keyboard shortcuts

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