model

package
v0.0.0-...-71b1d82 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message,omitempty"`
}

type FileContent

type FileContent struct {
	FileId    string     `json:"fileId,omitempty"`
	Filename  string     `json:"filename,omitempty"`
	Size      int64      `json:"size,omitempty"`
	Owner     string     `json:"owner,omitempty"`
	CreatedAt time.Time  `json:"createdAt,omitempty"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	CreatedBy string     `json:"createdBy,omitempty"`
	UpdatedBy *string    `json:"updatedBy,omitempty"`
}

type FilePageResponse

type FilePageResponse struct {
	Size          int            `json:"size"`
	TotalElements int            `json:"totalElements"`
	Page          int            `json:"page"`
	Next          string         `json:"next"`
	Content       []*FileContent `json:"content"`
}

type UpdateFileRequest

type UpdateFileRequest struct {
	Filename string `json:"filename,omitempty"`
	Secret   bool   `json:"secret"`
}

type UploadSuccessResponse

type UploadSuccessResponse struct {
	FileId   string `json:"fileId,omitempty"`
	Filename string `json:"filename,omitempty"`
	OwnerId  string `json:"ownerId,omitempty"`
}

Jump to

Keyboard shortcuts

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