diff --git a/proxy/member/member_service.go b/proxy/member/member_service.go index ff91dc8..9eb7b95 100644 --- a/proxy/member/member_service.go +++ b/proxy/member/member_service.go @@ -49,7 +49,7 @@ func (m *MemberService) getMemberMap(mem *Member) map[string]string { func (m *MemberService) Login(mem *Member) string { - result := m.ReadByEmail() + result := m.ReadByEmail(mem) if result == "" { return "login reject" } @@ -89,7 +89,7 @@ func (m *MemberService) Regist(mem *Member) string { func (m *MemberService) ReadByEmail(mem *Member) string { log.Println("Call ReadByEmail", mem.Email) - memMap := m.getMemberMap() + memMap := m.getMemberMap(mem) re := proxy.InvokeDB(TARGET_DAO, "findByEmail", memMap) return re } @@ -111,7 +111,7 @@ func (m *MemberService) Modify(mem *Member) string { log.Println("Call Modify", mem.Email, "::", mem.PwSalt) // Todo Call DB Gateway mem.Digest = "read" - memMap := m.getMemberMap() + memMap := m.getMemberMap(mem) re := proxy.InvokeDB(TARGET_DAO, "update", memMap) @@ -122,7 +122,7 @@ func (m *MemberService) Remove(mem *Member) string { log.Println("Call Remove", mem.Email) // Todo Call DB Gateway //m.Digest = "read" - memMap := m.getMemberMap() + memMap := m.getMemberMap(mem) re := proxy.InvokeDB(TARGET_DAO, "delete", memMap)