consts.go 3.12 KB
package conf

import "time"

//token过期时间
const TokenExpireDuration = time.Hour * 24 * 7

//Redis过期时间
const RedisExpireDuration = time.Minute*10 //默认(短信验证码)
const RedisExpireDurationExpress = time.Minute*120 //查看物流

//Redis前缀
const RedisPrefix = "system_pay_"

const (
	AesKey = "dbcaespassword01"
	SmsAes = "dbcaespassword01"
)

//采购订单状态
//const (
//	PURCHASE_ORDER_SUBMITTED = 10 // 待发货
//	PURCHASE_ORDER_PENDING = 11 // 待付款(已发货)
//	PURCHASE_ORDER_ACCEPTED = 20 // 已付款
//	PURCHASE_ORDER_CHARGED = 21 // 已挂账
//	PURCHASE_ORDER_FINISHED = 40 // 已结算(平台)
//	PURCHASE_ORDER_EXAMINE = 60 // 已核查(卖家)
//	PURCHASE_ORDER_CANCELED = 0 // 已取消
//)
//
//const (
//	purchase_order_submitted = "待发货"
//	purchase_order_pending = "待付款"
//	purchase_order_accepted = "已付款"
//	purchase_order_charged = "已挂账"
//	purchase_order_finished = "已结算"
//	purchase_order_examined = "已核查"
//	purchase_order_canceled = "已取消"
//)

//const (
//	// BILL_COMPLETE_STATUS 账单完成状态
//	BILL_COMPLETE_STATUS = "1, 4, 6, 7"
//	// 部分退款
//	BILL_COMPLETE_STATUS_REBATES = "1, 4, 6, 7,2"
//)

//const (
//	// 时间格式化
//	TIME_FMT_DAY     = "2006-01-02"
//	TIME_FMT_DAY_SQL = "'%Y-%m-%d'"
//)

// PhonePrefix 号码前缀
//var PhonePrefix = map[int]string{
//	1: "86",
//	2: "60",
//}

// PayType 支付方式
//var PayType = map[int]string{
//	1:  "现金",
//	2:  "银行卡",
//	3:  "支付宝",
//	4:  "微信支付",
//	//5:  "预收款",
//	//6:  "预付款",
//	7:  "押金",
//	8:  "会员卡余额",
//	9:  "会员卡赠额",
//	10: "团购",
//}

// PayTypeZhCN 支付方式
//var PayTypeZhCN = map[int]int{
//	1: 0,
//	2: 2,
//	3: 1,
//}



// SecondaryCardLineChartList 次卡折线图
//var SecondaryCardLineChartList = map[int]int{
//	//1: 1306,
//	2: 1307,
//	3: 1308,
//	4: 1309,
//}

//var CountryPrefix = map[string]string{
//	"86": "中国",
//	"60": "马来西亚",
//}

// PrefixLocalList 开通列表
//var PrefixLocalList = map[string]string{
//	"86": "zh-CN",
//	"60": "en-US",
//}

// ZH_CN 中国开通列表
//var ZH_CN = []string{
//	"免费试用%v%v",
//	"支付宝支付",
//	"微信支付",
//}

// EN_US 美国
//var EN_US = []string{
//	"Free trial for %v %v",
//	"Alipay Pay",
//	"WeChat Pay",
//}

// PayTypeListAddKey 前端开通列表ID差
//var PayTypeListAddKey = map[string]int{
//	"zh-CN": 1,
//	"en-US": 4,
//}

// PayTypeList 开通列表
//var PayTypeList = map[string]interface{}{
//	"zh-CN": ZH_CN,
//	"en-US": EN_US,
//}

// pay
//const (
//	QueryIsOpenDY = "/gateway/dy/is_open_py" // 查询医院是否开通谛语智慧
//	DYTrial       = "/gateway/dy/trial"      // 谛语智慧试用
//	PurchasePacs  = "/gateway/dy/buy"        // 谛语智慧购买
//	OpeningData   = "/gateway/dy/data"       // 谛语智慧购买页信息
//	//QueryDYBuy    = "/gateway/dy/buy"           // 查询 订单
//	//QueryDYMeal   = "/gateway/py/py_meal"     // pacs 套餐列表
//	//QueryDcmList    = "/gateway/py/dcm_list"      // pacs 套餐列表
//)

//const (
//	AesKey = "dbcaespassword01"
//	SmsAes = "dbcaespassword01"
//)