models

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 0 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 {
	Success bool   `json:"success"`
	Msg     string `json:"msg,omitempty"`
	Data    any    `json:"data"`
	Code    int    `json:"code"`
	Title   string `json:"title,omitempty"`
}

func NewMsgResponse

func NewMsgResponse(msg string) *ApiResponse

type TitledError

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

func NewTitledError

func NewTitledError(title, content string) *TitledError

func (TitledError) Error

func (t TitledError) Error() string

func (TitledError) Title

func (t TitledError) Title() string

Jump to

Keyboard shortcuts

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