12345678910111213141516171819 |
- package services
- import "github.com/gin-gonic/gin"
- func GetCurrPageByClaims(c *gin.Context) (currPage int) {
-
- claims, _ := c.Get("curr_page")
- currPage = claims.(int)
- return
- }
- func GetPageSizeByClaims(c *gin.Context) (pageSize int) {
-
- claims, _ := c.Get("page_size")
- pageSize = claims.(int)
- return
- }
|