sale

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coupon

type Coupon struct {
	ID       string `thrift:"ID,1,required" frugal:"1,required,string" json:"ID"`
	Rule     string `thrift:"Rule,2,required" frugal:"2,required,string" json:"Rule"`
	Discount int64  `thrift:"Discount,3,required" frugal:"3,required,i64" json:"Discount"`
}

type Order

type Order struct {
	ID          string      `thrift:"ID,1,required" frugal:"1,required,string" json:"ID"`
	UserID      string      `thrift:"UserID,2,required" frugal:"2,required,string" json:"UserID"`
	TotalAmount int64       `thrift:"TotalAmount,3,required" frugal:"3,required,i64" json:"TotalAmount"`
	Items       []*SaleItem `thrift:"Items,4" frugal:"4,default,list<SaleItem>" json:"Items"`
	Coupons     []*Coupon   `thrift:"Coupons,5" frugal:"5,default,list<Coupon>" json:"Coupons"`
}

type SaleItem

type SaleItem struct {
	Code  string `thrift:"Code,1,required" frugal:"1,required,string" json:"Code"`
	Name  string `thrift:"Name,2,required" frugal:"2,required,string" json:"Name"`
	Price int64  `thrift:"Price,3,required" frugal:"3,required,i64" json:"Price"`
	Count int32  `thrift:"Count,4,required" frugal:"4,required,i32" json:"Count"`
}

type SimpleOrder

type SimpleOrder struct {
	ID          string `thrift:"ID,1,required" frugal:"1,required,string" json:"ID"`
	UserID      string `thrift:"UserID,2,required" frugal:"2,required,string" json:"UserID"`
	TotalAmount int64  `thrift:"TotalAmount,3,required" frugal:"3,required,i64" json:"TotalAmount"`
}

Jump to

Keyboard shortcuts

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