volunteering

package
v0.0.0-...-e9e834b Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(c *fiber.Ctx) error

func ListGroup

func ListGroup(c *fiber.Ctx) error

func Single

func Single(c *fiber.Ctx) error

Types

type Volunteering

type Volunteering struct {
	ID             uint64             `json:"id" gorm:"primary_key"`
	Userid         uint64             `json:"userid"`
	Title          string             `json:"title"`
	Location       string             `json:"location"`
	Contactname    string             `json:"contactname"`
	Contactphone   string             `json:"contactphone"`
	Contactemail   string             `json:"contactemail"`
	Contacturl     string             `json:"contacturl"`
	Description    string             `json:"description"`
	Timecommitment string             `json:"timecommitment"`
	Added          time.Time          `json:"added"`
	Groups         []uint64           `json:"groups"  gorm:"-"`
	Image          *VolunteeringImage `json:"image" gorm:"-"`
	Dates          []VolunteeringDate `json:"dates" gorm:"-"`
	Expired        bool               `json:"expired"`
}

func (Volunteering) TableName

func (Volunteering) TableName() string

type VolunteeringDate

type VolunteeringDate struct {
	ID      uint64    `json:"id" gorm:"primary_key"`
	Start   time.Time `json:"start"`
	End     time.Time `json:"end"`
	Applyby time.Time `json:"applyby"`
}

func (VolunteeringDate) TableName

func (VolunteeringDate) TableName() string

type VolunteeringImage

type VolunteeringImage struct {
	ID             uint64 `json:"id" gorm:"primary_key"`
	Archived       int    `json:"-"`
	Volunteeringid uint64 `json:"-"`
	Path           string `json:"path"`
	Paththumb      string `json:"paththumb"`
}

func (VolunteeringImage) TableName

func (VolunteeringImage) TableName() string

Jump to

Keyboard shortcuts

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