// Code scaffolded by goctl. Safe to edit.
// goctl 1.10.1

package member

import (
	"net/http"

	"gateway/internal/logic/member"
	"gateway/internal/response"
	"gateway/internal/svc"
)

// 取得當前會員 profile（dev：Header X-Tenant-ID + X-UID）
func GetMemberMeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := member.NewGetMemberMeLogic(actorContext(r.Context(), r), svcCtx)
		data, err := l.GetMemberMe()
		response.Write(r.Context(), w, data, err)
	}
}
