org_fans_service.go 339B

123456789101112131415
  1. package org_service
  2. import (
  3. "SCRM/models"
  4. "SCRM/service"
  5. "time"
  6. )
  7. func SetFansUnsubscribe(orgID int64, openid string) (err error) {
  8. 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
  9. return
  10. }