Ptt-official-app / Ptt-backend

PTT APP 的後端
BSD 3-Clause "New" or "Revised" License
208 stars 68 forks source link

[BUG] 放入 Access Token 之後, GET /v1/users/SYSOP/articles 應該看到 SYSOP 曾經發過的文章 #221

Closed y2468101216 closed 3 years ago

y2468101216 commented 3 years ago

發生了什麼事? / The Problem

放入 Access Token 之後, GET /v1/users/SYSOP/articles 看到 item = null 螢幕擷取畫面 2021-06-09 134825

如何重現 / To Reproduce

放入 Access Token 之後, GET /v1/users/SYSOP/articles 看到 item = null

  1. 使用預設的測試資料
  2. curl --location --request GET 'http://localhost:8081/v1/users/SYSOP/articles' \ --header 'Authorization: Bearer {token}' (或是用 postman)
  3. 取得 SYSOP 資料,看到 item = null

預期的行為 / Expected behavior

放入 Access Token 之後, GET /v1/users/SYSOP/articles 應該看到 SYSOP 曾經發過的文章

螢幕截圖 / Screenshots

螢幕擷取畫面 2021-06-08 115335

開發環境 / Environment

windows 10 golang 1.16

備註

可能與 go-bbs 實做錯誤有關