domain

package
v0.0.0-...-f1097ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2021 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SELECT_POLL_BY_ID = `` /* 591-byte string literal not displayed */
View Source
const SELECT_POLL_CHANNEL_BY_ID = `` /* 526-byte string literal not displayed */
View Source
const SELECT_POLL_DESIGN_BY_ID = `` /* 589-byte string literal not displayed */
View Source
const SELECT_POLL_ITEM_BY_ID = `` /* 5570-byte string literal not displayed */
View Source
const SELECT_POLL_SETTINGS_BY_ID = `` /* 607-byte string literal not displayed */
View Source
const SELECT_SCREEN_COMPLETE_BY_ID = `` /* 740-byte string literal not displayed */
View Source
const SELECT_SCREEN_WELCOME_BY_ID = `` /* 586-byte string literal not displayed */

Variables

View Source
var Dummy = ApiMessage{
	Code:    fasthttp.StatusNotImplemented,
	Message: "dummy",
}

Functions

This section is empty.

Types

type ApiMessage

type ApiMessage struct {
	Code    int
	Message string
}

func (*ApiMessage) Marshal

func (a *ApiMessage) Marshal() []byte

func (*ApiMessage) String

func (a *ApiMessage) String() string

type DAO

type DAO struct {
	EPoll           *ePoll
	EPollChannel    *ePollChannel
	EPollDesign     *ePollDesign
	EPollSettings   *ePollSettings
	FScreenMain     *fScreenMain
	FScreenWelcome  *fScreenWelcome
	FScreenComplete *fScreenComplete
}

func New

func New(poolRo *pgxpool.Pool, poolRw *pgxpool.Pool) *DAO

type EGroup

type EGroup struct {
	Name             map[string]interface{} `json:"name"`
	ButtonText       map[string]interface{} `json:"buttonText"`
	QuestionsShuffle *bool                  `json:"questionsShuffle"`
	Indent           *bool                  `json:"indent"`
	Children         []string               `json:"children"`
}

type EPoll

type EPoll struct {
	Id               int64     `json:"id"`
	SegmentId        int64     `json:"segmentId"`
	UserId           int64     `json:"userId"`
	FolderId         *int64    `json:"folderId"`
	ExportSettingsId *int64    `json:"exportSettingsId"`
	Name             string    `json:"name"`
	Status           string    `json:"status"`
	Type             string    `json:"type"`
	Tags             []string  `json:"tags"`
	Favorite         bool      `json:"favorite"`
	InTrash          bool      `json:"inTrash"`
	CreatedAt        time.Time `json:"createdAt"`
	AnswersCount     int64     `json:"answersCount"`
	Owner            EUser     `json:"owner"`
}

func (*EPoll) Marshal

func (e *EPoll) Marshal() []byte

func (*EPoll) String

func (e *EPoll) String() string

type EPollChannel

type EPollChannel struct {
	Id                 int64      `json:"id"`
	PollId             int64      `json:"pollId"`
	OneAnswerPerDevice bool       `json:"oneAnswerPerDevice"`
	HashUniqueAnswer   bool       `json:"hashUniqueAnswer"`
	HashAnswerMax      int        `json:"hashAnswerMax"`
	Enabled            bool       `json:"enabled"`
	ShowShortCode      bool       `json:"showShortCode"`
	Code               string     `json:"code"`
	ShortCode          string     `json:"shortCode"`
	Type               string     `json:"type"`
	Name               string     `json:"name"`
	MaxAnswers         *int       `json:"maxAnswers"`
	StopTimestamp      *time.Time `json:"stopTimestamp"`
	CompleteLink       *string    `json:"completeLink"`
	ScreenoutLink      *string    `json:"screenoutLink"`
	QuotafullLink      *string    `json:"quotafullLink"`
	Quotas             []string   `json:"quotas"` // TODO refactoring
	CustomId           *string    `json:"customId"`
	Debug              bool       `json:"debug"`
}

func (*EPollChannel) Marshal

func (e *EPollChannel) Marshal() []byte

func (*EPollChannel) String

func (e *EPollChannel) String() string

type EPollDesign

