func fikoyt_sistem_aktif_kullanici_bilgi(c fiber.Ctx) error { FikoYT := c.Locals("FikoYTCtx").(*FikoYTCtx.FikoYTCtx) objectIDStr := FikoYT.Sezon.Get("aktifKullaniciID") if objectIDStr == "" { return nil } if objectIDStr == nil { return nil } objectID, err := primitive.ObjectIDFromHex(objectIDStr.(string)) if err != nil { return nil } goUyeler := FikoYT.Koleksiyon("goUyeler") var kytUye FikoYTMap.FikoYTMap _ = goUyeler.FindOne(context.TODO(), fiber.Map{"_id": objectID}, &options.FindOneOptions{Projection: fiber.Map{"parola": 0, "epostaOnayKodu": 0, "anlasma": 0, "aktifDurum": 0}}).Decode(&kytUye) if kytUye == nil { return nil } /// // if len(FikoYT.Cevap.Durum.Hatalar) > 0 { // FikoYT.Cevap.AyarlaDurumKodu(499) // FikoYT.Cevap.Durum.Hata = true // return nil // } /// // FikoYT.Cevap.Sonuc = nil FikoYT.Cevap.AyarlaDurumKodu(200) FikoYT.Cevap.Sonuc = kytUye // fmt.Println(FikoYT.Sezon.Get("aktifKullaniciID").(string)) return c.Status(200).JSON(kytUye) } func fikoyt_sistem_bilgi_guncelleme(c fiber.Ctx) error { FikoYT := c.Locals("FikoYTCtx").(*FikoYTCtx.FikoYTCtx) /// file, err := os.ReadFile("./sistem/kok/flutter_guncelleme.json") // updates.json dosyasını oku if err != nil { return c.Status(fiber.StatusInternalServerError).SendString("Dosya okuma hatası") } var data FikoYTMap.FikoYTMap err = json.Unmarshal(file, &data) // JSON verisini struct'a çöz if err != nil { return c.Status(fiber.StatusInternalServerError).SendString("JSON çözme hatası") } /// FikoYT.Cevap.AyarlaDurumKodu(200) FILE: D:\__sistem__\Masaustu\FikoYT.Yeni.Cag\docker\fikoyt-sunucu\merkez.go-server.com\sistem\kok\routes.go