entity

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//热销
	GoodsHotTag = "HOT"
	//新品
	GoodsNewTag  = "NEW"
	GoodsNoneTag = "NONE"
)
View Source
const (
	OrderStatusPAID       = "PAID"
	OrderStatusNonPayment = "NON_PAYMENT"
	OrderStatusShipment   = "SHIPMENT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin added in v1.6.5

type Admin struct {
	freedom.Entity
	object.Admin
}

管理员实体

func (*Admin) Identity added in v1.6.5

func (admin *Admin) Identity() string

Identity 唯一

type Cart

type Cart struct {
	freedom.Entity
	object.Cart
}

购物车项实体

func (*Cart) Identity

func (c *Cart) Identity() string

Identity 唯一

type Delivery added in v1.6.5

type Delivery struct {
	freedom.Entity
	object.Delivery
}

func (*Delivery) Identity added in v1.6.5

func (d *Delivery) Identity() string

Identity 唯一

type Goods

type Goods struct {
	freedom.Entity
	object.Goods
}

商品实体

func (*Goods) Identity

func (g *Goods) Identity() string

Identity 唯一

func (*Goods) MarkedTag

func (g *Goods) MarkedTag(tag string) error

MarkedTag 为商品打tag

type Order

type Order struct {
	freedom.Entity
	object.Order
	Details []*object.OrderDetail
}

订单实体

func (*Order) AddOrderDetal

func (o *Order) AddOrderDetal(detal *object.OrderDetail)

AddOrderDetal 增加订单详情

func (*Order) Identity

func (o *Order) Identity() string

Identity 唯一

func (*Order) IsPay added in v1.6.5

func (o *Order) IsPay() bool

IsPay 是否支付

func (*Order) Pay added in v1.6.1

func (o *Order) Pay()

Pay 实体触发付款

func (*Order) Shipment added in v1.6.5

func (o *Order) Shipment()

Shipment 实体触发发货

type User

type User struct {
	freedom.Entity
	object.User
}

用户实体

func (*User) ChangePassword

func (u *User) ChangePassword(newPassword, oldPassword string) error

ChangePassword 修改密码

func (*User) Identity

func (u *User) Identity() string

Identity 唯一

Jump to

Keyboard shortcuts

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