type EPollDesign struct {
	Id                          int64      `json:"id"`
	UserId                      *int64     `json:"userId"`
	Template                    bool       `json:"template"`
	BackgroundMediaId           *uuid.UUID `json:"backgroundMediaId"`
	LogoId                      *uuid.UUID `json:"logoId"`
	LogoEnabled                 bool       `json:"logoEnabled"`
	Font                        string     `json:"font"`
	ColorQuestion               string     `json:"colorQuestion"`
	ColorDescription            string     `json:"colorDescription"`
	ColorOptions                string     `json:"colorOptions"`
	ColorBackground             string     `json:"colorBackground"`
	ColorButtons                string     `json:"colorButtons"`
	ColorButtonsText            string     `json:"colorButtonsText"`
	ColorBottomPanel            string     `json:"colorBottomPanel"`
	ColorProgressBar            string     `json:"colorProgressBar"`
	ColorBackgroundTransparency string     `json:"colorBackgroundTransparency"`
}

func (*EPollDesign) Marshal

func (e *EPollDesign) Marshal() []byte

func (*EPollDesign) String

func (e *EPollDesign) String() string

type EPollItem

type EPollItem struct {
	Id                  int64    `json:"id"`
	PollId              int64    `json:"pollId"`
	Type                *string  `json:"type"`
	ShowType            *string  `json:"showType"`
	DefaultTransitionId *int64   `json:"defaultTransitionId"`
	DefaultScreenOut    *bool    `json:"defaultScreenOut"`
	ImageSizeType       *string  `json:"imageSizeType"`
	MediaLocationType   *string  `json:"mediaLocationType"`
	CustomShapeSetId    *int64   `json:"customShapeSetId"`
	ShowLogic           *string  `json:"showLogic"` // TODO
	Media               []string `json:"media"`
	Transitions         []string `json:"transitions"`
	CustomShapeSet      *string  `json:"customShapeSet"`
	ShowLogicId         *int64   `json:"showLogicId"`
}

type EPollSettings

type EPollSettings struct {
	Id                        int64    `json:"id"`
	DesignId                  int64    `json:"designId"`
	ProgressBarType           string   `json:"progressBarType"`
	QuestionAlignType         string   `json:"questionAlignType"`
	NotificationFrequency     string   `json:"notificationFrequency"`
	HorizontalScroll          bool     `json:"horizontalScroll"`
	WelcomeScreenFooter       bool     `json:"welcomeScreenFooter"`
	Language                  string   `json:"language"`
	ShuffleEnabled            bool     `json:"shuffleEnabled"`
	SinglePage                bool     `json:"singlePage"`
	ButtonText                string   `json:"buttonText"`
	ButtonNextDisabled        bool     `json:"buttonNextDisabled"`
	ButtonPrevEnabled         bool     `json:"buttonPrevEnabled"`
	ButtonResultEnabled       bool     `json:"buttonResultEnabled"`
	QuestionBackgroundEnabled bool     `json:"questionBackgroundEnabled"`
	QuestionNumbersEnabled    bool     `json:"questionNumbersEnabled"`
	QuestionRequiredHighlight bool     `json:"questionRequiredHighlight"`
	SessionTime               int64    `json:"sessionTime"`
	SessionRestore            bool     `json:"sessionRestore"`
	SessionNumberShow         bool     `json:"sessionNumberShow"`
	RequiredParams            []string `json:"requiredParams"`
}

func (*EPollSettings) Marshal

func (e *EPollSettings) Marshal() []byte

func (*EPollSettings) String

func (e *EPollSettings) String() string

type EQuestion

type EQuestion struct {
	Name                map[string]interface{} `json:"name"`
	Description         map[string]interface{} `json:"description"`
	ButtonText          map[string]interface{} `json:"buttonText"`
	NotificationText    map[string]interface{} `json:"notificationText"`
	CommentPlaceholder  map[string]interface{} `json:"commentPlaceholder"`
	DuplicateId         *int64                 `json:"duplicateId"`
	DisplayIndex        *string                `json:"displayIndex"`
	Required            *bool                  `json:"required"`
	NotificationEnabled *bool                  `json:"notificationEnabled"`
	CommentEnabled      *bool                  `json:"commentEnabled"`
	HasAnswers          *bool                  `json:"hasAnswers"`
	SystemName          *string                `json:"systemName"`
	Options             []string               `json:"options"` // TODO
	Parents             []string               `json:"parents"` // TODO
}

type EQuestionAudio

