作者 tangxvhui

bug 修复

... ... @@ -37,17 +37,16 @@ type PartnerInfo struct {
}
//TODO
func (partner *PartnerInfo) Update(data map[string]string) error {
return nil
}
//TODO
func (partner *PartnerInfo) ChangeStatus(yesOrNo bool) error {
return nil
}
//TODO
func (partner *PartnerInfo) ChangePassword(pwd string) error {
func (partner *PartnerInfo) Update(data map[string]interface{}) error {
if v, ok := data["partnerName"]; ok {
partner.Partner.PartnerName = v.(string)
}
if v, ok := data["account"]; ok {
partner.Partner.Account = v.(string)
}
if v, ok := data["partnerCategory"]; ok {
partner.PartnerCategory = v.(int)
}
return nil
}
... ...
... ... @@ -173,7 +173,7 @@ func (c *AdminUserController) ListAdminUser() {
m["statue"] = 1
}
if adminusers[i].IsDefault {
m["statue"] = 1
m["isAdmin"] = 1
}
listData = append(listData, m)
}
... ...