adto

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 5 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      int
	Width       int
	Quality     int
	MaxWidth    int
	MaxHeight   int
	WatermarkID int
}

func NewImagePattern added in v0.0.15

func NewImagePattern(tag ...string) *ImagePattern

func (*ImagePattern) Parse added in v0.0.15

func (p *ImagePattern) Parse(tag string)

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 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