Documentation
¶
Index ¶
- Constants
- func AddArticle(c *gin.Context)
- func AddTag(c *gin.Context)
- func ArticlePoster(c *gin.Context)
- func DeleteArticle(c *gin.Context)
- func DeleteTag(c *gin.Context)
- func EditArticle(c *gin.Context)
- func EditTag(c *gin.Context)
- func ExportTag(c *gin.Context)
- func GetArticle(c *gin.Context)
- func GetArticles(c *gin.Context)
- func GetTags(c *gin.Context)
- type AddArticleForm
Constants ¶
View Source
const (
QRCODE_URL = "https://github.com/EDDYCJY/blog#gin%E7%B3%BB%E5%88%97%E7%9B%AE%E5%BD%95"
)
Variables ¶
This section is empty.
Functions ¶
func AddTag ¶
@Summary 新增文章标签 @Produce json @Param name query string true "Name" @Param state query int false "State" @Param created_by query int false "CreatedBy" @Success 200 {string} string "{"code":200,"data":{},"msg":"ok"}" @Router /api/v1/tags [post]
func ArticlePoster ¶
Types ¶
type AddArticleForm ¶
type AddArticleForm struct { TagID int `form:"tag_id" valid:"Required;Min(1)"` Title string `form:"title" valid:"Required;MaxSize(100)"` Desc string `form:"desc" valid:"Required;MaxSize(255)"` Content string `form:"content" valid:"Required;MaxSize(65535)"` CreatedBy string `form:"created_by" valid:"Required;MaxSize(100)"` CoverImageUrl string `form:"cover_image_url" valid:"Required;MaxSize(255)"` State int `form:"state" valid:"Range(0,1)"` }
Click to show internal directories.
Click to hide internal directories.