datamodels

package
v0.0.0-...-18b5139 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrderWait    = iota
	OrderSuccess //1
	OrderFailed  //2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Order

type Order struct {
	ID          int64 `sql:"ID"`
	UserId      int64 `sql:"userID"`
	ProductId   int64 `sql:"productID"`
	OrderStatus int   `sql:"orderStatus"`
}

type Product

type Product struct {
	ID           int64  `json:"id" sql:"ID" study:"ID"`
	ProductName  string `json:"ProductName" sql:"productName" study:"ProductName"`
	ProductNum   int64  `json:"ProductNum" sql:"productNum" study:"ProductNum"`
	ProductImage string `json:"ProductImage" sql:"productImage" study:"ProductImage"`
	ProductUrl   string `json:"ProductUrl" sql:"productUrl" study:"ProductUrl"`
}

type User

type User struct {
	ID           int64  `json:"id" form:"ID" sql:"ID"`
	NickName     string `json:"nickName" form:"nickName" sql:"nickName"`
	UserName     string `json:"userName" form:"userName" sql:"userName"`
	HashPassword string `json:"-" form:"passWord" sql:"passWord"`
}

Jump to

Keyboard shortcuts

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