penambahan validasi

This commit is contained in:
2025-08-02 11:48:00 +07:00
parent fcff846fb7
commit bbf73e12b8
+3 -3
View File
@@ -2075,7 +2075,7 @@ func NewGetDataSurKonByID(c *gin.Context) {
log.Println(err)
c.JSON(http.StatusCreated, &sk.MetadataString{
Code: "201",
Message: "Pasien Belum Di terbitkan Surat Kontrol",
Message: err.Error(),
})
return
}
@@ -2132,7 +2132,7 @@ func GetDataSurKonByNoSurkon(c *gin.Context) {
log.Println(err)
c.JSON(http.StatusCreated, &sk.MetadataString{
Code: "201",
Message: err.Error(),
Message: "Pasien Belum Di terbitkan Surat Kontrol",
})
return
}
@@ -2194,7 +2194,7 @@ func GetDataSurKonByIDSurkon(c *gin.Context) {
log.Println(err)
c.JSON(http.StatusCreated, &sk.MetadataString{
Code: "201",
Message: err.Error(),
Message: "Pasien Belum Di terbitkan Surat Kontrol",
})
return
}