group

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const FREEGLE = "Freegle"
View Source
const MODERATOR = "Moderator"
View Source
const OWNER = "Owner"

Variables

This section is empty.

Functions

func GetGroup

func GetGroup(c *fiber.Ctx) error

func GetGroupMessages

func GetGroupMessages(c *fiber.Ctx) error

func ListGroups

func ListGroups(c *fiber.Ctx) error

Types

type Group

type Group struct {
	ID                   uint64           `json:"id" gorm:"primary_key"`
	Nameshort            string           `json:"nameshort"`
	Namefull             string           `json:"namefull"`
	Namedisplay          string           `json:"namedisplay"`
	Settings             json.RawMessage  `json:"settings"` // This is JSON stored in the DB as a string.
	Region               string           `json:"region"`
	Publish              int              `json:"publish"`
	Ontn                 int              `json:"ontn"`
	Membercount          int              `json:"membercount"`
	Modcount             int              `json:"modcount"`
	Lat                  float32          `json:"lat"`
	Lng                  float32          `json:"lng"`
	Altlat               float32          `json:"altlat"`
	Altlng               float32          `json:"altlng"`
	GroupProfile         GroupProfile     `gorm:"ForeignKey:groupid" json:"-"`
	GroupProfileStr      string           `json:"profile"`
	Onmap                int              `json:"onmap"`
	Tagline              string           `json:"tagline"`
	Description          string           `json:"description"`
	Contactmail          string           `json:"-"`
	Modsemail            string           `json:"modsemail"`
	Fundingtarget        int              `json:"fundingtarget"`
	Affiliationconfirmed time.Time        `json:"affiliationconfirmed"`
	Founded              time.Time        `json:"founded"`
	GroupSponsors        []GroupSponsor   `gorm:"ForeignKey:groupid" json:"sponsors"`
	GroupVolunteers      []GroupVolunteer `gorm:"-" json:"showmods"`
	Showjoin             int              `json:"showjoin"`
}

Full group details.

type GroupEntry

type GroupEntry struct {
	ID          uint64  `json:"id" gorm:"primary_key"`
	Nameshort   string  `json:"nameshort"`
	Namefull    string  `json:"namefull"`
	Namedisplay string  `json:"namedisplay"`
	Lat         float32 `json:"lat"`
	Lng         float32 `json:"lng"`
	Altlat      float32 `json:"altlat"`
	Altlng      float32 `json:"altlng"`
	Publish     int     `json:"publish"`
	Onmap       int     `json:"onmap"`
	Region      string  `json:"region"`
	Contactmail string  `json:"-"`
	Modsemail   string  `json:"modsemail"`
	Showjoin    int     `json:"showjoin"`
}

Summary group details.

type GroupProfile

type GroupProfile struct {
	ID        uint64 `json:"id" gorm:"primary_key"`
	Groupid   uint64 `json:"-"`
	Path      string `json:"path"`
	Paththumb string `json:"paththumb"`
}

func (GroupProfile) TableName

func (GroupProfile) TableName() string

type GroupSponsor

type GroupSponsor struct {
	ID       uint64 `json:"id" gorm:"primary_key"`
	Groupid  uint64 `json:"-"`
	Name     string `json:"name"`
	Linkurl  string `json:"linkurl"`
	Imageurl string `json:"imageurl"`
	Tagline  string `json:"tagline"`
}

func (GroupSponsor) TableName

func (GroupSponsor) TableName() string

type GroupVolunteer

type GroupVolunteer struct {
	ID          uint64           `json:"id" gorm:"primary_key"`
	Userid      uint64           `json:"userid"`
	Firstname   string           `json:"firstname"`
	Lastname    string           `json:"lastname"`
	Fullname    string           `json:"fullname"`
	Displayname string           `json:"displayname"`
	Profileid   uint64           `json:"-"`
	Url         string           `json:"-"`
	Archived    int              `json:"-"`
	Profile     user.UserProfile `json:"profile" gorm:"-"`
	Showmod     bool             `json:"-"`
}

func GetGroupVolunteers

func GetGroupVolunteers(id uint64) []GroupVolunteer

type RepostSettings

type RepostSettings struct {
	Offer    int `json:"offer"`
	Wanted   int `json:"wanted"`
	Max      int `json:"max"`
	Chaseups int `json:"chaseups"`
}

Jump to

Keyboard shortcuts

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