chore: initial commit

This commit is contained in:
2026-07-22 17:50:33 +08:00
parent 82936a8987
commit ee9f50b859
107 changed files with 8346 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
package response
import (
db "server/internal/db/sqlc"
"server/internal/pkg/httputil"
)
func ToFiles(files []db.File) []db.File {
result := make([]db.File, len(files))
for i := range files {
result[i] = files[i]
result[i].FilePath = httputil.BuildFileUrl(&files[i].FilePath)
}
return result
}