func (VS *Server) deleteInformationTest(c *gin.Context, class string, method string, operation string) {
	var village []Village
	err := VS.DataBase.Find(&village, bolthold.Where("Name").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range village {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}

	var service []Service
	err = VS.DataBase.Find(&service, bolthold.Where("Name").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range service {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}

	var manager []User
	err = VS.DataBase.Find(&manager, bolthold.Where("Username").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range manager {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}

	var worker []User
	err = VS.DataBase.Find(&worker, bolthold.Where("Username").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range worker {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}

	var catType []CategoryType
	err = VS.DataBase.Find(&catType, bolthold.Where("Name").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range catType {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}

	var cat []Category
	err = VS.DataBase.Find(&cat, bolthold.Where("Name").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range cat {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}

	var i []Item
	err = VS.DataBase.Find(&i, bolthold.Where("Name").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range i {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}

	var video []VideoCourse
	err = VS.DataBase.Find(&video, bolthold.Where("Name").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range video {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}
}
// This method deletes the information of the Duplicate tests
This method deletes the information of the Duplicate tests
// This method deletes the information of the Duplicate tests
func (VS *Server) deleteInformationTest(c *gin.Context, class string, method string, operation string) {
	var village []Village
	err := VS.DataBase.Find(&village, bolthold.Where("Name").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range village {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}
	var service []Service
	err = VS.DataBase.Find(&service, bolthold.Where("Name").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range service {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}
	var manager []User
	err = VS.DataBase.Find(&manager, bolthold.Where("Username").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range manager {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}
	var worker []User
	err = VS.DataBase.Find(&worker, bolthold.Where("Username").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range worker {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}
	var catType []CategoryType
	err = VS.DataBase.Find(&catType, bolthold.Where("Name").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range catType {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}
	var cat []Category
	err = VS.DataBase.Find(&cat, bolthold.Where("Name").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range cat {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}
	var i []Item
	err = VS.DataBase.Find(&i, bolthold.Where("Name").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range i {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}
	var video []VideoCourse
	err = VS.DataBase.Find(&video, bolthold.Where("Name").Eq("test"))
	VS.checkOperation(c, class, method, operation, err)
	for _, v := range video {
		VS.deleteAnything(c, v, v.ID, class, method, operation)
	}
}
func ( VS * Server ) deleteInformationTest ( c * gin . Context , class string , method string , operation string ) { var village [ ] Village err := VS . DataBase . Find ( & village , bolthold . Where ( " " ) . Eq ( " " ) ) VS . checkOperation ( c , class , method , operation , err ) for _ , v := range village { VS . deleteAnything ( c , v , v . ID , class , method , operation ) } var service [ ] Service err = VS . DataBase . Find ( & service , bolthold . Where ( " " ) . Eq ( " " ) ) VS . checkOperation ( c , class , method , operation , err ) for _ , v := range service { VS . deleteAnything ( c , v , v . ID , class , method , operation ) } var manager [ ] User err = VS . DataBase . Find ( & manager , bolthold . Where ( " " ) . Eq ( " " ) ) VS . checkOperation ( c , class , method , operation , err ) for _ , v := range manager { VS . deleteAnything ( c , v , v . ID , class , method , operation ) } var worker [ ] User err = VS . DataBase . Find ( & worker , bolthold . Where ( " " ) . Eq ( " " ) ) VS . checkOperation ( c , class , method , operation , err ) for _ , v := range worker { VS . deleteAnything ( c , v , v . ID , class , method , operation ) } var catType [ ] CategoryType err = VS . DataBase . Find ( & catType , bolthold . Where ( " " ) . Eq ( " " ) ) VS . checkOperation ( c , class , method , operation , err ) for _ , v := range catType { VS . deleteAnything ( c , v , v . ID , class , method , operation ) } var cat [ ] Category err = VS . DataBase . Find ( & cat , bolthold . Where ( " " ) . Eq ( " " ) ) VS . checkOperation ( c , class , method , operation , err ) for _ , v := range cat { VS . deleteAnything ( c , v , v . ID , class , method , operation ) } var i [ ] Item err = VS . DataBase . Find ( & i , bolthold . Where ( " " ) . Eq ( " " ) ) VS . checkOperation ( c , class , method , operation , err ) for _ , v := range i { VS . deleteAnything ( c , v , v . ID , class , method , operation ) } var video [ ] VideoCourse err = VS . DataBase . Find ( & video , bolthold . Where ( " " ) . Eq ( " " ) ) VS . checkOperation ( c , class , method , operation , err ) for _ , v := range video { VS . deleteAnything ( c , v , v . ID , class , method , operation ) } }
This method deletes the information of the Duplicate tests
This method deletes the information of the Duplicate tests