Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicCredentials ¶
Define basic credentials struct
type InputUser ¶
type InputUser struct { Email string `json:"email"` Password string `json:"password"` Name string `json:"name"` }
User model struct (input object)
type User ¶
type User struct { Id int64 `json:"id"` Email string `json:"email" orm:"unique;index;size(191)"` Password string `json:"-"` Name string `json:"name"` Created time.Time `json:"created_on" orm:"auto_now_add;type(datetime)"` Updated time.Time `json:"updated_on" orm:"auto_now;type(datetime)"` }
User model struct (database & response)
Click to show internal directories.
Click to hide internal directories.