update curd & code logic

This commit is contained in:
Sakurasan
2023-03-29 22:58:02 +08:00
parent 8985c03ac9
commit 312a0b48dc
6 changed files with 344 additions and 177 deletions

View File

@@ -100,7 +100,7 @@ func deleteUser(c *gin.Context) {
}
func initDB() {
db, err := sql.Open("sqlite3", "test.db")
db, err := sql.Open("sqlite3", "./db/cat.db")
if err != nil {
log.Fatal(err)
}