Versions in this module Expand all Collapse all v1 v1.0.2 May 12, 2020 v1.0.1 May 12, 2020 v1.0.0 May 12, 2020 Changes in this version + func GetPosterFlag() string + type Article struct + Content string + CoverImageUrl string + CreatedBy string + Desc string + ID int + ModifiedBy string + PageNum int + PageSize int + State int + TagID int + Title string + func (a *Article) Add() error + func (a *Article) Count() (int, error) + func (a *Article) Delete() error + func (a *Article) Edit() error + func (a *Article) ExistByID() (bool, error) + func (a *Article) Get() (*models.Article, error) + func (a *Article) GetAll() ([]*models.Article, error) + type ArticlePoster struct + PosterName string + Qr *qrcode.QrCode + func NewArticlePoster(posterName string, article *Article, qr *qrcode.QrCode) *ArticlePoster + func (a *ArticlePoster) CheckMergedImage(path string) bool + func (a *ArticlePoster) OpenMergedImage(path string) (*os.File, error) + type ArticlePosterBg struct + Name string + func NewArticlePosterBg(name string, ap *ArticlePoster, rect *Rect, pt *Pt) *ArticlePosterBg + func (a *ArticlePosterBg) DrawPoster(d *DrawText, fontName string) error + func (a *ArticlePosterBg) Generate() (string, string, error) + type DrawText struct + JPG draw.Image + Merged *os.File + Size0 float64 + Size1 float64 + SubTitle string + Title string + X0 int + X1 int + Y0 int + Y1 int + type Pt struct + X int + Y int + type Rect struct + Name string + X0 int + X1 int + Y0 int + Y1 int