mrtype

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPointer

func BoolPointer(value bool) *bool

func StringPointer added in v0.9.6

func StringPointer(value string) *string

func TimePointer added in v0.9.6

func TimePointer(value time.Time) *time.Time

Types

type File

type File struct {
	FileInfo
	Body io.ReadCloser
}

type FileContent added in v0.9.7

type FileContent struct {
	FileInfo
	Body []byte
}

type FileInfo

type FileInfo struct {
	ContentType  string     `json:"contentType,omitempty"`
	OriginalName string     `json:"originalName,omitempty"`
	Name         string     `json:"name,omitempty"`
	Path         string     `json:"-"`
	URL          string     `json:"url,omitempty"`
	Size         int64      `json:"size,omitempty"`
	CreatedAt    *time.Time `json:"created,omitempty"`
	ModifiedAt   *time.Time `json:"lastModified,omitempty"`
}

type ImageInfo added in v0.9.6

type ImageInfo struct {
	ContentType  string     `json:"contentType,omitempty"`
	OriginalName string     `json:"originalName,omitempty"`
	Name         string     `json:"name,omitempty"`
	Path         string     `json:"-"`
	URL          string     `json:"url,omitempty"`
	Width        int32      `json:"width,omitempty"`
	Height       int32      `json:"height,omitempty"`
	Size         int64      `json:"size,omitempty"`
	CreatedAt    *time.Time `json:"created,omitempty"`
	ModifiedAt   *time.Time `json:"lastModified,omitempty"`
}

type KeyInt32

type KeyInt32 int32

type KeyInt64

type KeyInt64 int64

type KeyString

type KeyString string

type PageParams

type PageParams struct {
	Index uint64 // pageIndex
	Size  uint64 // pageSize
}

type RangeInt64

type RangeInt64 struct {
	Min int64
	Max int64
}

type SortParams

type SortParams struct {
	FieldName string               // sortField
	Direction mrenum.SortDirection // sortDirection
}

Jump to

Keyboard shortcuts

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