forked from mirrors/homebox
27 lines
613 B
Go
27 lines
613 B
Go
// Code generated by "/pkgs/automapper"; DO NOT EDIT.
|
|
package mapper
|
|
|
|
import (
|
|
"github.com/hay-kot/content/backend/ent"
|
|
"github.com/hay-kot/content/backend/internal/types"
|
|
)
|
|
|
|
func UserOutFromModel(from ent.User) types.UserOut {
|
|
return types.UserOut{
|
|
ID: from.ID,
|
|
Name: from.Name,
|
|
Email: from.Email,
|
|
Password: from.Password,
|
|
IsSuperuser: from.IsSuperuser,
|
|
}
|
|
}
|
|
|
|
func UserOutToModel(from types.UserOut) ent.User {
|
|
return ent.User{
|
|
ID: from.ID,
|
|
Name: from.Name,
|
|
Email: from.Email,
|
|
Password: from.Password,
|
|
IsSuperuser: from.IsSuperuser,
|
|
}
|
|
}
|