liuxiaolong
2020-08-12 8849dda9c4fd92467e2c05c15ea483abae6af8e5
controllers/user.go
@@ -186,4 +186,17 @@
}
// @router /sync [get]
func (u *UserController) Sync() {
   resp := code.Code{}
   syncCount := service.SyncHikPerson()
   resp.Success = true
   resp.Status = http.StatusOK
   resp.Data = map[string]interface{}{
      "syncCount": syncCount,
   }
   u.Data["json"] = resp
   u.ServeJSON()
}