Documentation ¶
Index ¶
Constants ¶
View Source
const ( OrgMemberKeyUserID = "user_id" OrgMemberKeyOrgID = "org_id" OrgMemberKeyUserName = "user_name" OrgMemberKeyEmail = "email" OrgMemberKeyFirstName = "first_name" OrgMemberKeyLastName = "last_name" )
Variables ¶
This section is empty.
Functions ¶
func OrgMemberToModel ¶
func OrgMemberToModel(member *OrgMemberView, prefixAvatarURL string) *model.OrgMemberView
func OrgMembersToModel ¶
func OrgMembersToModel(roles []*OrgMemberView, prefixAvatarURL string) []*model.OrgMemberView
Types ¶
type OrgMemberSearchKey ¶
type OrgMemberSearchKey org_model.OrgMemberSearchKey
func (OrgMemberSearchKey) ToColumnName ¶
func (key OrgMemberSearchKey) ToColumnName() string
type OrgMemberSearchQuery ¶
type OrgMemberSearchQuery org_model.OrgMemberSearchQuery
func (OrgMemberSearchQuery) GetKey ¶
func (req OrgMemberSearchQuery) GetKey() repository.ColumnKey
func (OrgMemberSearchQuery) GetMethod ¶
func (req OrgMemberSearchQuery) GetMethod() domain.SearchMethod
func (OrgMemberSearchQuery) GetValue ¶
func (req OrgMemberSearchQuery) GetValue() interface{}
type OrgMemberSearchRequest ¶
type OrgMemberSearchRequest org_model.OrgMemberSearchRequest
func (OrgMemberSearchRequest) GetAsc ¶
func (req OrgMemberSearchRequest) GetAsc() bool
func (OrgMemberSearchRequest) GetLimit ¶
func (req OrgMemberSearchRequest) GetLimit() uint64
func (OrgMemberSearchRequest) GetOffset ¶
func (req OrgMemberSearchRequest) GetOffset() uint64
func (OrgMemberSearchRequest) GetQueries ¶
func (req OrgMemberSearchRequest) GetQueries() []repository.SearchQuery
func (OrgMemberSearchRequest) GetSortingColumn ¶
func (req OrgMemberSearchRequest) GetSortingColumn() repository.ColumnKey
type OrgMemberView ¶
type OrgMemberView struct { UserID string `json:"userId" gorm:"column:user_id;primary_key"` OrgID string `json:"-" gorm:"column:org_id;primary_key"` UserName string `json:"-" gorm:"column:user_name"` Email string `json:"-" gorm:"column:email_address"` FirstName string `json:"-" gorm:"column:first_name"` LastName string `json:"-" gorm:"column:last_name"` DisplayName string `json:"-" gorm:"column:display_name"` Roles pq.StringArray `json:"roles" gorm:"column:roles"` Sequence uint64 `json:"-" gorm:"column:sequence"` PreferredLoginName string `json:"-" gorm:"column:preferred_login_name"` AvatarKey string `json:"-" gorm:"column:avatar_key"` UserResourceOwner string `json:"-" gorm:"column:user_resource_owner"` CreationDate time.Time `json:"-" gorm:"column:creation_date"` ChangeDate time.Time `json:"-" gorm:"column:change_date"` }
func (*OrgMemberView) AppendEvent ¶
func (r *OrgMemberView) AppendEvent(event *models.Event) (err error)
Click to show internal directories.
Click to hide internal directories.