This commit is contained in:
2024-10-16 11:36:32 +07:00
parent 3d2e1fcc5f
commit a07cf7f9c4
2 changed files with 4 additions and 0 deletions

View File

@@ -181,6 +181,8 @@ func ResponseDeleteSuratKontrol(url string, header *config.Header, headers map[s
log.Printf("Error json marshal: %v", err)
}
log.Println("REQUEST: ", string(reqMarshall))
req, err := http.NewRequest("DELETE", url, bytes.NewReader(reqMarshall))
if err != nil {
log.Printf("Error creating request: %v", err)

View File

@@ -288,6 +288,8 @@ func DeleteSuratKontrol(c *gin.Context) {
return
}
log.Println("REQUEST: ", req)
timeNow := time.Now().Format("2006-01-02 15:04:05")
if req.NomorSurKon == "" {