controller

package
v0.0.0-...-5675347 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	DB *gorm.DB
}

func New

func New(db *gorm.DB) Handler

func (Handler) CompleteIssue

func (h Handler) CompleteIssue(c *gin.Context)

func (Handler) CreateForm

func (h Handler) CreateForm(c *gin.Context)

func (Handler) CreateIssue

func (h Handler) CreateIssue(c *gin.Context)

Create Issue @Summary Create Electricty Issue @Param reqBody body models.Issue true "Example Request Body" @Accept json @Produce json @Router /issue [post]

func (Handler) CreateOffical

func (h Handler) CreateOffical(c *gin.Context)

Create User @Summary Create KSEB Employee @Param reqBody body models.Officials true "Example Request Body" @Accept json @Produce json @Router /officials [post]

func (Handler) DeleteAllIssue

func (h Handler) DeleteAllIssue(c *gin.Context)

func (Handler) GetAllForm

func (h Handler) GetAllForm(c *gin.Context)

func (Handler) GetAllIssues

func (h Handler) GetAllIssues(c *gin.Context)

Get all Issues @Summary Returns all the existin issues @Produce json @Router /issue [get]

func (Handler) GetAllPendingOfficials

func (h Handler) GetAllPendingOfficials(c *gin.Context)

Get Users @Summary return all verify pending users @Accept json @Produce json @Router /officials/pending [get]

func (Handler) GetAllVerifiedOfficials

func (h Handler) GetAllVerifiedOfficials(c *gin.Context)

Get Users @Summary return all verified users @Accept json @Produce json @Router /officials/all [get]

func (Handler) GetFormByID

func (h Handler) GetFormByID(c *gin.Context)

func (Handler) GetFormsByOfficialID

func (h Handler) GetFormsByOfficialID(c *gin.Context)

Fetch the forms associated with an particular Employee

func (Handler) GetIssueByID

func (h Handler) GetIssueByID(c *gin.Context)

Get Single Issue @Summary Returns A Single Issue With id @Produce json @Router /issue/:id [get]

func (Handler) GetIssueSatus

func (h Handler) GetIssueSatus(c *gin.Context)

func (Handler) GetIssueWithFormHandler

func (h Handler) GetIssueWithFormHandler(c *gin.Context)

func (Handler) GetOfficial

func (h Handler) GetOfficial(c *gin.Context)

Find User @Summary Check whether user exist in database or not by supertokens primary key @Accept json @Produce json @Router /officials [get]

func (Handler) GetOfficialByID

func (h Handler) GetOfficialByID(c *gin.Context)

func (Handler) SearchIssueByPostNumber

func (h Handler) SearchIssueByPostNumber(c *gin.Context)

Get Single Issue @Summary Returns A Single Issue With Post_id @Query post_id @Produce json @Router /issue [get]

func (Handler) SearchLinemanByName

func (h Handler) SearchLinemanByName(c *gin.Context)

Get the name of Line man

func (Handler) VerifyUser

func (h Handler) VerifyUser(c *gin.Context)

Jump to

Keyboard shortcuts

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