예제 #1
0
파일: user.go 프로젝트: doubledutch/dd-vote
// ToUser converts a UserRequest object to User
func (req *UserRequest) ToUser() table.User {
	var user table.User
	user.ClientID = req.ClientID
	user.Firstname = req.Firstname
	user.Lastname = req.Lastname
	return user
}
예제 #2
0
파일: user.go 프로젝트: doubledutch/dd-vote
// ToUser converts an AdminLoginRequest object to User
func (req *AdminLoginRequest) ToUser() table.User {
	var user table.User
	user.Email = req.Email
	user.Password = req.Password
	return user
}