Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func HashPassword ¶
func ToReturnVO ¶
func ToReturnVO(user User) vo.ReturnUserVO
Types ¶
type Message ¶
type Message struct { ID string `json:"_id,omitempty" bson:"_id,omitempty"` Body string `json:"body,omitempty" bson:"body"` SenderId string `json:"senderId,omitempty" bson:"senderId,omitempty"` ReceiverId string `json:"receiverId,omitempty" bson:"receiverId,omitempty"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` }
type User ¶
type User struct { ID string `json:"_id,omitempty" bson:"_id,omitempty"` Username string `json:"username" bson:"username"` Email string `json:"email" bson:"email"` Hash string `json:"hash" bson:"hash,omitempty"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` }
func FromCreateVO ¶
func FromCreateVO(vo vo.CreateUserVO) User
func FromUpdateVO ¶
func FromUpdateVO(vo vo.UpdateUserVO) User
Click to show internal directories.
Click to hide internal directories.