typesjson

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductGroupForBuyer

type ProductGroupForBuyer struct {
	Data  ProductGroupForBuyerData `json:"data"`
	Error string                   `json:"error,omitempty"`
}

type ProductGroupForBuyerData

type ProductGroupForBuyerData struct {
	CalculatedTotal int    `json:"calculatedTotal"`
	InProgress      bool   `json:"inProgress"`
	OrderHashId     string `json:"orderHashId"`
	Originator      string `json:"originator"`
	ShopName        string `json:"shopName"`
	ShopTelNo       string `json:"shopTelNo"`
	Size            int    `json:"size"`
	Total           int    `json:"total"`
	TotalBuyer      int    `json:"totalBuyer"`

	Rows []ProductGroupForBuyerRow `json:"rows"`
}

type ProductGroupForBuyerItem

type ProductGroupForBuyerItem struct {
	Cancelable   bool   `json:"cancelable"`
	Comment      string `json:"comment"`
	FullName     string `json:"fullName"`
	MergedKey    string `json:"mergedKey"`
	MergedName   string `json:"mergedName"`
	OrderItemIds []int  `json:"orderItemIds"`
	Paid         bool   `json:"paid"`
	Shipped      bool   `json:"shipped"`
	Size         int    `json:"size"`
	Total        int    `json:"total"`
}

type ProductGroupForBuyerRow

type ProductGroupForBuyerRow struct {
	CalculatedTotal      int    `json:"calculatedTotal"`
	FirstCalculatedPrice int    `json:"firstCalculatedPrice"`
	FirstPrice           int    `json:"firstPrice"`
	MergedKey            string `json:"mergedKey"`
	Name                 string `json:"name"`
	Size                 int    `json:"size"`
	Total                int    `json:"total"`

	Items []ProductGroupForBuyerItem `json:"items"`
}

type Progress

type Progress struct {
	Data  []ProgressItem `json:"data"`
	Error string         `json:"error,omitempty"`
}

type ProgressItem

type ProgressItem struct {
	Announcement             string        `json:"announcement"`
	ExpireDate               sql.NullTime  `json:"expireDate"`
	GroupId                  int           `json:"groupId"`
	InProgress               bool          `json:"inProgress"`
	MaxQty                   int           `json:"maxQty"`
	MaxTotalCost             int           `json:"maxTotalCost"`
	OrderHashId              string        `json:"orderHashId"`
	Originator               string        `json:"originator"`
	PasswordLocked           bool          `json:"passwordLocked"`
	RemainSecondBeforeExpire time.Duration `json:"remainSecondBeforeExpire"`
	ShopName                 string        `json:"shopName"`
	Size                     int           `json:"size"`
	Total                    int           `json:"total"`
	Unlockable               bool          `json:"unlockable"`
}

func (*ProgressItem) GetPath

func (item *ProgressItem) GetPath() string

func (*ProgressItem) IsExpiring

func (item *ProgressItem) IsExpiring(priorTime time.Duration) bool

func (*ProgressItem) UnmarshalJSON

func (item *ProgressItem) UnmarshalJSON(data []byte) error

type Recent

type Recent struct {
	Data  []interface{} `json:"data"`
	Error string        `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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