model

package
v0.0.0-...-6d92e63 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: MIT Imports: 0 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Promotion

type Promotion struct {
	ID          int      `json:"id" db:"id"`
	Code        string   `json:"code" db:"code"`
	Name        string   `json:"name" db:"name"`
	Priority    int      `json:"priority" db:"priority"`
	Exclusive   bool     `json:"exclusive" db:"exclusive"`
	Used        int      `json:"used" db:"used"`
	CouponBased bool     `json:"couponBased" db:"coupon_based"`
	Rules       []string `json:"rules" db:"rules"`
	Actions     []string `json:"actions" db:"actions"`
	CreatedAt   string   `json:"createdAt" db:"created_at"`
	UpdatedAt   string   `json:"updatedAt" db:"updated_at"`
	Channels    []string `json:"channels" db:"channels"`
	Links       struct {
		Self struct {
			Href string `json:"href" db:"href"`
		} `json:"self" db:"self"`
	} `json:"_links" db:"_links"`
}

Promotion is the model

Jump to

Keyboard shortcuts

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