Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Member ¶
type Member struct { // gorm.Model Id string `json:"id" gorm:"primaryKey"` Name string `json:"name"` Email string `json:"email" gorm:"unique"` Favorites []Favorite `json:"favorites" gorm:"foreignKey:Id"` }
func (*Member) ConvertFromRequest ¶
func (member *Member) ConvertFromRequest(memberRequest *MemberRequest)
type MemberDetail ¶
type MemberDetailResponse ¶
type MemberDetailResponse struct { Id string `json:"id"` Name string `json:"name"` Email string `json:"email"` Favorites []string `json:"favorites"` }
func (*MemberDetailResponse) ConvertToResponse ¶
func (member *MemberDetailResponse) ConvertToResponse(memberDetail *MemberDetail)
type MemberRequest ¶
type MemberResponse ¶
Click to show internal directories.
Click to hide internal directories.