Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID int64 `json:"id"` Name string `json:"name"` Login string `json:"login"` Password string `json:"password"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` LastLogin time.Time `json:"last_login"` Deleted bool `json:"-"` }
func DecodeAndCreate ¶
func DecodeAndCreate(body io.ReadCloser) (*User, error)
func DecodeAndUpdate ¶
func DecodeAndUpdate(body io.ReadCloser, u *User) (*User, error)
func (*User) ChangeName ¶
func (*User) ChangePassword ¶
Click to show internal directories.
Click to hide internal directories.