model

package
v0.0.0-...-cb9de60 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidReportingUserID = fmt.Errorf("the reporting user id is invalid")
	ErrInvalidReportedUserID  = fmt.Errorf("the reported user id is invalid")
	ErrReasonIsEmpty          = fmt.Errorf("report reason is empty")
	ErrCreatedAtIsEmpty       = fmt.Errorf("report createdAt id is empty")
)

Functions

This section is empty.

Types

type Report

type Report struct {
	ReportingUserID string `json:"reportingUserID"`
	ReportedUserID  string `json:"reportedUserID"`
	Reason          string `json:"reason"`
	CreatedAt       string `json:"createdAt"`
}

Report holds data about reported user.

func (Report) Validate

func (r Report) Validate() error

Validate validates ProfilePicture data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