Error code standardization

This commit is contained in:
skiffer-git
2023-02-21 16:48:10 +08:00
parent ae40c8c8c0
commit 5751062605
11 changed files with 68 additions and 21 deletions
-9
View File
@@ -68,12 +68,3 @@ type Writer struct{}
func (w Writer) Printf(format string, args ...interface{}) {
fmt.Printf(format, args...)
}
//func getDBConn(db *gorm.DB, tx []any) *gorm.DB {
// if len(tx) > 0 {
// if txDB, ok := tx[0].(*gorm.DB); ok {
// return txDB
// }
// }
// return db
//}