controller

package
v0.0.0-...-2a243e4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiResponse

type ApiResponse struct {
	Message      string       `json:"message"`
	Notification Notification `json:"notification,omitempty"`
	Error        string       `json:"error,omitempty"`
}

ApiResponse is the format to response from report Api

type Notification

type Notification struct {
	ValidList   []string `json:"to,omitempty"`
	InvalidList []string `json:"discarded,omitempty"`
}

Notification shows which emails was valid an invalid to send notification

type PingController

type PingController struct{}

PingController basic controller to check the app connection

func (*PingController) GetPing

func (r *PingController) GetPing(c *gin.Context)

type RecipeList

type RecipeList struct {
	EmailList []string `json:"email_list"`
}

RecipeList receives the information from the body for the request to create a report

type ReportController

type ReportController struct {
	PickerUseCase  application.IFilePickerUseCase
	ProcessUseCase application.IProcessTransactionsUseCase
}

func (*ReportController) PostReport

func (r *ReportController) PostReport(c *gin.Context)

Jump to

Keyboard shortcuts

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