Documentation ¶
Index ¶
- Constants
- func ArticlesPage(c *gin.Context)
- func DeleteArticle(c *gin.Context)
- func DeleteOption(c *gin.Context)
- func GetArticle(c *gin.Context)
- func GetOption(c *gin.Context)
- func HomePage(c *gin.Context)
- func InsertArticle(c *gin.Context)
- func InsertOption(c *gin.Context)
- func ListArticles(c *gin.Context)
- func ListOptions(c *gin.Context)
- func UpdateArticle(c *gin.Context)
- func UpdateOption(c *gin.Context)
Constants ¶
View Source
const (
DefaultPageLimit int = 8
)
DefaultPageLimit is default limit number per page And other constant
Variables ¶
This section is empty.
Functions ¶
func ArticlesPage ¶
ArticlesPage return JSON information by page number Request sample:
GET /page/1?limit=6
func DeleteOption ¶
DeleteOption will delete option by 'name' param Request sample:
DELETE /option/:name
func InsertArticle ¶
InsertArticle will insert an articles Request sample:
POST /article?title=foo&status=1&content=bar
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.