models

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 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 Message

type Message struct {
	ID        int64     `json:"id"`
	UserId    int64     `json:"userid"`
	UserName  string    `json:"username"`
	Hash      string    `json:"hash"`
	Message   string    `json:"message"`
	Deleted   bool      `json:"deleted"`
	DeletedAt time.Time `json:"deleted_at"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

Message struct

type Response

type Response struct {
	Success bool   `json:"success"`
	Data    string `json:"data"`
}

Response struct

type URL

type URL struct {
	Id   int64  `json:"id"`
	URL  string `json:"url"`
	Hash string `json:"hash"`
}

URL struct

type User

type User struct {
	Id        int64     `json:"id"`
	UserName  string    `json:"username"`
	Name      string    `json:"name"`
	Email     string    `json:"email"`
	Hash      string    `json:"hash"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

User struct

Jump to

Keyboard shortcuts

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