|
@@ -86,6 +86,6 @@ func AuditBuyer(c *gin.Context) {
|
|
}
|
|
}
|
|
|
|
|
|
func BuyerClass(c *gin.Context) {
|
|
func BuyerClass(c *gin.Context) {
|
|
- data, _ := Mgo.Find("classify", `{"i_type":1}`, `{"_id":-1}`, `{"s_name":1,"child":1}`, false, -1, -1)
|
|
|
|
|
|
+ data, _ := Mgo.Find("classify", `{"i_type":1}`, nil, `{"s_name":1,"child":1}`, false, -1, -1)
|
|
c.JSON(200, gin.H{"data": data})
|
|
c.JSON(200, gin.H{"data": data})
|
|
}
|
|
}
|