Documentation
¶
Index ¶
- func GetPosterFlag() string
- type ArticlePoster
- type ArticlePosterBg
- type AuthRequest
- type DrawText
- type FileInfo
- type LoginRequest
- type ProfileRequest
- type Pt
- type Rect
- type RegisterRequest
- type Service
- func (svc *Service) CheckAuth(param *AuthRequest) error
- func (svc *Service) CheckLogin(param *LoginRequest) error
- func (svc *Service) CheckRegister(param *RegisterRequest) error
- func (svc *Service) GetHtml(aid uint) (string, error)
- func (svc *Service) ProfileCreate(param *ProfileRequest) (uint, error)
- func (svc *Service) UploadFile(fileType upload.FileType, file multipart.File, ...) (*FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPosterFlag ¶
func GetPosterFlag() string
Types ¶
type ArticlePoster ¶
type ArticlePoster struct {
// 海报名称
PosterName string
// 文章信息
*model.Articles
// 二维码
Qr *qrcode.QrCode
}
func NewArticlePoster ¶
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
type AuthRequest ¶
type LoginRequest ¶
type ProfileRequest ¶
type RegisterRequest ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CheckAuth ¶
func (svc *Service) CheckAuth(param *AuthRequest) error
func (*Service) CheckLogin ¶
func (svc *Service) CheckLogin(param *LoginRequest) error
func (*Service) CheckRegister ¶
func (svc *Service) CheckRegister(param *RegisterRequest) error
func (*Service) ProfileCreate ¶
func (svc *Service) ProfileCreate(param *ProfileRequest) (uint, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.