1
This commit is contained in:
@@ -46,9 +46,16 @@ func TestGetStoreCategory(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetStoreAllCategory(t *testing.T) {
|
||||
data, err := apiTao.GetStoreAllCategory()
|
||||
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
|
||||
globals.SugarLogger.Debugf("err := %s", utils.Format4Output(err, false))
|
||||
data, _ := apiTao.GetStoreAllCategory()
|
||||
for _, v := range data {
|
||||
if v.ChildCategorys != nil {
|
||||
for _, v2 := range v.ChildCategorys {
|
||||
globals.SugarLogger.Debugf("%s", utils.Format4Output(v2, false))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestAddCategory(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user