like list

This commit is contained in:
2023-07-18 08:10:03 +08:00
parent 0463196ad6
commit 92f2d44c19
2 changed files with 27 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ import (
// 獲取當前賬戶信息(重寫, 爲輸出增加sid字段)
func AccountGet(w http.ResponseWriter, r *http.Request) {
models.AccountRead(w, r, func(account *models.Account) {
account.ReadLikeList()
w.Header().Set("Content-Type", "application/json; charset=utf-8")
w.Write(utils.ToJSON(account))
})