model

package
v0.0.0-...-23d6c9e Latest Latest
Warning

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

Go to latest
Published: Aug 31, 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 Barang

type Barang struct {
	ID        string  `sql:"type:uuid" json:"id"`
	Nama      string  `sql:",unique" json:"nama"`
	Harga     float64 `json:"harga"`
	Stock     int     `json:"stock"`
	Vendor    string  `json:"vendor"`
	CreatedAt string  `json:"createdAt"`
	UpdatedAt string  `json:"updatedAt"`
}

type BarangBaru

type BarangBaru struct {
	Nama   string  `json:"nama"`
	Harga  float64 `json:"harga"`
	Stock  int     `json:"stock"`
	Vendor string  `json:"vendor"`
}

type EditUser

type EditUser struct {
	Username string `json:"username"`
	Nama     string `json:"nama"`
	Phone    string `json:"phone"`
	Email    string `json:"email"`
	Address  string `json:"address"`
	Latlng   string `json:"latlng"`
}

type EditUserPassword

type EditUserPassword struct {
	PasswordLama string `json:"passwordLama"`
	PasswordBaru string `json:"passwordBaru"`
}

type LoginUser

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

type RefreshTokenData

type RefreshTokenData struct {
	Token string `json:"token"`
}

type TokenData

type TokenData struct {
	Role     string `json:"role"`
	Username string `json:"username"`
}

type User

type User struct {
	ID          string `sql:"type:uuid" json:"id"`
	Username    string `sql:",unique" json:"username"`
	Nama        string `json:"nama"`
	Password    string `json:"password"`
	Role        string `json:"role"`
	Email       string `sql:",unique" json:"email"`
	Phone       string `sql:",unique" json:"phone"`
	Address     string `json:"address"`
	Latlng      string `json:"latlng"`
	CreatedAt   string `json:"createdAt"`
	UpdatedAt   string `json:"updatedAt"`
	LastLoginAt string `json:"lastLoginAt"`
}

type UserBaru

type UserBaru struct {
	Username string `json:"username"`
	Nama     string `json:"nama"`
	Password string `json:"password"`
	Phone    string `json:"phone"`
	Role     string `json:"role"`
	Email    string `json:"email"`
	Address  string `json:"address"`
	Latlng   string `json:"latlng"`
}

Jump to

Keyboard shortcuts

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