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
Click to show internal directories.
Click to hide internal directories.