type EQuestionAudio struct {
	MinListeningTime *int64 `json:"minListeningTime"`
}

type EQuestionCardSorting

type EQuestionCardSorting struct {
	ShuffleCards    *bool `json:"shuffleCards"`
	ShuffleCategory *bool `json:"shuffleCategory"`
}

type EQuestionClosed

type EQuestionClosed struct {
	OptionsIndexType          *string `json:"optionsIndexType"`
	OptionsShowType           *string `json:"optionsShowType"`
	OptionsSortAlphabetically *bool   `json:"optionsSortAlphabetically"`
	OptionsShuffle            *bool   `json:"optionsShuffle"`
	OptionsHorizontal         *bool   `json:"optionsHorizontal"`
	OptionsMultipleSelect     *bool   `json:"optionsMultipleSelect"`
	OptionsMultipleSelectMin  *int    `json:"optionsMultipleSelectMin"`
	OptionsMultipleSelectMax  *int    `json:"optionsMultipleSelectMax"`
}

type EQuestionComparison

type EQuestionComparison struct {
	MediaEnabled       *bool `json:"mediaEnabled"`
	OptionsShuffle     *bool `json:"optionsShuffle"`
	ChangeAnswer       *bool `json:"changeAnswer"`
	ShowRemainingPairs *bool `json:"showRemainingPairs"`
}

type EQuestionCsi

type EQuestionCsi struct {
	RevertOptionsNumeration *bool   `json:"revertOptionsNumeration"`
	ValueMax                *int    `json:"valueMax"`
	ValueSatisfactory       *int    `json:"valueSatisfactory"`
	StartFromOne            *bool   `json:"startFromOne"`
	GradientEnabled         *bool   `json:"gradientEnabled"`
	GradientColorLeft       *string `json:"gradientColorLeft"`
	GradientColorRight      *string `json:"gradientColorRight"`
	Shape                   *string `json:"shape"`
	CommentShowType         *string `json:"commentShowType"`
}

type EQuestionFirstClick

type EQuestionFirstClick struct {
	Hash *string `json:"hash"`
}

type EQuestionMatrix

type EQuestionMatrix struct {
	OptionsShuffleType    *string `json:"optionsShuffleType"`
	MatrixFormatType      *string `json:"matrixFormatType"`
	MatrixRowNamesAlign   *string `json:"matrixRowNamesAlign"`
	AnswerLimitType       *string `json:"answerLimitType"`
	OptionsShuffle        *bool   `json:"optionsShuffle"`
	OptionsMultipleSelect *bool   `json:"optionsMultipleSelect"`
	ShowAsClosed          *bool   `json:"showAsClosed"`
	AllRowsRequired       *bool   `json:"allRowsRequired"`
	ShowRowsSequentially  *bool   `json:"showRowsSequentially"`
	EnableImages          *bool   `json:"enableImages"`
}

type EQuestionMedia

type EQuestionMedia struct {
	OptionsShuffle              *bool `json:"optionsShuffle"`
	OptionsMultipleSelect       *bool `json:"optionsMultipleSelect"`
	OptionsMultipleSelectMin    *int  `json:"optionsMultipleSelectMin"`
	OptionsMultipleSelectMax    *int  `json:"optionsMultipleSelectMax"`
	OptionsIncreased            *bool `json:"optionsIncreased"`
	OptionsFullScreenEnabled    *bool `json:"optionsFullScreenEnabled"`
	OptionsLandscapeFormat      *bool `json:"optionsLandscapeFormat"`
	OptionsSelectButtonDisabled *bool `json:"optionsSelectButtonDisabled"`
}

type EQuestionNps

type EQuestionNps struct {
	Neutral                 *int    `json:"neutral"`
	Promoter                *int    `json:"promoter"`
	RevertOptionsNumeration *bool   `json:"revertOptionsNumeration"`
	StartFromOne            *bool   `json:"startFromOne"`
	GradientEnabled         *bool   `json:"gradientEnabled"`
	GradientColorLeft       *string `json:"gradientColorLeft"`
	GradientColorRight      *string `json:"gradientColorRight"`
	Shape                   *string `json:"shape"`
}

type EQuestionOpened

