From 61588884177e2bcaef97f3b08d664732f36db0c1 Mon Sep 17 00:00:00 2001 From: theorose49 Date: Sun, 28 Jun 2026 09:52:10 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=B3=B8=EC=9D=B8=20=ED=91=9C=EC=8B=9C?= =?UTF-8?q?=EC=9D=B4=EB=A6=84=20=EC=9E=90=EA=B0=80=EC=88=98=EC=A0=95=20?= =?UTF-8?q?=ED=97=88=EC=9A=A9=20(=EA=B3=84=EC=A0=95=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=EC=9A=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit memberSelfPatch에 displayName 추가 — 유저가 계정 설정에서 표시 이름 변경 가능. Co-Authored-By: Claude Opus 4.8 (1M context) --- internal/httpapi/handlers_members.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/internal/httpapi/handlers_members.go b/internal/httpapi/handlers_members.go index 22ce9aa..693018b 100644 --- a/internal/httpapi/handlers_members.go +++ b/internal/httpapi/handlers_members.go @@ -63,8 +63,9 @@ func (s *Server) handleCreateMember(w http.ResponseWriter, r *http.Request) { // memberSelfPatch is the small set of fields a member may edit on their own row. type memberSelfPatch struct { - Phone *string `json:"phone"` - Position *string `json:"position"` + DisplayName *string `json:"displayName"` + Phone *string `json:"phone"` + Position *string `json:"position"` } func (s *Server) handlePatchMember(w http.ResponseWriter, r *http.Request) { @@ -104,6 +105,9 @@ func (s *Server) handlePatchMember(w http.ResponseWriter, r *http.Request) { writeError(w, http.StatusBadRequest, err.Error()) return } + if p.DisplayName != nil { + m.DisplayName = *p.DisplayName + } if p.Phone != nil { m.Phone = *p.Phone }