adto

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeImgSrc added in v0.0.16

func EncodeImgSrc(content string) json.RawMessage

Types

type ImagePattern added in v0.0.15

type ImagePattern struct {
	Height    uint16 `json:"height"`
	Width     uint16 `json:"width"`
	Quality   uint8  `json:"quality"`
	MaxWidth  uint16 `json:"max_width"`
	MaxHeight uint16 `json:"max_height"`
	Watermark string `json:"watermark"`
}

func ImageFill added in v0.0.19

func ImageFill(width uint16, height uint16) ImagePattern

func ImageFitWidth added in v0.0.19

func ImageFitWidth(maxWidth uint16) ImagePattern

func ToImagePattern added in v0.0.19

func ToImagePattern(tag string) ImagePattern

type ImgSrc added in v0.0.15

type ImgSrc struct {
	//Url    string `json:"url"`
	Path   string `json:"path"`
	Size   uint32 `json:"size"`
	Width  uint16 `json:"width"`
	Height uint16 `json:"height"`
}

存储在数据库里面,图片列表,为了节省空间,用数组来

func ParseImgAdto added in v0.0.16

func ParseImgAdto(m [4]interface{}) ImgSrc

type Paging

type Paging struct {
	Page   int `name:"page"`
	Offset int `name:"offset"`
	Limit  int `name:"limit"`
}

func MakePaging

func MakePaging(r *com.Req, args ...int) Paging

type VideoPattern added in v0.0.19

type VideoPattern struct {
}

func ToVideoPattern added in v0.0.20

func ToVideoPattern(tag string) VideoPattern

type VideoSrc added in v0.0.15

type VideoSrc struct {
	//Url  string `json:"url"`
	Path     string `json:"path"`
	Width    uint16 `json:"width"`
	Height   uint16 `json:"height"`
	Duration uint32 `json:"duration"` // 时长,秒
	Size     uint32 `json:"size"`
}

Jump to

Keyboard shortcuts

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