sdfds
This commit is contained in:
parent
a44c7feea2
commit
efc069738d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user