Documentation ¶
Index ¶
- Constants
- Variables
- func EncryptedUserToken(token string, key ...string) string
- func GetAll() ([]map[string]string, error)
- func GetConfigRedisKey(site_id string) string
- func GetDbName(master, host string) (string, error)
- func GetDomain(req *http.Request) string
- func GetHost(req *http.Request) string
- func GetMsgTypeKey(text string) (key string)
- func GetMsgTypeText(key string) (text string)
- func GetSiteFromMaster(master, host string) (map[string]string, error)
- func GetSiteFromRedis(host string) (map[string]string, error)
- func GetSiteId(master, domain string) (string, error)
- func GetSiteInfo(master, host string) (map[string]string, error)
- func GetSiteInfoFromReq(master string, req *http.Request) (map[string]string, error)
- func SetHeader(w http.ResponseWriter, resp *http.Request)
- func SetToRedis(host string, site map[string]string) error
Constants ¶
View Source
const SITE_KEY = "allSitesInfo" // 所有站点的信息
Variables ¶
View Source
var MsgTypeList map[string]string = map[string]string{
"1": "order_create",
"2": "order_created_notify",
"3": "order_refund",
"4": "order_refunded_notify",
"5": "order_pay",
"6": "order_payed_notify",
"7": "order_cancel",
"8": "order_canceled_notify",
"9": "order_receive",
"10": "order_received_notify",
"11": "order_finished_notify",
"12": "send_sms",
"13": "order_delivered_notify",
"14": "order_autocanceled_notify",
"15": "order_askforrefund_notify",
"16": "order_pay_by_master",
}
* 串货接口,请求及通知订单状态
View Source
var USER_TOKEN_KEY = "i3d6o32wo8fvs1fvdpwens"
用户TOKEN加密转换key
Functions ¶
func EncryptedUserToken ¶
func GetConfigRedisKey ¶
func GetMsgTypeKey ¶
func GetMsgTypeText ¶
func GetSiteInfoFromReq ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.