func UpdateDefaultSign(c *gin.Context) {
	var signConfig SignConfig
	err := c.ShouldBindJSON(&signConfig)
	if err != nil {
		c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
	}
	database.UpdateDefaultSign(signConfig.Value)
	c.JSON(200, gin.H{
		"status":  "200",
		"message": "Update Defeult sign success",
	})
}
UpdateDefaultSign geet record by scan
package server
import (
	"net/http"
	"github.com/gin-gonic/gin"
	"github.com/jaeles-project/jaeles/database"
	"github.com/jaeles-project/jaeles/database/models"
)
func Ping(c *gin.Context) {
	c.JSON(200, gin.H{
		"status":  "200",
		"message": "pong",
	})
}
func GetStats(c *gin.Context) {
	var info []models.Record
	database.DB.Where("risk = ?", "Info").Find(&info)
	var potential []models.Record
	database.DB.Where("risk = ?", "Potential").Find(&potential)
	var low []models.Record
	database.DB.Where("risk = ?", "Low").Find(&low)
	var medium []models.Record
	database.DB.Where("risk = ?", "Medium").Find(&medium)
	var high []models.Record
	database.DB.Where("risk = ?", "High").Find(&high)
	var critical []models.Record
	database.DB.Where("risk = ?", "Critical").Find(&critical)
	stats := []int{
		len(info),
		len(potential),
		len(low),
		len(medium),
		len(high),
		len(critical),
	}
	c.JSON(200, gin.H{
		"status":  "200",
		"message": "Success",
		"stats":   stats,
	})
}
func GetSignSummary(c *gin.Context) {
	var signs []models.Signature
	var categories []string
	var data []int
	database.DB.Find(&signs).Pluck("DISTINCT category", &categories)
	for _, category := range categories {
		var signatures []models.Signature
		database.DB.Where("category = ?", category).Find(&signatures)
		data = append(data, len(signatures))
	}
	c.JSON(200, gin.H{
		"status":     "200",
		"message":    "Success",
		"categories": categories,
		"data":       data,
	})
}
func GetSigns(c *gin.Context) {
	var signs []models.Signature
	database.DB.Find(&signs)
	c.JSON(200, gin.H{
		"status":     "200",
		"message":    "Success",
		"signatures": signs,
	})
}
func GetAllScan(c *gin.Context) {
	var scans []models.Scans
	database.DB.Find(&scans)
	var realScans []models.Scans
	for _, scan := range scans {
		var rec models.Record
		database.DB.First(&rec, "scan_id = ?", scan.ScanID)
		if rec.ScanID != "" {
			realScans = append(realScans, scan)
		}
	}
	c.JSON(200, gin.H{
		"status":  "200",
		"message": "Success",
		"scans":   realScans,
	})
}
func GetRecords(c *gin.Context) {
	sid := c.Param("sid")
	var records []models.Record
	database.DB.Where("scan_id = ?", sid).Find(&records)
	c.JSON(200, gin.H{
		"status":  "200",
		"message": "Success",
		"records": records,
	})
}
func GetRecord(c *gin.Context) {
	rid := c.Param("rid")
	var record models.Record
	database.DB.Where("id = ?", rid).First(&record)
	c.JSON(200, gin.H{
		"status":  "200",
		"message": "Success",
		"record":  record,
	})
}
type SignConfig struct {
	Value string `json:"sign"`
}