domain

package
v0.0.0-...-68b623b Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Answer

type Answer struct {
	QuestionId string `json:"questionId"`
	OptionId   string `json:"optionId"`
}

type IEntity

type IEntity interface {
	GetId() string
}

type Option

type Option struct {
	Id          string `json:"id"`
	Description string `json:"description"`
	Score       int    `json:"score"`
}

type Question

type Question struct {
	Id          string   `json:"id"`
	Description string   `json:"description"`
	Options     []Option `json:"options"`
}

func (Question) GetId

func (q Question) GetId() string

type Survey

type Survey struct {
	Id      string   `json:"id"`
	Score   int      `json:"score"`
	TraitId string   `json:"traitId"`
	Answers []Answer `json:"answers"`
}

func (Survey) GetId

func (s Survey) GetId() string

type SurveyResponse

type SurveyResponse struct {
	Id    string `json:"id"`
	Score int    `json:"score"`
	Trait Trait  `json:"trait"`
}

type Trait

type Trait struct {
	Id                  string `json:"id"`
	Type                string `json:"type"`
	MinScoreRequirement int    `json:"minScoreRequirement"`
}

func (Trait) GetId

func (t Trait) GetId() string

Jump to

Keyboard shortcuts

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