type EQuestionOpened struct {
	OptionsMultipleSelectMin *int  `json:"optionsMultipleSelectMin"`
	SequentialDisplay        *bool `json:"sequentialDisplay"`
	Multiline                *bool `json:"multiline"`
	HideTip                  *bool `json:"hideTip"`
	StringMinLength          *int  `json:"stringMinLength"`
	StringMaxLength          *int  `json:"stringMaxLength"`
}

type EQuestionOpinion

type EQuestionOpinion struct {
	EmotionScale       *bool   `json:"emotionScale"`
	GradientEnabled    *bool   `json:"gradientEnabled"`
	GradientColorLeft  *string `json:"gradientColorLeft"`
	GradientColorRight *string `json:"gradientColorRight"`
	OptionsValueMin    *int    `json:"optionsValueMin"`
	OptionsValueMax    *int    `json:"optionsValueMax"`
	Shape              *string `json:"shape"`
}

type EQuestionPassword

type EQuestionPassword struct {
	LoginPlaceholder     map[string]interface{} `json:"loginPlaceholder"`
	PasswordPlaceholder  map[string]interface{} `json:"passwordPlaceholder"`
	Password             *string                `json:"password"`
	LoginIdentifierPairs []string               `json:"loginIdentifierPairs"`
}

type EQuestionRanging

type EQuestionRanging struct {
	ShowOptionsNumeration *bool `json:"showOptionsNumeration"`
	OptionsShuffle        *bool `json:"optionsShuffle"`
}

type EQuestionRating

type EQuestionRating struct {
	OptionsValueMin            *int                   `json:"optionsValueMin"`
	OptionsValueMax            *int                   `json:"optionsValueMax"`
	ShowOptionsNumeration      *bool                  `json:"showOptionsNumeration"`
	RevertOptionsNumeration    *bool                  `json:"revertOptionsNumeration"`
	StartFromOne               *bool                  `json:"startFromOne"`
	GradientEnabled            *bool                  `json:"gradientEnabled"`
	GradientColorLeft          *string                `json:"gradientColorLeft"`
	GradientColorRight         *string                `json:"gradientColorRight"`
	Color                      *string                `json:"color"`
	Step                       *float64               `json:"step"`
	SectionCount               *int                   `json:"sectionCount"`
	OptionInitialNumberValue   *int                   `json:"optionInitialNumberValue"`
	OptionInitialInterestValue *int                   `json:"optionInitialInterestValue"`
	SubType                    *string                `json:"subType"`
	SliderViewType             *string                `json:"sliderViewType"`
	Shape                      *string                `json:"shape"`
	Scale                      map[string]interface{} `json:"scale"`
}

type EQuestionSemanticDifferential

type EQuestionSemanticDifferential struct {
	HideZero              *bool   `json:"hideZero"`
	ShowOptionsNumeration *bool   `json:"showOptionsNumeration"`
	GradientEnabled       *bool   `json:"gradientEnabled"`
	Shape                 *string `json:"shape"`
	GradientColorLeft     *bool   `json:"gradientColorLeft"`
	GradientColorRight    *bool   `json:"gradientColorRight"`
	OptionsShuffle        *bool   `json:"optionsShuffle"`
}

type EQuestionSiteTest

type EQuestionSiteTest struct {
	Hash    *string `json:"hash"`
	Version *int    `json:"version"`
}

type EQuestionSlideshow

type EQuestionSlideshow struct {
	ShowTime *int `json:"showTime"`
}

type EQuestionTreeTesting

type EQuestionTreeTesting struct {
	Time       *int `json:"time"`
	CountSteps *int `json:"countSteps"`
}

type ERole

type ERole struct {
	Id          int64   `json:"id"`
	Name        string  `json:"name"`
	Description *string `json:"description"`
	Enabled     bool    `json:"enabled"`
}

type EScreenComplete

type EScreenComplete struct {
	Index              *int    `json:"index"`
	Name               *string `json:"name"`
	ButtonText         *string `json:"buttonText"`
	MyAnswerButtonText *string `json:"myAnswerButtonText"`
	Description        *string `json:"description"`
	MyAnswerEnabled    *bool   `json:"myAnswerEnabled"`
	LinkInSameScreen   *bool   `json:"linkInSameScreen"`
	Link               *string `json:"link"`
	LinkVk             *string `json:"linkVk"`
	LinkTwitter        *string `json:"linkTwitter"`
	LinkFacebook       *string `json:"linkFacebook"`
	LinkTelegram       *string `json:"linkTelegram"`
	LinkInstagram      *string `json:"linkInstagram"`
}

