handler

package
v0.0.0-...-608fa39 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApprovedJobsHandler

func ApprovedJobsHandler(ctx *gin.Context)

func CreateJobsHandler

func CreateJobsHandler(ctx *gin.Context)

func DeleteJobsHandler

func DeleteJobsHandler(ctx *gin.Context)

func InitializeHandler

func InitializeHandler()

func ListJobsHandler

func ListJobsHandler(ctx *gin.Context)

func LoginHandler

func LoginHandler(ctx *gin.Context)

func ShowJobsHandler

func ShowJobsHandler(ctx *gin.Context)

func UserCheckHandler

func UserCheckHandler(ctx *gin.Context)

Types

type ApprovedJobsRequest

type ApprovedJobsRequest struct {
	Approved bool `json:"approved"`
}

type CreateJobsRequest

type CreateJobsRequest struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	Role        string `json:"role"`
	Company     string `json:"company"`
	Location    string `json:"location"`
	Remote      bool   `json:"remote"`
	Link        string `json:"link"`
	Experience  string `json:"experience"`
	Salary      string `json:"salary"`
	Approved    bool   `json:"approved"`
}

CreateJobs

func (*CreateJobsRequest) Validate

func (r *CreateJobsRequest) Validate() error

type CreateJobsResponse

type CreateJobsResponse struct {
	Message string               `json:"message"`
	Data    schemas.JobsResponse `json:"data"`
}

type ErrorResponse

type ErrorResponse struct {
	Message   string `json:"message"`
	ErrorCode string `json:"errorCode"`
}

type LoginRequest

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

type UserValidationResponse

type UserValidationResponse struct {
	Username string `json:"username"`
	Role     string `json:"role"`
}

Jump to

Keyboard shortcuts

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