refactor: add api v1 package

This commit is contained in:
Steven
2023-06-19 00:54:09 +08:00
parent a9f33cef6a
commit 96bcbbba68
9 changed files with 272 additions and 42 deletions

View File

@ -24,3 +24,8 @@ func New(db *sql.DB, profile *profile.Profile) *Store {
profile: profile,
}
}
// Close closes the database connection.
func (s *Store) Close() error {
return s.db.Close()
}