pre-dev: update flow for lib vs case
This commit is contained in:
@@ -14,7 +14,7 @@ func ModifInput(input *e.Createdto, data *e.Single, tx *gorm.DB) error {
|
||||
|
||||
// a sampel of utilizing transaction
|
||||
func CheckData(input *e.Createdto, data *e.Single, tx *gorm.DB) error {
|
||||
tx.Where("name = ?", input.Name)
|
||||
tx.Where("Name = ?", input.Name)
|
||||
input.Name = "Prefix_" + input.Name
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user