- 京东门店商品操作userPin都用utils.GetAPIOperator修饰

This commit is contained in:
gazebo
2019-06-06 16:11:08 +08:00
parent 708bc13d58
commit b41cedd314
3 changed files with 11 additions and 7 deletions

View File

@@ -14,6 +14,10 @@ import (
uuid "github.com/satori/go.uuid"
)
const (
APIPin = "jxadmin"
)
func DictKeysMan(data interface{}, keysToRemove []string, keysToKeep []string) interface{} {
if data == nil || (keysToKeep == nil && keysToRemove == nil) {
return data
@@ -101,7 +105,7 @@ func GetCurTimestamp() int64 {
}
func GetAPIOperator(userName string) string {
retVal := "jxadmin"
retVal := APIPin
if userName != "" {
retVal += "-" + userName
}