- add PendingUnitPrice and PendingOpType in GetStoreSkus result, when param isGetOpRequest is true

- fix some API result to lower camel case
This commit is contained in:
gazebo
2018-12-20 21:27:39 +08:00
parent 2952b3f3b5
commit ae9bc84921
4 changed files with 99 additions and 57 deletions

View File

@@ -394,3 +394,18 @@ func BatchStr2Time(strTime ...string) (timeList []time.Time, err error) {
func IsTimeEmpty(timeValue time.Time) bool {
return (timeValue == utils.DefaultTimeValue || timeValue == utils.ZeroTimeValue)
}
// strAndObjAddPairs必须按字符串1,转换地址1字符串2转换地址2这样的格式传递
func Strings2Objs(strAndObjAddPairs ...interface{}) (err error) {
str := ""
for k, v := range strAndObjAddPairs {
if k%2 == 0 {
str, _ = v.(string)
} else if str != "" {
if err = utils.UnmarshalUseNumber([]byte(str), v); err != nil {
return err
}
}
}
return nil
}