penambahan return
This commit is contained in:
@@ -161,8 +161,9 @@ func InsertSuratkontrolNew(c *gin.Context) {
|
|||||||
log.Println(err)
|
log.Println(err)
|
||||||
c.JSON(http.StatusCreated, &sk.MetadataString{
|
c.JSON(http.StatusCreated, &sk.MetadataString{
|
||||||
Code: "201",
|
Code: "201",
|
||||||
Message: "Dokter tidak Ditemukan",
|
Message: "Dokter tidak Ditemukan di satudata",
|
||||||
})
|
})
|
||||||
|
return
|
||||||
}
|
}
|
||||||
layout := "2006-01-02 15:04:05" // sesuaikan format string input
|
layout := "2006-01-02 15:04:05" // sesuaikan format string input
|
||||||
|
|
||||||
@@ -2230,6 +2231,7 @@ func GetSuratKontrolBySEP(c *gin.Context) {
|
|||||||
c.JSON(http.StatusInternalServerError, err)
|
c.JSON(http.StatusInternalServerError, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
log.Println(res.Response.NoSEP)
|
||||||
|
|
||||||
c.JSON(http.StatusOK, res)
|
c.JSON(http.StatusOK, res)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user