SysUsersController.java 945 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
package com.lyms.cm.controller.sys;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.lyms.cm.entity.sys.SysUsers;
import com.lyms.cm.service.sys.ISysUsersService;
import com.lyms.web.controller.BaseController;

/**
* <p>
* 用户表 前端控制器
* </p>
*
* @author maliang
* @since 2017-03-02
*/
@Controller
@RequestMapping("/sysUsers")
public class SysUsersController extends BaseController {

@Autowired
private ISysUsersService userService;

/**
* 创建用户
* <p>
* TODO
*
* @param user
* @return
*/
@RequestMapping(value = "/create", method = RequestMethod.POST)
public String create(SysUsers user) {
boolean tag = userService.addUser(user);
return null;
}

}