enum

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

*

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

*

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

*

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

Index

Constants

View Source
const (
	Unknown int32 = -1
	False   int32 = 0
	True    int32 = 1
)
View Source
const (
	// 未设置
	ReviewNotSet int32 = 0
	// 等待审核
	ReviewAwaiting int32 = 1
	// 审核失败
	ReviewReject int32 = 2
	// 审核成功
	ReviewPass int32 = 3
	// 已确认
	ReviewConfirm int32 = 4
	// 审核终止
	ReviewAbort int32 = 5
)
View Source
const (
	/** 未设置 */
	AmountBasisNotSet = 1
	/** 按金额 */
	AmountBasisByAmount = 2
	/** 按百分比 */
	AmountBasisByPercent = 3
)

金额依据

View Source
const (
	// 百分比比例放大倍数,保留3位小数;0.56 * 10000 = 560
	RATE_PERCENT float64 = 10000
	// 金额比例放大倍数;0.95 * 100 = 95
	RATE_AMOUNT float64 = 100
	// 折扣比例放大倍数; 0.9 * 1000 = 900
	RATE_DISCOUNT float64 = 1000
)
View Source
const (
	/****** 站点状态 *********/
	//合作商网站关闭
	PARTNER_SITE_CLOSED = 0
	//合作商网站正常
	PARTNER_SITE_NORMAL = 1
	/****** 积分返回类型 *********/
	INTEGRAL_TYPE_SYSTEM_PRESENT = 1
	INTEGRAL_TYPE_LOGIN_PRESENT  = 2
	INTEGRAL_TYPE_ORDER          = 3
	INTEGRAL_TYPE_BACK           = 4
	INTEGRAL_TYPE_EXCHANGE       = 12
)
View Source
const (
	PaymentOnlinePay      int32 = 1 // 线上付款
	PaymentOfflineCashPay int32 = 2 // 线下现金付款
	PaymentRemit          int32 = 3 // 转账汇款
)
View Source
const (
	ShopBusinessIn  = 1 // 营业中
	ShopBusinessOff = 0 // 停业中
)
View Source
const (

	// 可进行流程的状态
	ORDER_SETUP_STATE = "2,4"
)

Variables

View Source
var (
	PaymentOptionNames  = []string{"在线付款", "货到付款", "转账汇款"}
	PaymentHelpContents = []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{"停用", "营业中", "暂停营业"}
)
View Source
var ReviewTextMap = map[int32]string{
	ReviewNotSet:   "未提交",
	ReviewAwaiting: "待审核",
	ReviewReject:   "审核未通过",
	ReviewPass:     "审核通过",
	ReviewConfirm:  "已确认",
	ReviewAbort:    "已取消",
}

审核文本字典

Functions

func GetFrontShopStateName

func GetFrontShopStateName(state int32) string

func GetPaymentHelpContent

func GetPaymentHelpContent(opt int32) string

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

func GetPaymentName

func GetPaymentName(i int32) string

获取支付方式名称

func ReviewString

func ReviewString(r int32) string

审核状态名称

Types

type MchSettleMode

type MchSettleMode int

商户结算模式

const (
	// 按供货价销售额比例结算
	MchModeSettleByCost MchSettleMode = 1
	// 按销售额比例结算
	MchModeSettleByRate MchSettleMode = 2
	// 按单数结算
	MchModeSettleByOrderQuantity MchSettleMode = 3
)

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

Jump to

Keyboard shortcuts

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