|
|
|
@ -2,6 +2,7 @@ package cn.chjyj.szwh.controller.admin; |
|
|
|
|
|
|
|
import cn.chjyj.szwh.controller.BaseController; |
|
|
|
import cn.chjyj.szwh.service.ClassifyService; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -67,4 +68,13 @@ public class AdminGoodsClassifyController extends BaseController { |
|
|
|
jsonObject.put("data",retmap); |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/getTop") |
|
|
|
public JSONObject getTop(){ |
|
|
|
Map map = classifyService.getTop(); |
|
|
|
jsonObject.put("data",map); |
|
|
|
jsonObject.put("code",200); |
|
|
|
jsonObject.put("msg","成功"); |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
} |
|
|
|
|