models

package
v0.0.0-...-f6e0bc2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 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 Contact

type Contact struct {
	ID         int    `json:"id"`
	Name       string `json:"name"`
	Email      string `json:"email"`
	ProfileImg string `json:"profile_img"`
	About      string `json:"about"`
}

type Conversation

type Conversation struct {
	ID         int    `json:"id"`
	SenderID   int    `json:"sender_id"`
	ReceiverID int    `json:"receiver_id"`
	Message    string `json:"message"`
	CreatedAt  string `json:"created_at"`
}

type LatestMessages

type LatestMessages struct {
	ID         int    `json:"id"`
	ReceiverID int    `json:"receiver_id"`
	SenderiID  int    `json:"sender_id"`
	SenderName string `json:"sender_name"`
	ProfileImg string `json:"profile_img"`
	Message    string `json:"message"`
	CreatedAt  string `json:"created_at"`
}

type Login

type Login struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type Register

type Register struct {
	Name       string `json:"name"`
	Email      string `json:"email"`
	Password   string `json:"password"`
	ProfileImg string `json:"profile_img"`
	About      string `json:"about"`
}

type User

type User struct {
	ID         int    `json:"id"`
	Name       string `json:"name"`
	Email      string `json:"email"`
	Password   string `json:"-"` // remove password from json response
	ProfileImg string `json:"profile_img"`
	About      string `json:"about"`
	CreatedAt  string `json:"created_at"`
	UpdatedAt  string `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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