Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
package user
|
||||
|
||||
import "time"
|
||||
|
||||
// CreateRequest is the HTTP request for creating a user
|
||||
type CreateRequest struct {
|
||||
Email string `json:"email"`
|
||||
FirstName string `json:"first_name"`
|
||||
LastName string `json:"last_name"`
|
||||
}
|
||||
|
||||
// CreateResponse is the HTTP response after creating a user
|
||||
type CreateResponse struct {
|
||||
ID string `json:"id"`
|
||||
Email string `json:"email"`
|
||||
Name string `json:"name"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
package user
|
||||
|
||||
import "time"
|
||||
|
||||
// GetResponse is the HTTP response for getting a user
|
||||
type GetResponse struct {
|
||||
ID string `json:"id"`
|
||||
Email string `json:"email"`
|
||||
Name string `json:"name"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue