- 京东门店商品操作userPin都用utils.GetAPIOperator修饰
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user