abstraction
This commit is contained in:
10
api/user.go
Normal file
10
api/user.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package api
|
||||
|
||||
type User struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type UserPayload struct {
|
||||
*User
|
||||
}
|
Reference in New Issue
Block a user