package org_service import ( "SCRM/models" "SCRM/service" "time" ) func SetFansUnsubscribe(orgID int64, openid string) (err error) { err = service.UserWriteDB().Model(&models.OrgFans{}).Where("user_org_id=? and openid=?", orgID, openid).Update(map[string]interface{}{"UpdatedTime": time.Now().Unix(), "Status": 2}).Error return }