Documentation ¶
Index ¶
- func BaiduSocialCheck(token string, id string) bool
- func FindImages(content string, number int) []string
- func HandleNewImage(content string, prefix string) (int64, string)
- func HandleUpdateImage(oldContent string, newContent string, prefix string) (int64, string)
- func IsProxy(domain string) bool
- func MD5(text string) string
- func RemoveMarkdown(content string) string
- func StringToIntArray(stringArray []string) []int
- func StructDecode(data []byte, to interface{}) error
- func StructEncode(data interface{}) ([]byte, error)
- type ApiController
- type ArticleController
- func (this *ArticleController) Add()
- func (this *ArticleController) AddReply()
- func (this *ArticleController) Article()
- func (this *ArticleController) ChangeCategory()
- func (this *ArticleController) Delete()
- func (this *ArticleController) Edit()
- func (this *ArticleController) List()
- func (this *ArticleController) Reply()
- func (this *ArticleController) Top()
- type CheckController
- type GlobalController
- type IndexController
- type QiniuController
- func (this *QiniuController) CreateUpToken()
- func (this *QiniuController) DeleteAll(bucketName string, prefix string)
- func (this *QiniuController) DeleteFile(bucketSrc string, keySrc string) bool
- func (this *QiniuController) DeleteFiles(bucketSrc string, keySrc []string) bool
- func (this *QiniuController) GetInfo(bucketSrc string, keySrc string) (bool, rs.Entry)
- func (this *QiniuController) GetInfos(bucketSrc string, keySrc []string) []rs.BatchStatItemRet
- func (this *QiniuController) MoveFile(bucketSrc string, keySrc string, bucketDest string, keyDest string) bool
- func (this *QiniuController) MoveFiles(bucketSrc string, keySrc []string, bucketDest string, keyDest []string) []rs.BatchItemRet
- type TagController
- type UserController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindImages ¶
查找markdown语法中的图片 * @params content 文章内容 * @params number 查找数量
func HandleNewImage ¶
* 将新发布文章图片移动到指定文件夹 * content *string 文章内容 * prefix string 移动后前缀 eg: game/blog/123456000/123456000/123456000 * @return int64 新增图片大小 * @return string 更新地址后内容
func HandleUpdateImage ¶
* 删除编辑后删除的图片(必须包含前缀路径保证是此文章的) * 移动编辑后新增的图片(并返回更新路径后的内容) * content *string 文章内容 * prefix string 移动后前缀 eg: game/blog/123456000/123456000/123456000 * @return int64 新增图片大小 * @return string 更新地址后内容
Types ¶
type ApiController ¶
type ApiController struct {
beego.Controller
}
type ArticleController ¶
type ArticleController struct {
beego.Controller
}
type CheckController ¶
type CheckController struct {
beego.Controller
}
type GlobalController ¶
type GlobalController struct {
beego.Controller
}
type IndexController ¶
type IndexController struct {
beego.Controller
}
func (*IndexController) Global ¶
func (this *IndexController) Global()
type QiniuController ¶
type QiniuController struct {
beego.Controller
}
func (*QiniuController) DeleteAll ¶
func (this *QiniuController) DeleteAll(bucketName string, prefix string)
删除某个前缀下所有文件
func (*QiniuController) DeleteFile ¶
func (this *QiniuController) DeleteFile(bucketSrc string, keySrc string) bool
删除某个文件
func (*QiniuController) DeleteFiles ¶
func (this *QiniuController) DeleteFiles(bucketSrc string, keySrc []string) bool
批量删除文件
func (*QiniuController) GetInfos ¶
func (this *QiniuController) GetInfos(bucketSrc string, keySrc []string) []rs.BatchStatItemRet
批量获取图片信息
func (*QiniuController) MoveFile ¶
func (this *QiniuController) MoveFile(bucketSrc string, keySrc string, bucketDest string, keyDest string) bool
移动某个文件
func (*QiniuController) MoveFiles ¶
func (this *QiniuController) MoveFiles(bucketSrc string, keySrc []string, bucketDest string, keyDest []string) []rs.BatchItemRet
批量移动文件
type TagController ¶
type TagController struct {
beego.Controller
}
func (*TagController) Bind ¶
func (this *TagController) Bind()
绑定标签 article string 所属文章 name string 标签名
func (*TagController) UnBind ¶
func (this *TagController) UnBind()
解绑标签 topic string 所属文章 name string 标签名
type UserController ¶
type UserController struct {
beego.Controller
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.