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 VideoPattern ¶ added in v0.0.19
type VideoPattern struct { }
func ToVideoPattern ¶ added in v0.0.20
func ToVideoPattern(tag string) VideoPattern
Click to show internal directories.
Click to hide internal directories.