...
|
...
|
@@ -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
|
|
|
}
|
|
|
|
...
|
...
|
|