model

package
v0.0.0-...-595e988 Latest Latest
Warning

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

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

type Goods struct {
	Id         int     `json:"id"`
	Label      string  `json:"label"`
	Price      float32 `json:"price"`
	Desc       string  `json:"desc"`
	ImageLink  string  `json:"imagelink"`
	CategoryID int     `json:"idcat"`
	Tags       []int   `json:"arrtag"`
}

type List

type List struct {
	Id    int    `json:"id"`
	Label string `json:"label"`
	Link  string `json:"link"`
}

type User

type User struct {
	Id       int    `json:"id"`
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email"`
	Admin    bool
	Cart     []int `json:"cart"`
}

func (*User) CheckPassword

func (user *User) CheckPassword(providedPassword string) error

func (*User) HashPassword

func (user *User) HashPassword(password string) error

Jump to

Keyboard shortcuts

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