Documentation ¶
Index ¶
- func Count(c *gin.Context)
- func GetArticle(c *gin.Context)
- func GetArticleList(c *gin.Context)
- func Login(c *gin.Context)
- func Logout(c *gin.Context)
- func SaveArticle(c *gin.Context)
- func UploadImage(c *gin.Context)
- func UserAdd(c *gin.Context)
- func UserDelete(c *gin.Context)
- func Users(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetArticle ¶
@Summary Get article @Produce json @Param id param int true "id" @Success 200 {string} json "{"code":200,"data":{"id":1,"name":""}]" @Router /api/articles/{id} [get]
func GetArticleList ¶
@Summary Get Article List @Produce json @Param page_num param int true "page_num" @Param page_size param int true "page_size" @Success 200 {string} json "{"code":200,"data":[{"id":1,"title":"abc"}]}" @Router /api/articles/list [get]
func SaveArticle ¶
func UploadImage ¶
func UserAdd ¶
@Summary Add User @Produce json @Param username param string true "username" @Param email param string true "email" @Param password param string true "password" @Success 200 {string} json "{"code":200,"data":1}" @Router /api/user/add [post]
func UserDelete ¶
@Summary Delete User @Produce json @Param uid param int true "uid" @Success 200 {string} json "{"code":200, "msg": "操作成功", "data":""}" @Router /api/user/delete [post]
Types ¶
This section is empty.