Documentation ¶
Index ¶
- func GetPosterFlag() string
- type Article
- func (a *Article) Add() error
- func (a *Article) AddArticleAndTag()
- 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.Articles, error)
- type ArticlePoster
- type ArticlePosterBg
- type DrawText
- type Pt
- type Rect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPosterFlag ¶
func GetPosterFlag() string
Types ¶
type Article ¶
type Article struct { ID int TagID int Title string Desc string Content string CoverImageUrl string State int CreatedBy string ModifiedBy string PageNum int PageSize int }
func (*Article) AddArticleAndTag ¶
func (a *Article) AddArticleAndTag()
type ArticlePoster ¶
func NewArticlePoster ¶
func NewArticlePoster(posterName string, article *Article, qr *qrcode.QrCode) *ArticlePoster
func (*ArticlePoster) CheckMergedImage ¶
func (a *ArticlePoster) CheckMergedImage(path string) bool
func (*ArticlePoster) OpenMergedImage ¶
func (a *ArticlePoster) OpenMergedImage(path string) (*os.File, error)
type ArticlePosterBg ¶
type ArticlePosterBg struct { Name string *ArticlePoster *Rect *Pt }
func NewArticlePosterBg ¶
func NewArticlePosterBg(name string, ap *ArticlePoster, rect *Rect, pt *Pt) *ArticlePosterBg
func (*ArticlePosterBg) DrawPoster ¶
func (a *ArticlePosterBg) DrawPoster(d *DrawText, fontName string) error
Click to show internal directories.
Click to hide internal directories.