UserLineController.java 1.35 KB
package com.bsth.controller.sys;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.bsth.controller.BaseController;
import com.bsth.entity.sys.UserLine;
import com.bsth.service.sys.UserLineService;

@RestController
@RequestMapping("userline")
public class UserLineController extends BaseController<UserLine, Integer> {
	
	
	@Autowired
	private UserLineService service;
	
	@RequestMapping(value = "/userRoleTree", method = RequestMethod.GET)
	public List<Map<String, Object>> userRoleTree(@RequestParam Map<String, Object> map){
		
		return service.userRoleTree(map);
		
	}
	
	/**
	 * 
	 * @Title: setLineCasts 
	 * 
	 * @Description: TODO(为角色设置模块,全量覆盖) 
	 * 
	 * @param @param userId 用户ID
	 * 
	 * @param @param mIds  线路ID字符串(1,2,3,4)
	 * 
	 * @throws
	 */
	@RequestMapping(value = "/setLineCasts", method = RequestMethod.POST)
	public Map<String, Object> setLineCasts(@RequestParam Integer userId,@RequestParam String mIds){
		return service.setLineCasts(userId, mIds);
	}
}