type EScreenMain

type EScreenMain struct {
	ParentId   *int64 `json:"parentId"`
	Index      *int64 `json:"index"`
	Pin        *bool  `json:"pin"`
	LocalIndex *int64 `json:"localIndex"`
}

type EScreenWelcome

type EScreenWelcome struct {
	Index       *int    `json:"index"`
	Name        *string `json:"name"`
	ButtonText  *string `json:"buttonText"`
	Description *string `json:"description"`
}

type ESpace

type ESpace struct {
	Id      int64     `json:"id"`
	Uuid    uuid.UUID `json:"uuid"`
	Name    string    `json:"name"`
	Base    bool      `json:"base"`
	Enabled bool      `json:"enabled"`
}

type EUser

type EUser struct {
	Id            int64     `json:"id"`
	Uuid          uuid.UUID `json:"uuid"`
	SpaceId       int64     `json:"spaceId"`
	Email         string    `json:"email"`
	Login         *string   `json:"login"`
	SberId        *string   `json:"sberId"`
	Department    *string   `json:"department"`
	Name          *string   `json:"name"`
	AvatarUrl     *string   `json:"avatarUrl"`
	Enabled       bool      `json:"enabled"`
	Language      string    `json:"language"`
	LastRequestAt time.Time `json:"lastRequestAt"`
	Space         ESpace    `json:"space"`
	Online        bool      `json:"online"`
	Roles         []ERole   `json:"roles"`
}

type FScreenComplete

type FScreenComplete struct {
	PollItem       *EPollItem       `json:"pollItem"`
	ScreenComplete *EScreenComplete `json:"screenComplete"`
}

func (*FScreenComplete) Marshal

func (e *FScreenComplete) Marshal() []byte

func (*FScreenComplete) String

func (e *FScreenComplete) String() string

type FScreenMain

type FScreenMain struct {
	PollItem                     *EPollItem                     `json:"pollItem"`
	ScreenMain                   *EScreenMain                   `json:"screenMain"`
	Group                        *EGroup                        `json:"group"`
	Question                     *EQuestion                     `json:"question"`
	QuestionAudio                *EQuestionAudio                `json:"questionAudio"`
	QuestionCardSorting          *EQuestionCardSorting          `json:"questionCardSorting"`
	QuestionClosed               *EQuestionClosed               `json:"questionClosed"`
	QuestionComparison           *EQuestionComparison           `json:"questionComparison"`
	QuestionCsi                  *EQuestionCsi                  `json:"questionCsi"`
	QuestionFirstClick           *EQuestionFirstClick           `json:"questionFirstClick"`
	QuestionMatrix               *EQuestionMatrix               `json:"questionMatrix"`
	QuestionMedia                *EQuestionMedia                `json:"questionMedia"`
	QuestionNps                  *EQuestionNps                  `json:"questionNps"`
	QuestionOpened               *EQuestionOpened               `json:"questionOpened"`
	QuestionOpinion              *EQuestionOpinion              `json:"questionOpinion"`
	QuestionPassword             *EQuestionPassword             `json:"questionPassword"`
	QuestionRanging              *EQuestionRanging              `json:"questionRanging"`
	QuestionRating               *EQuestionRating               `json:"questionRating"`
	QuestionSemanticDifferential *EQuestionSemanticDifferential `json:"questionSemanticDifferential"`
	QuestionSiteTest             *EQuestionSiteTest             `json:"questionSiteTest"`
	QuestionSlideshow            *EQuestionSlideshow            `json:"questionSlideshow"`
	QuestionTreeTesting          *EQuestionTreeTesting          `json:"questionTreeTesting"`
}

func (*FScreenMain) Marshal

func (e *FScreenMain) Marshal() []byte

func (*FScreenMain) String

func (e *FScreenMain) String() string

type FScreenWelcome

type FScreenWelcome struct {
	PollItem      *EPollItem      `json:"pollItem"`
	ScreenWelcome *EScreenWelcome `json:"screenWelcome"`
}

func (*FScreenWelcome) Marshal

func (e *FScreenWelcome) Marshal() []byte

func (*FScreenWelcome) String

func (e *FScreenWelcome) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL