14 lines
287 B
Go
14 lines
287 B
Go
package mapper
|
|
|
|
import (
|
|
"git.artlef.fr/PersonalLibraryManager/internal/dto"
|
|
"git.artlef.fr/PersonalLibraryManager/internal/model"
|
|
)
|
|
|
|
func UserBookWsToDb(ub dto.UserBookPostCreate, user *model.User) model.UserBook {
|
|
return model.UserBook{
|
|
UserID: user.ID,
|
|
BookID: ub.BookID,
|
|
}
|
|
}
|