models

package
v0.0.0-...-6720ee0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddNewDistrict

type AddNewDistrict struct {
	StateID  int    `json:"state_id"`
	District string `json:"district"`
}

type AddNewState

type AddNewState struct {
	State string `json:"state"`
}

type AddServicesToACategory

type AddServicesToACategory struct {
	CategoryID  int    `json:"category_id"`
	ServiceName string `json:"service"`
}

type AdminDetailsResponse

type AdminDetailsResponse struct {
	ID        int    `json:"id"`
	Name      string `json:"name" `
	Email     string `json:"email" `
	Previlege string `json:"previlege"`
}

type AdminLogin

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

type AuthCustomClaims

type AuthCustomClaims struct {
	Id    int    `json:"id"`
	Email string `json:"email"`
	Role  string `json:"role"`
	jwt.StandardClaims
}

type BidDetails

type BidDetails struct {
	ID          int     `json:"id"`
	Provider    string  `json:"provider"`
	Estimate    float64 `json:"estimate"`
	Description string  `json:"description"`
}

type CreateCategory

type CreateCategory struct {
	Category string `json:"category"`
}

type DoubleTokens

type DoubleTokens struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

type GetLocations

type GetLocations struct {
	ID       int    `json:"id"`
	District string `json:"district"`
	State    string `json:"state"`
}

type GetServices

type GetServices struct {
	ID          int    `json:"id"`
	ServiceName string `json:"service"`
	Category_id int    `json:"category_id"`
}

type Login

type Login struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type MinWorkDetails

type MinWorkDetails struct {
	ID         int    `json:"id"`
	Street     string `json:"street"`
	District   string `json:"district" `
	State      string `json:"state" `
	Profession string `json:"profession"`
	User       string `json:"user_name"`
	Provider   string `json:"provider"`
	WorkStatus string `json:"work_status" `
}

type PlaceBid

type PlaceBid struct {
	WorkID      int     `json:"-"`
	ProID       int     `json:"-"`
	Estimate    float64 `json:"estimate"`
	Description string  `json:"description"`
}

type ProviderDetails

type ProviderDetails struct {
	ID         int    `json:"id"`
	Name       string `json:"name"`
	Email      string `json:"email"`
	Phone      string `json:"phone"`
	IsVerified bool   `json:"is_verified"`
}

type ProviderDetailsForUser

type ProviderDetailsForUser struct {
	ID            int    `json:"id"`
	Name          string `json:"name"`
	Email         string `json:"email"`
	Phone         string `json:"phone"`
	AverageRating int    `json:"rating"`
}

type ProviderRegister

type ProviderRegister struct {
	Name       string                `json:"name"`
	Email      string                `json:"email"`
	Password   string                `json:"password"`
	RePassword string                `json:"re-password"`
	Phone      string                `json:"phone+6+"`
	Document   *multipart.FileHeader `json:"document"`
}

type RatingModel

type RatingModel struct {
	Rating   int    `json:"rating"`
	Feedback string `json:"feedback"`
}

type UserDetails

type UserDetails struct {
	ID        int    `json:"id"`
	Name      string `json:"name"`
	Email     string `json:"email" `
	Phone     string `json:"phone" `
	IsBlocked bool   `json:"is_blocked"`
}

type UserSignup

type UserSignup struct {
	Name            string `json:"name"`
	Email           string `json:"email" validate:"email"`
	Phone           string `json:"phone"`
	Password        string `json:"password"`
	ConfirmPassword string `json:"confirmpassword"`
}

type Verification

type Verification struct {
	ID   int
	Name string
}

type VerificationDetails

type VerificationDetails struct {
	ID            int      `json:"id"`
	Name          string   `json:"name"`
	DocumentImage string   `json:"document_images"`
	Services      []string `json:"services"`
}

type WorkDetails

type WorkDetails struct {
	ID            int      `json:"id"`
	Street        string   `json:"street"`
	District      string   `json:"district" `
	State         string   `json:"state" `
	Profession    string   `json:"profession"`
	User          string   `json:"user_name"`
	Provider      string   `json:"provider"`
	Images        []string `json:"images" `
	Participation bool     `json:"participation"`
	WorkStatus    string   `json:"work_status" `
}

Jump to

Keyboard shortcuts

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