v1

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClubCreatePostData

type ClubCreatePostData struct {
	Name             string                         `json:"name"`
	Description      string                         `json:"description"`
	ShortDescription string                         `json:"short_description"`
	Campus           uint8                          `json:"campus"`
	ClubType         uint8                          `json:"club_type"`
	ClubRemark       *string                        `json:"club_remark"`
	ScheduleRemark   *string                        `json:"schedule_remark"`
	Contents         []models.ContentRequest        `json:"contents"`
	Links            []models.LinkRequest           `json:"links"`
	Schedules        []models.ScheduleRequest       `json:"schedules"`
	Achievements     []models.AchievementRequest    `json:"achievements"`
	Images           []models.ImageRequest          `json:"images"`
	Videos           []models.VideoRequest          `json:"videos"`
	ActivityDetails  []models.ActivityDetailRequest `json:"activity_details"`
}

type ClubDescriptionPostData

type ClubDescriptionPostData struct {
	Description string `json:"description"`
}

type ClubDescriptionResponse

type ClubDescriptionResponse struct {
	Description string `json:"description"`
}

type FavPostData

type FavPostData struct {
	ClubUUID string `json:"club_uuid"`
}

type GUserCreatePostData

type GUserCreatePostData struct {
	Email string `json:"email"`
	Name  string `json:"name"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) CreateClub

func (h *Handler) CreateClub() gin.HandlerFunc

func (*Handler) CreateFavoriteClub

func (h *Handler) CreateFavoriteClub() gin.HandlerFunc

func (*Handler) CreateGeneralUser

func (h *Handler) CreateGeneralUser() gin.HandlerFunc

func (*Handler) DeleteClub

func (h *Handler) DeleteClub() gin.HandlerFunc

func (*Handler) DeleteClubThumbnail

func (h *Handler) DeleteClubThumbnail() gin.HandlerFunc

func (*Handler) DeleteImage

func (h *Handler) DeleteImage() gin.HandlerFunc

func (*Handler) GetAllClub

func (h *Handler) GetAllClub() gin.HandlerFunc

func (*Handler) GetClubAchievement

func (h *Handler) GetClubAchievement() gin.HandlerFunc

func (*Handler) GetClubActivityDetails

func (h *Handler) GetClubActivityDetails() gin.HandlerFunc

func (*Handler) GetClubContent

func (h *Handler) GetClubContent() gin.HandlerFunc

func (*Handler) GetClubDescription

func (h *Handler) GetClubDescription() gin.HandlerFunc

func (*Handler) GetClubFromSlug

func (h *Handler) GetClubFromSlug() gin.HandlerFunc

func (*Handler) GetClubFromUUID

func (h *Handler) GetClubFromUUID() gin.HandlerFunc

func (*Handler) GetClubImages

func (h *Handler) GetClubImages() gin.HandlerFunc
func (h *Handler) GetClubLinks() gin.HandlerFunc

func (*Handler) GetClubSchedule

func (h *Handler) GetClubSchedule() gin.HandlerFunc

func (*Handler) GetClubThumbnail

func (h *Handler) GetClubThumbnail() gin.HandlerFunc

func (*Handler) GetClubVideo

func (h *Handler) GetClubVideo() gin.HandlerFunc

func (*Handler) GetFavoriteClubs

func (h *Handler) GetFavoriteClubs() gin.HandlerFunc

func (*Handler) GetImages

func (h *Handler) GetImages() gin.HandlerFunc

func (*Handler) GetIsFavoriteClub

func (h *Handler) GetIsFavoriteClub() gin.HandlerFunc

func (*Handler) GetSearch added in v0.0.3

func (h *Handler) GetSearch() gin.HandlerFunc

func (*Handler) GetSpecificImage

func (h *Handler) GetSpecificImage() gin.HandlerFunc

func (*Handler) GetThumbnail

func (h *Handler) GetThumbnail() gin.HandlerFunc

func (*Handler) GetUser

func (h *Handler) GetUser() gin.HandlerFunc

func (*Handler) GetUserUUID

func (h *Handler) GetUserUUID() gin.HandlerFunc

func (*Handler) UnFavoriteClub

func (h *Handler) UnFavoriteClub() gin.HandlerFunc

func (*Handler) UpdateClub

func (h *Handler) UpdateClub() gin.HandlerFunc

func (*Handler) UpdateClubAchievement

func (h *Handler) UpdateClubAchievement() gin.HandlerFunc

func (*Handler) UpdateClubActivityDetails

func (h *Handler) UpdateClubActivityDetails() gin.HandlerFunc

func (*Handler) UpdateClubContent

func (h *Handler) UpdateClubContent() gin.HandlerFunc

func (*Handler) UpdateClubDescription

func (h *Handler) UpdateClubDescription() gin.HandlerFunc

func (*Handler) UpdateClubImages

func (h *Handler) UpdateClubImages() gin.HandlerFunc
func (h *Handler) UpdateClubLinks() gin.HandlerFunc

func (*Handler) UpdateClubSchedule

func (h *Handler) UpdateClubSchedule() gin.HandlerFunc

func (*Handler) UpdateClubThumbnail

func (h *Handler) UpdateClubThumbnail() gin.HandlerFunc

func (*Handler) UpdateClubVideo

func (h *Handler) UpdateClubVideo() gin.HandlerFunc

func (*Handler) UpdateUser

func (h *Handler) UpdateUser() gin.HandlerFunc

func (*Handler) UploadImage

func (h *Handler) UploadImage() gin.HandlerFunc

type IsFavResponse

type IsFavResponse struct {
	Status bool `json:"status"`
}

type Router

type Router struct {
	// contains filtered or unexported fields
}

func NewV1Router

func NewV1Router(rg *gin.RouterGroup, config *config.V1Config, logger *zap.Logger, repo repos.IRepository, middleware *middlewares.Middleware) *Router

func (*Router) AddRouter

func (r *Router) AddRouter()

type SearchContent added in v0.0.3

type SearchContent struct {
	Content string `form:"content" binding:"required"`
}

type UnFavPostData

type UnFavPostData struct {
	ClubUUID string `json:"club_uuid"`
}

type UpdatePostData

type UpdatePostData struct {
	Description      string                         `json:"description"`
	ShortDescription string                         `json:"short_description"`
	ClubRemark       *string                        `json:"club_remark"`
	ScheduleRemark   *string                        `json:"schedule_remark"`
	Contents         []models.ContentRequest        `json:"contents"`
	Links            []models.LinkRequest           `json:"links"`
	Schedules        []models.ScheduleRequest       `json:"schedules"`
	Achievements     []models.AchievementRequest    `json:"achievements"`
	Images           []models.ImageRequest          `json:"images"`
	Videos           []models.VideoRequest          `json:"videos"`
	ActivityDetails  []models.ActivityDetailRequest `json:"activity_details"`
}

type UserUpdatePostData

type UserUpdatePostData struct {
	Name     string  `json:"name"`
	Role     string  `json:"role"`
	ClubUUID *string `json:"club_uuid"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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