| 12345678910111213141516171819 |
- package v1
- import (
- "github.com/runningwater/gohub/pkg/auth"
- "github.com/runningwater/gohub/pkg/response"
- "github.com/gin-gonic/gin"
- )
- type UsersController struct {
- BaseApiController
- }
- // CurrentUser 当前登录用户信息
- func (ctrl *UsersController) CurrentUser(c *gin.Context) {
- users := auth.CurrentUser(c)
- response.Data(c, users)
- }
|