feat: add mapping functions

This commit is contained in:
Justin Lin
2025-08-26 19:49:37 +10:00
parent 0dc1d411f4
commit e770b31402
5 changed files with 35 additions and 7 deletions

7
internal/author/model.go Normal file
View File

@@ -0,0 +1,7 @@
package author
type Author struct {
ID int64 `json:"id"`
Name string `json:"name"`
Bio string `json:"bio"`
}