controllers

package
v0.0.0-...-cb028a2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController struct {
	AuthService *services.AuthService
	Config      *config.Config
}

func (*AuthController) Login

func (ac *AuthController) Login(c *gin.Context)

POST /auth/login

func (*AuthController) Logout

func (ac *AuthController) Logout(c *gin.Context)

POST /auth/logout For stateless JWT, you typically just ask the client to discard the token.

func (*AuthController) Register

func (ac *AuthController) Register(c *gin.Context)

POST /auth/register

type BugController

type BugController struct {
	BugService *services.BugService
}

func (*BugController) CreateBug

func (bc *BugController) CreateBug(c *gin.Context)

POST /projects/:projectId/bugs

func (*BugController) DeleteBug

func (bc *BugController) DeleteBug(c *gin.Context)

DELETE /bugs/:bugId

func (*BugController) GetBug

func (bc *BugController) GetBug(c *gin.Context)

GET /bugs/:bugId

func (*BugController) ListBugsAssigned

func (bc *BugController) ListBugsAssigned(c *gin.Context)

GET /bugs/assigned/:userId

func (*BugController) ListBugsCreated

func (bc *BugController) ListBugsCreated(c *gin.Context)

GET /bugs/created/:userId

func (*BugController) ListBugsInProject

func (bc *BugController) ListBugsInProject(c *gin.Context)

GET /projects/:projectId/bugs

func (*BugController) UpdateBug

func (bc *BugController) UpdateBug(c *gin.Context)

PUT /bugs/:bugId

type ProjectController

type ProjectController struct {
	ProjectService *services.ProjectService
}

func (*ProjectController) CreateProject

func (pc *ProjectController) CreateProject(c *gin.Context)

POST /projects

func (*ProjectController) DeleteProject

func (pc *ProjectController) DeleteProject(c *gin.Context)

DELETE /projects/:projectId

func (*ProjectController) GetProject

func (pc *ProjectController) GetProject(c *gin.Context)

GET /projects/:projectId

func (*ProjectController) ListTeamProjects

func (pc *ProjectController) ListTeamProjects(c *gin.Context)

GET /teams/:teamId/projects

func (*ProjectController) ListUserProjects

func (pc *ProjectController) ListUserProjects(c *gin.Context)

GET /users/:userId/projects

func (*ProjectController) UpdateProject

func (pc *ProjectController) UpdateProject(c *gin.Context)

PUT /projects/:projectId

type TeamController

type TeamController struct {
	TeamService *services.TeamService
}

func (*TeamController) CreateTeam

func (tc *TeamController) CreateTeam(c *gin.Context)

POST /teams

func (*TeamController) DeleteTeam

func (tc *TeamController) DeleteTeam(c *gin.Context)

DELETE /teams/:teamId

func (*TeamController) ListUserTeams

func (tc *TeamController) ListUserTeams(c *gin.Context)

GET /users/:userId/teams

func (*TeamController) RemoveUserFromTeam

func (tc *TeamController) RemoveUserFromTeam(c *gin.Context)

DELETE /teams/:teamId/members/:userId (leave team)

func (*TeamController) UpdateTeam

func (tc *TeamController) UpdateTeam(c *gin.Context)

PUT /teams/:teamId

type UserController

type UserController struct {
	UserService *services.UserService
}

func (*UserController) DeleteUser

func (uc *UserController) DeleteUser(c *gin.Context)

DELETE /users/:id

func (*UserController) GetUser

func (uc *UserController) GetUser(c *gin.Context)

GET /users/:identifier (could be ID, username, or email)

func (*UserController) ListUsers

func (uc *UserController) ListUsers(c *gin.Context)

GET /users

func (*UserController) UpdateUser

func (uc *UserController) UpdateUser(c *gin.Context)

PUT /users/:id

Jump to

Keyboard shortcuts

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