新增 user/me 接口

此提交包含在:
2022-11-24 11:05:42 +08:00
父節點 b924e94c63
當前提交 dad0f34764
共有 2 個檔案被更改,包括 5 行新增0 行删除

查看文件

@@ -28,3 +28,6 @@ func (u UserService) Login(aw *app.Wrapper) app.Result {
}
return aw.Success(util.GenerateJWT(user.ID, user.RoleID))
}
func (u UserService) Me(aw *app.Wrapper) app.Result {
return aw.Success(userDAO.FindUserByID(aw.ExtractUserClaims().UserID))
}