dto

package
v0.0.0-...-1cd8125 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.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 Library

type Library struct {
	ID        string `json:"id"`
	Mode      string `json:"mode"`
	Path      string `json:"path"`
	CreatedAt int64  `json:"created_at"`
	UpdatedAt int64  `json:"updated_at"`
}

type LibraryCreate

type LibraryCreate struct {
	Mode string `json:"mode" binding:"required_with=import collection"`
	Path string `json:"path" binding:"required"`
}

type LibraryList

type LibraryList struct {
	Mode string `json:"mode" form:"mode" binding:"required_with=import collection"`
	PaginationParam
}

type LibraryUpdate

type LibraryUpdate struct {
	ID   string `json:"id" binding:"required"`
	Path string `json:"path" binding:"required"`
}

type PaginationDataEntry

type PaginationDataEntry struct {
	List     any   `json:"list,omitempty"`
	Total    int64 `json:"total"`
	Page     int   `json:"page"`
	PageSize int   `json:"page_size"`
}

type PaginationParam

type PaginationParam struct {
	Page     int `json:"page" form:"page" binding:"required,min=1"`
	PageSize int `json:"page_size" form:"page_size" binding:"required,min=10,max=100"`
}

Jump to

Keyboard shortcuts

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