Documentation ¶
Index ¶
- Constants
- type PrivetUser
- type PublicUser
- type User
- func (user *User) Delete() *errors.RestErr
- func (user *User) FindByStatus(status string) ([]User, *errors.RestErr)
- func (user *User) Get() *errors.RestErr
- func (user *User) Marshall(isPublic bool) interface{}
- func (user *User) Save() *errors.RestErr
- func (user *User) Update() *errors.RestErr
- func (user *User) Validate() *errors.RestErr
- type Users
Constants ¶
View Source
const (
StatusActive = "active"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivetUser ¶
type PublicUser ¶
type User ¶
type User struct { ID int64 `json:"id"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Email string `json:"email"` DateCreated string `json:"date_created"` Status string `json:"status"` Password string `json:"password"` }
User : user type
Click to show internal directories.
Click to hide internal directories.