UserMgrController.java
1.4 KB
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
42
43
package com.glsx.controller;
import java.util.List;
import cn.com.glsx.openplatform.model.PlatformUser;
import cn.com.glsx.openplatform.service.UserMgrService;
import cn.com.glsx.openplatform.vo.R;
import cn.com.glsx.openplatform.vo.UserVo;
import cn.hutool.db.Page;
import com.github.pagehelper.PageHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
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.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
//@Api
@RestController
@RequestMapping(value = "/usermgr")
public class UserMgrController {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(UserMgrController.class);
@Autowired
private UserMgrService userMgrService;
@RequestMapping(value = "/getUserMgrList", method = RequestMethod.GET)
@ResponseBody
public R getUserMgrList(Page page, UserVo userVo) {
return userMgrService.getUserMgrList(page, userVo);
}
@RequestMapping(value = "/getDropDownOptions", method = RequestMethod.GET)
@ResponseBody
public R getDropDownOptions() {
List<String> customerNameList = userMgrService.getCustomerNameList();
return R.ok().data(customerNameList);
}
}