controller

package
v0.0.0-...-e5b71ba Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetInfoErrorCode int = 4302
)

Variables

This section is empty.

Functions

func AddJob

func AddJob(ctx *gin.Context)

func AddVolunteerController

func AddVolunteerController(context *gin.Context)

func CreateTeamController

func CreateTeamController(context *gin.Context)

func DeleteJob

func DeleteJob(ctx *gin.Context)

func DeleteTeamController

func DeleteTeamController(context *gin.Context)

func DeleteVolunteerController

func DeleteVolunteerController(context *gin.Context)

func GetAdminInfo

func GetAdminInfo(context *gin.Context)

func GetJobs

func GetJobs(ctx *gin.Context)

func GetTeamInfoController

func GetTeamInfoController(context *gin.Context)

func ListTeamsController

func ListTeamsController(context *gin.Context)

func ListVolunteersController

func ListVolunteersController(context *gin.Context)

func LoginController

func LoginController(context *gin.Context)

func SearchVolunteerController

func SearchVolunteerController(context *gin.Context)

func UpdateJob

func UpdateJob(ctx *gin.Context)

func UpdateTeamController

func UpdateTeamController(context *gin.Context)

func UpdateVolunteerController

func UpdateVolunteerController(context *gin.Context)

Types

type AddVolunteerReq

type AddVolunteerReq struct {
	Name       string `json:"name"`
	Gender     bool   `json:"gender"`
	Job        int    `json:"job_id"`
	Tel        string `json:"tel"`
	Experience string `json:"experience"`
	Avatar     string `json:"avatar"`
	IDNumber   string `json:"id_number"`
	Employment string `json:"employment"`
	Status     int    `json:"status"`
}

type CreateTeamReq

type CreateTeamReq struct {
	Name         string `json:"name"`
	Organization string `json:"organization"`
	Code         string `json:"code"`
}

type LoginReq

type LoginReq struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type UpdateTeamReq

type UpdateTeamReq struct {
	Name         string `json:"name"`
	Organization string `json:"organization"`
	Code         string `json:"code"`
}

type UpdateVolunteerReq

type UpdateVolunteerReq struct {
	AddVolunteerReq

	TeamIDNew int `json:"team_id"`
}

Jump to

Keyboard shortcuts

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