enum

package
v0.0.0-...-314d69b Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

**************************************************

** @Desc : This file for 银行编码
** @Time : 19.12.4 10:42
** @Author : Joker
** @File : bank_info
** @Last Modified by : Joker
** @Last Modified time: 19.12.4 10:42
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for 配置常量
** @Time : 2019.04.01 11:45
** @Author : Joker
** @File : strings
** @Last Modified by : Joker
** @Last Modified time: 2019-11-29 11:05:48
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for 系统常量
** @Time : 19.11.30 11:28
** @Author : Joker
** @File : constant
** @Last Modified by : Joker
** @Last Modified time: 19.11.30 11:28
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for 支付方式
** @Time : 19.12.3 15:24
** @Author : Joker
** @File : pay_type
** @Last Modified by : Joker
** @Last Modified time: 19.12.3 15:24
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for 正则表达式
** @Time : 19.12.5 10:25
** @Author : Joker
** @File : regular_expression
** @Last Modified by : Joker
** @Last Modified time: 19.12.5 10:25
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for 状态常量
** @Time : 19.11.30 11:12
** @Author : Joker
** @File : status
** @Last Modified by : Joker
** @Last Modified time: 19.11.30 11:12
** @Software: GoLand

***************************************************

Index

Constants

View Source
const (
	ICBC   = "ICBC"
	ABC    = "ABC"
	BOC    = "BOC"
	CCB    = "CCB"
	BOCOM  = "BOCOM"
	CNCB   = "CNCB"
	CEB    = "CEB"
	HXB    = "HXB"
	CMBC   = "CMBC"
	GDB    = "GDB"
	CMB    = "CMB"
	CIB    = "CIB"
	SPDB   = "SPDB"
	PSBC   = "PSBC"
	PAB    = "PAB"
	NJCB   = "NJCB"
	NBCB   = "NBCB"
	WZCB   = "WZCB"
	CSCB   = "CSCB"
	CZCB   = "CZCB"
	CCQTGB = "CCQTGB"
	SHRCB  = "SHRCB"
	BJRCB  = "BJRCB"
	SDB    = "SDB"
)
View Source
const (
	ApiKey     = "fds4s3c02se6fseab1sba"
	TPL1       = 33236
	SendSmsUrl = "https://sms.yunpian.com/v2/sms/tpl_single_send.json"
)

短信配置 对接云片

View Source
const (
	SessionPath         = "./sys/temp"   // 保存路径
	SessionExpireTime   = 9600           // 有效时间,秒
	CookieExpireTime    = 1800           // 有效时间,秒
	SmsCookieExpireTime = 60             // 有效时间,秒
	LocalSessionName    = "JOKERSession" // 客户端session名称
)

session 配置

View Source
const (
	WithdrawalMaxAmount = 45000
	WithdrawalMinAmount = 2
	SettlementFee       = 2 // 提现单笔手续费
)

提现限制金额

View Source
const (
	UserSession = "business_user"
	UserCookie  = "user_cookie_md5"

	DoMainUrl = "/index/ui/"

	PublicAccount       = "1"               // 对公帐户
	PrivateDebitAccount = "0"               // 对私借记卡
	SettleSingle        = "SELFHELP_SETTLE" // 单笔代付

	ExcelModelName    = "batch_daifa_template.xlsx"
	ExcelModelPath    = "static/excel/batch_daifa_template.xlsx"
	ExcelPath         = "static/excel/temp/"
	ExcelDownloadPath = "static/excel/download/"
)
View Source
const (
	WEIXIN_SCAN  = "WEIXIN_SCAN"
	WEIXIN_H5    = "WEIXIN_H5"
	WEIXIN_SYT   = "WEIXIN_SYT"
	ALI_SCAN     = "ALI_SCAN"
	ALI_H5       = "ALI_H5"
	ALI_SYT      = "ALI_SYT"
	QQ_SCAN      = "QQ_SCAN"
	QQ_H5        = "QQ_H5"
	QQ_SYT       = "QQ_SYT"
	UNION_SCAN   = "UNION_SCAN"
	UNION_H5     = "UNION_H5"
	UNION_PC_WAP = "UNION_PC_WAP"
	UNION_SYT    = "UNION_SYT"
	UNION_FAST   = "UNION_FAST"
	BAIDU_SCAN   = "BAIDU_SCAN"
	BAIDU_H5     = "BAIDU_H5"
	BAIDU_SYT    = "BAIDU_SYT"
	JD_SCAN      = "JD_SCAN"
	JD_H5        = "JD_H5"
	JD_SYT       = "JD_SYT"
)
View Source
const (
	PasswordReg = `^[a-zA-Z]{1}([a-zA-Z0-9]|[._]){5,19}$`
	MoneyReg    = `^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$`
	MobileReg   = `^[1]([3-9])[0-9]{9}$`
)
View Source
const (
	FailedFlag    = -9
	FailedString  = "操作失败! "
	FailedToAdmin = "系统内部错误,请联系管理员!"
	SuccessFlag   = 9
	SuccessString = "操作成功! "
)

成功与否

View Source
const (
	ACTIVE   = "active"
	FREEZE   = "FREEZE"
	UNACTIVE = "unactive"
)

用户状态

View Source
const (
	SUCCESS         = "success"
	FAILED          = "failed"
	WAITING_PAYMENT = "wait"
)

充值订单状态

View Source
const (
	YES = "yes"
	NO  = "no"
)

投诉订单状态

View Source
const (
	WAIT_CONFIRM  = "payfor_confirm"
	REMITTING     = "payfor_solving"
	REMIT_FAIL    = "failed"
	BANK_DEALING  = "payfor_banking"
	REMIT_SUCCESS = "success"
)

结算订单状态

View Source
const (
	RECHARGE = "recharge"
	REFUND   = "refund"
	FREEZER  = "freeze"
	UNFREEZE = "unfreeze"
)

充值订单状态

View Source
const (
	PLUS_AMOUNT     = "plus_amount"
	SUB_AMOUNT      = "sub_amount"
	FREEZE_AMOUNT   = "freeze_amount"
	UNFREEZE_AMOUNT = "unfreeze_amount"
)

历史记录状态

Variables

This section is empty.

Functions

func GetBankInfo

func GetBankInfo() map[string]string

func GetComOrderStatus

func GetComOrderStatus() map[string]string

投诉订单状态

func GetHistoryStatus

func GetHistoryStatus() map[string]string

历史记录状态

func GetOrderStatus

func GetOrderStatus() map[string]string

充值订单状态

func GetPayType

func GetPayType() map[string]string

func GetRechargeStatus

func GetRechargeStatus() map[string]string

充值订单状态

func GetSettlementStatus

func GetSettlementStatus() map[string]string

结算订单状态

func GetUserStatus

func GetUserStatus() map[string]string

用户状态

Types

This section is empty.

Jump to

Keyboard shortcuts

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