Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actionable ¶
type Actionable interface { NewModel() interface{} Validate(services *app.Services) *validate.Result IsAuthorized(user *models.User) bool }
Actionable is any action that the user can perform using the web app
type AddNewComment ¶
type AddNewComment struct {
Model *models.NewComment
}
AddNewComment represents a new comment to be added
func (*AddNewComment) IsAuthorized ¶
func (input *AddNewComment) IsAuthorized(user *models.User) bool
IsAuthorized returns true if current user is authorized to perform this action
func (*AddNewComment) NewModel ¶
func (input *AddNewComment) NewModel() interface{}
NewModel initializes the model
type CreateNewIdea ¶
CreateNewIdea is used to create a new idea
func (*CreateNewIdea) IsAuthorized ¶
func (input *CreateNewIdea) IsAuthorized(user *models.User) bool
IsAuthorized returns true if current user is authorized to perform this action
func (*CreateNewIdea) NewModel ¶
func (input *CreateNewIdea) NewModel() interface{}
NewModel initializes the model
type CreateTenant ¶
type CreateTenant struct {
Model *models.CreateTenant
}
CreateTenant is the input model used to create a tenant
func (*CreateTenant) IsAuthorized ¶
func (input *CreateTenant) IsAuthorized(user *models.User) bool
IsAuthorized returns true if current user is authorized to perform this action
func (*CreateTenant) NewModel ¶
func (input *CreateTenant) NewModel() interface{}
NewModel initializes the model
type SetResponse ¶
type SetResponse struct {
Model *models.SetResponse
}
SetResponse represents the action to update an idea response
func (*SetResponse) IsAuthorized ¶
func (input *SetResponse) IsAuthorized(user *models.User) bool
IsAuthorized returns true if current user is authorized to perform this action
func (*SetResponse) NewModel ¶
func (input *SetResponse) NewModel() interface{}
NewModel initializes the model
type UpdateTenantSettings ¶
type UpdateTenantSettings struct {
Model *models.UpdateTenantSettings
}
UpdateTenantSettings is the input model used to update tenant settings
func (*UpdateTenantSettings) IsAuthorized ¶
func (input *UpdateTenantSettings) IsAuthorized(user *models.User) bool
IsAuthorized returns true if current user is authorized to perform this action
func (*UpdateTenantSettings) NewModel ¶
func (input *UpdateTenantSettings) NewModel() interface{}
NewModel initializes the model