dtos

package
v0.0.0-...-bb1b5f2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	TrackingID string                `json:"tracking_id"`
	Status     models.FileStatusType `json:"status"`
	CreatedAt  time.Time             `json:"created_at"`
	TeamName   string                `json:"team_name,omitempty"`
	RoomNumber string                `json:"room_number,omitempty"`
}

FileInfo api resp

type GoogleUserData

type GoogleUserData struct {
	Name    string `json:"name"`
	Email   string `json:"email"`
	Picture string `json:"picture"`
}

type ListFilesInfo

type ListFilesInfo struct {
	TrackingID string    `json:"tracking_id"`
	Status     uint      `json:"status"`
	CreatedAt  time.Time `json:"created_at"`
	TeamName   string    `json:"team_name"`
	RoomNumber string    `json:"room_number"`
}

ListFilesInfo db resp

type ListFilesResp

type ListFilesResp struct {
	Files      []FileInfo `json:"files"`
	TotalPages int64      `json:"total_pages"`
}

ListFilesResp api resp

type MinimalUserInfo

type MinimalUserInfo struct {
	Username                string `json:"username"`
	Role                    uint   `json:"role"`
	TeamName                string `json:"team_name"`
	RoomNumber              string `json:"room_number"`
	AvailablePrintPageCount int    `json:"available_print_page_count"`
}

type UserFileListResp

type UserFileListResp struct {
	Files      []models.File `json:"files"`
	TotalFiles int64         `json:"total_files"`
}

Jump to

Keyboard shortcuts

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