Documentation
¶
Overview ¶
Package transform maps model entities to API/view payload structs.
Index ¶
- func Topics2Vo(data []*topics.Entity, categoryMap map[uint64]*category.Entity) []*vo.TopicsSimpleVo
- func TopicsWithUser2Vo(data []*topics.Entity, categoryMap map[uint64]*category.Entity, ...) []*vo.TopicsSimpleVo
- func User2UserDetailedVo(user users.EntityComplete) *vo.UserDetailedVo
- func User2userShow(user users.EntityComplete) *vo.UserInfoShow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TopicsWithUser2Vo ¶ added in v0.2.49
func TopicsWithUser2Vo(data []*topics.Entity, categoryMap map[uint64]*category.Entity, userMap map[uint64]*users.EntityComplete) []*vo.TopicsSimpleVo
func User2UserDetailedVo ¶ added in v0.1.1
func User2UserDetailedVo(user users.EntityComplete) *vo.UserDetailedVo
User2UserDetailedVo maps a user entity to the detailed profile payload.
func User2userShow ¶
func User2userShow(user users.EntityComplete) *vo.UserInfoShow
User2userShow maps a user entity to the authenticated user summary payload.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.