Ptt-official-app / Ptt-backend

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

[BUG] 是 SYSOP 的 token GET /v1/users/SYSOP/preferences 應該取得 SYSOP 的設定 #218

Closed y2468101216 closed 3 years ago

y2468101216 commented 3 years ago

發生了什麼事? / The Problem

是 SYSOP 的 token GET /v1/users/SYSOP/preferences 應該取得 SYSOP 的設定 螢幕擷取畫面 2021-06-09 133320

如何重現 / To Reproduce

是 SYSOP 的 token GET /v1/users/SYSOP/preferences 應該取得 SYSOP 的設定,但是都是 no value

  1. 使用預設的測試資料
  2. curl --location --request GET 'http://localhost:8081/v1/users/SYSOP/preferences ' --header 'Authorization: Bearer {token}' (或是用 postman)
  3. 取得 SYSOP 資料 ,但是都是 no vaule

預期的行為 / Expected behavior

是 SYSOP 的 token GET /v1/users/SYSOP/preferences 應該取得 SYSOP 的設定

螢幕截圖 / Screenshots

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

開發環境 / Environment

windows 10 golang 1.16

備註

可能跟 go-bbs 沒有取得正確資料有關