entity

package
v0.0.0-...-cca628e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 1 Imported by: 0

README

entity and value object

TODO

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Order

type Order struct {
	ID        int
	UserID    int64
	CreateAt  time.Time
	UpdatedAt time.Time

	Details []OrderDetail
}

Order is an entity

type OrderCreateInfo

type OrderCreateInfo struct {
	UserID  int
	AddrID  int
	SkuList []SkuItem
	Price   float64
}

type OrderDetail

type OrderDetail struct {
	SkuID int
	Count int
}

OrderDetail is a value object

type SkuItem

type SkuItem struct {
	SkuID string
	Count int
}

Jump to

Keyboard shortcuts

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