- add operator for some jd api.

This commit is contained in:
gazebo
2018-08-22 16:16:19 +08:00
parent 061fe163bd
commit 4813ff4ce6
3 changed files with 30 additions and 17 deletions

View File

@@ -89,8 +89,12 @@ func GetCurTimestamp() int64 {
return time.Now().Unix()
}
func GetAPIOperator() string {
return "jxc4-admin"
func GetAPIOperator(userName string) string {
retVal := "jxc4-admin"
if userName != "" {
retVal += "-" + userName
}
return retVal
}
func MergeMaps(firstMap map[string]interface{}, otherMaps ...map[string]interface{}) (retVal map[string]interface{}) {