controller

package
v0.0.0-...-fe160b4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

controller/file_controller.go

controller/login_controller.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginUser

func LoginUser(c *gin.Context)

Types

type FileController

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

func NewFileController

func NewFileController(repo repository.FileRepository, s3Client *s3.Client) *FileController

func (*FileController) CreateFile

func (fc *FileController) CreateFile(c *gin.Context)

func (*FileController) DeleteFile

func (fc *FileController) DeleteFile(c *gin.Context)

func (*FileController) FindAll

func (fc *FileController) FindAll(c *gin.Context)

func (*FileController) FindByID

func (fc *FileController) FindByID(c *gin.Context)

func (*FileController) UpdateFile

func (fc *FileController) UpdateFile(c *gin.Context)

type LoginRequest

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

Jump to

Keyboard shortcuts

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