Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewData, NewFormRepo)
Functions ¶
This section is empty.
Types ¶
type FormAnswerModel ¶
type FormContentModel ¶
type FormContentModel struct { Id uint64 `gorm:"primarykey"` UUID string `gorm:"uniqueIndex;type:varchar(40)"` FormUUID string `gorm:"type:varchar(40)"` ContentTitle string ContentType string Extend string `gorm:"type:json"` UserAnswer string `gorm:"type:json"` Options string `gorm:"type:json"` Sort uint64 CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` }
type FormRepo ¶
type FormRepo interface { GetFormByUUID(uuid string) (*FormModel, error) ListForm() ([]FormModel, error) ListContentByFormUUID(formUUID string) ([]FormContentModel, error) CreateForm(form *FormModel) error UpdateForm(form *FormModel) error CreateFormContent(content *FormContentModel) error UpdateFormContent(content *FormContentModel) error CreateFormAnswer(answer *FormAnswerModel) error }
func NewFormRepo ¶
Click to show internal directories.
Click to hide internal directories.