pre-dev: initial commit

This commit is contained in:
2025-08-11 10:25:54 +07:00
parent e0ecf1c906
commit ee9b4a9035
50 changed files with 1020 additions and 1 deletions
@@ -0,0 +1,20 @@
package modifier
import (
"gorm.io/gorm"
e "simrs-vx/internal/domain/main-entities/single"
)
// a sampel of modifying some input
func ModifInput(input *e.Createdto, data *e.Single, tx *gorm.DB) error {
input.Name = "Prefix_" + input.Name
return nil
}
// a sampel of utilizing transaction
func CheckData(input *e.Createdto, data *e.Single, tx *gorm.DB) error {
tx.Where("name = ?", input.Name)
input.Name = "Prefix_" + input.Name
return nil
}