proposal

package
v0.0.0-...-83f815e Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProposalByDocumentHandler

func ProposalByDocumentHandler(res http.ResponseWriter, req *http.Request)

func ProposalByIdHandler

func ProposalByIdHandler(res http.ResponseWriter, req *http.Request)

func ProposalHandler

func ProposalHandler(res http.ResponseWriter, req *http.Request)

Types

type DocumentProposal

type DocumentProposal struct {
	ID        string     `json:"id"`
	Questions []Proposal `json:"questions"`
}

type Proposal

type Proposal struct {
	// taken from from gorm.Model, so we can json strigify properly
	ID        uint64         `json:"id" gorm:"primarykey"`
	CreatedAt time.Time      `json:"created_at"`
	UpdatedAt time.Time      `json:"updated_at"`
	DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`

	Document string `json:"document"`
	Start    uint32 `json:"start"`
	End      uint32 `json:"end"`
}

Jump to

Keyboard shortcuts

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