abstraction

This commit is contained in:
2024-12-29 19:48:41 -05:00
parent fe4b5b6033
commit 0b36bcbd6a
8 changed files with 221 additions and 193 deletions

10
api/user.go Normal file
View File

@@ -0,0 +1,10 @@
package api
type User struct {
ID int64 `json:"id"`
Name string `json:"name"`
}
type UserPayload struct {
*User
}