communityevent

package
v0.0.0-...-01ecc05 Latest Latest
Warning

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

Go to latest
Published: May 7, 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 CommunityEvent

type CommunityEvent 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          *CommunityEventImage `json:"image" gorm:"-"`
	Dates          []CommunityEventDate `json:"dates" gorm:"-"`
}

func (CommunityEvent) TableName

func (CommunityEvent) TableName() string

type CommunityEventDate

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

func (CommunityEventDate) TableName

func (CommunityEventDate) TableName() string

type CommunityEventImage

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

func (CommunityEventImage) TableName

func (CommunityEventImage) TableName() string

Jump to

Keyboard shortcuts

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