enum

package
v0.0.0-...-33ecd2b Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2015 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ z3q.net.
  • name : defined.go
  • author : jarryliu
  • date : 2015-08-13 08:55
  • description :
  • history :

*

  • Copyright 2015 @ z3q.net.
  • name : payment_opt
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ z3q.net.
  • name : shop
  • author : jarryliu
  • date : 2015-11-06 23:38
  • description :
  • history :

Index

Constants

View Source
const (
	TRUE  int = 1
	FALSE int = 0
)
View Source
const (
	// 已作废
	ORDER_CANCEL = 0
	// 订单待支付
	ORDER_WAIT_PAYMENT = 1
	// 订单待确认
	ORDER_WAIT_CONFIRM = 2
	// 订单待发货
	ORDER_WAIT_DELIVERY = 3
	// 订单配送中,等待收货
	ORDER_WAIT_RECEIVE = 4
	// 已收货
	ORDER_RECEIVED = 5
	// 订单完成
	ORDER_COMPLETED = 6

	// 可进行流程的状态
	ORDER_SETUP_STATE = "2,4"
)
View Source
const (
	//线下付款
	PAY_OFFLINE = 1

	//线上付款
	PAY_ONLINE = 2
)
View Source
const (
	/****** 站点状态 *********/
	//合作商网站关闭
	PARTNER_SITE_CLOSED = 0
	//合作商网站正常
	PARTNER_SITE_NORMAL = 1

	/****** 积分返回类型 *********/
	INTEGRAL_TYPE_SYSTEMSEND = 1
	INTEGRAL_TYPE_LOGINSEND  = 2
	INTEGRAL_TYPE_ORDER      = 3
	INTEGRAL_TYPE_BACK       = 4
	INTEGRAL_TYPE_EXCHANGE   = 12
)
View Source
const (
	PaymentOnlinePay      int = 1 // 线上付款
	PaymentOfflineCashPay     = 2 // 线下现金付款
	PaymentRemit          int = 3 // 转账汇款
)
View Source
const (
	ShopBusinessIn  = 1 // 营业中
	ShopBusinessOff = 0 // 停业中
)

Variables

View Source
var (
	PaymentOptionNames  []string = []string{"在线付款", "货到付款", "转账汇款"}
	PaymentHelpContents []string = []string{
		"<span style='color:red'>请完成最后一步,点击按钮在线支付订单。</span>",
		"请您在收到商品时候,现金支付,或使用POS机刷卡(不同地区可能不支持).",
		"请通过银行汇款至我们的银行账户后,并联系客服进行订单付款。详情点击<a target='_blank' href='/content/page?id=bank-transfer'>这里</a>查看。",
	}
)
View Source
var (
	FRONT_SHOP_STATE_TEXTS = [3]string{"停用", "营业中", "暂停营业"}
)

Functions

func GetFrontShopStateName

func GetFrontShopStateName(state int) string

func GetPaymentHelpContent

func GetPaymentHelpContent(opt int) string

获取支付帮助内容 todo: 需要商户可以自定义设置

func GetPaymentName

func GetPaymentName(i int) string

获取支付方式名称

Types

type OrderLogType

type OrderLogType int
const (
	ORDER_LOG_SETUP        OrderLogType = 1
	ORDER_LOG_CHANGE_PRICE OrderLogType = 2
)

func (OrderLogType) String

func (this OrderLogType) String() string

type OrderState

type OrderState int

func (OrderState) String

func (t OrderState) String() string

Jump to

Keyboard shortcuts

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