|
|
|
@ -5,10 +5,13 @@ import cn.chjyj.szwh.controller.BaseController; |
|
|
|
import cn.chjyj.szwh.service.ClassifyService; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import sun.net.httpserver.HttpServerImpl; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
@ -39,6 +42,20 @@ public class AdminClassifyController extends BaseController { |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询二级菜单 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@RequestMapping("/getSon") |
|
|
|
public JSONObject getSon(HttpServletRequest request){ |
|
|
|
String topclass = request.getParameter("top_class"); |
|
|
|
List<Classify> sonclass= classifyService.getSonClass(topclass); |
|
|
|
jsonObject.put("code",200); |
|
|
|
jsonObject.put("msg","成功"); |
|
|
|
jsonObject.put("data",sonclass); |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
|
|
|
|
@RequestMapping("/") |
|
|
|
public JSONObject category(String createUser){ |
|
|
|
jsonObject.put("code",200); |
|
|
|
|