model

package
v0.0.0-...-7bf43a4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseVipOrder

type CloseVipOrder struct {
	OrderId int64 `json:"order_id"`
}

* 会员订单job模型

type CouponInfo

type CouponInfo struct {
	UserCoupon
	CName         string  `json:"c_name"`
	CValue        float32 `json:"c_value"`
	CMinAmount    float32 `json:"c_min_amount"`
	CSuitable     string  `json:"c_suitable"`
	CNotBefore    string  `json:"c_not_before"`
	CNotAfter     string  `json:"c_not_after"`
	CEffectiveDay int     `json:"c_effective_day"`
	CEnabled      int     `json:"c_enabled"`
}

type Extra

type Extra struct {
	ExpiredReason string `json:"expired_reason"`
}

* 拓展字段

type JsonTime

type JsonTime time.Time

* 时间格式化

func (*JsonTime) String

func (this *JsonTime) String() string

* 返回格式化时间字符串

type OrderModel

type OrderModel struct {
	ID                   int       `json:"id"`
	No                   string    `json:"no"`
	Amount               float64   `json:"amount"`
	DiscountAmount       float64   `json:"discount_amount"`
	PaymentOrderNo       string    `json:"payment_order_no"`
	PaymentAmount        float64   `json:"payment_amount"`
	ReceiptAmount        float64   `json:"receipt_amount"`
	PaymentMethod        int       `json:"payment_method"`
	PaymentStatus        int       `json:"payment_status"`
	PaymentExpiredAt     time.Time `json:"payment_expired_at"`
	PaymentAt            time.Time `json:"payment_at"`
	Source               string    `json:"source"`
	Status               int       `json:"status"`
	Reviewed             int       `json:"reviewed,omitempty"`
	RefundReason         string    `json:"refund_reason,omitempty"`
	RefundRequestAt      time.Time `json:"refund_request_at,omitempty"`
	RefundDisagreeReason string    `json:"refund_disagree_reason,omitempty"`
	RefundStatus         string    `json:"refund_status,omitempty"`
	RefundNo             string    `json:"refund_no,omitempty"`
	RefundAt             time.Time `json:"refund_at,omitempty"`
	Extra                string    `json:"extra,omitempty"`
	UserRemark           string    `json:"user_remark,omitempty"`
	AdminRemark          string    `json:"admin_remark,omitempty"`
	CreatedAt            time.Time `json:"created_at"`
	UpdatedAt            time.Time `json:"updated_at"`
	UserId               int64     `json:"user_id"`
	UserCouponId         int       `json:"user_coupon_id"`
	InvoiceId            int64     `json:"invoice_id,omitempty"`
	PackageId            int       `json:"package_id,omitempty"`
	ChannelId            int       `json:"channel_id,omitempty"`
}

type UserCoupon

type UserCoupon struct {
	ID            int64  `json:"id"`
	Code          string `json:"code"`
	Suitable      string `json:"suitable"`
	SuitableValue int    `json:"suitable_value"`
	Status        int    `json:"status"`
	UsedAt        string `json:"used_at"`
	CreatedAt     string `json:"created_at"`
	UpdatedAt     string `json:"updated_at"`
	UserId        int    `json:"user_id"`
	CouponId      int    `json:"coupon_id"`
}

type VipOrderModel

type VipOrderModel struct {
	ID                   int       `json:"id"`
	No                   string    `json:"no"`
	Amount               float64   `json:"amount"`
	DiscountAmount       float64   `json:"discount_amount"`
	PaymentOrderNo       string    `json:"payment_order_no"`
	PaymentAmount        float64   `json:"payment_amount"`
	ReceiptAmount        float64   `json:"receipt_amount"`
	PaymentMethod        int       `json:"payment_method"`
	PaymentStatus        int       `json:"payment_status"`
	PaymentExpiredAt     time.Time `json:"payment_expired_at"`
	PaymentAt            time.Time `json:"payment_at"`
	Source               string    `json:"source"`
	Status               int       `json:"status"`
	Reviewed             int       `json:"reviewed,omitempty"`
	RefundReason         string    `json:"refund_reason,omitempty"`
	RefundRequestAt      time.Time `json:"refund_request_at,omitempty"`
	RefundDisagreeReason string    `json:"refund_disagree_reason,omitempty"`
	RefundStatus         string    `json:"refund_status,omitempty"`
	RefundNo             string    `json:"refund_no,omitempty"`
	RefundAt             time.Time `json:"refund_at,omitempty"`
	Extra                string    `json:"extra,omitempty"`
	UserRemark           string    `json:"user_remark,omitempty"`
	AdminRemark          string    `json:"admin_remark,omitempty"`
	CreatedAt            time.Time `json:"created_at"`
	UpdatedAt            time.Time `json:"updated_at"`
	UserId               int64     `json:"user_id"`
	VipId                int64     `json:"vip_id"`
	InvoiceId            int64     `json:"invoice_id,omitempty"`
}

Jump to

Keyboard shortcuts

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