Documentation ¶
Index ¶
- Constants
- func AddArticle(c *gin.Context)
- func AddTag(c *gin.Context)
- func DeleteArticle(c *gin.Context)
- func DeleteTag(c *gin.Context)
- func EditArticle(c *gin.Context)
- func EditTag(c *gin.Context)
- func ExportArticle(c *gin.Context)
- func ExportTag(c *gin.Context)
- func GenerateArticlePoster(c *gin.Context)
- func GetArticle(c *gin.Context)
- func GetArticles(c *gin.Context)
- func GetTags(c *gin.Context)
- func ImportArticle(c *gin.Context)
- func ImportTag(c *gin.Context)
Constants ¶
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 ¶
AddTag @Summary 新增文章标签 @Produce json @Param name query string true "Name" @Param state query int false "State" @Param created_by query int false "CreatedBy" @Router /api/v1/tags [post]
func EditTag ¶
EditTag 修改文章标签 @Produce json @Param id path int true "ID" @Param name query string true "ID" @Param state query int false "State" @Param modified_by query string true "ModifiedBy" @Router /api/v1/tags/{id} [put]
func ExportArticle ¶
func GenerateArticlePoster ¶
func GetArticles ¶
GetArticles 获取多个文章 @Summary Get multiple articles @Produce json @Param tag_id body int false "TagID" @Param state body int false "State" @Param created_by body int false "CreatedBy" @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/articles [get]
func GetTags ¶
GetTags 获取多个文章标签 @Summary Get multiple tags @Produce json @Param name body int false "Name" @Param state body int false "State" @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/tags [get]
func ImportArticle ¶
Types ¶
This section is empty.