37 lines
1.1 KiB
Java
37 lines
1.1 KiB
Java
|
package com.zcloud.controller.xgf;
|
||
|
|
||
|
import com.zcloud.controller.base.BaseController;
|
||
|
import com.zcloud.entity.Page;
|
||
|
import com.zcloud.entity.PageData;
|
||
|
import com.zcloud.service.system.UsersService;
|
||
|
import com.zcloud.service.xgf.XgfUserService;
|
||
|
import com.zcloud.util.HttpClientService;
|
||
|
import org.springframework.stereotype.Controller;
|
||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||
|
|
||
|
import javax.annotation.Resource;
|
||
|
import java.util.HashMap;
|
||
|
import java.util.Map;
|
||
|
|
||
|
@Controller
|
||
|
@RequestMapping("/xgf/user")
|
||
|
public class XgfUserController extends BaseController {
|
||
|
|
||
|
@Resource
|
||
|
private XgfUserService xgfUserService;
|
||
|
|
||
|
@RequestMapping(value = "/list")
|
||
|
@ResponseBody
|
||
|
public Object getLevels(Page page) throws Exception {
|
||
|
PageData request = this.getPageData();
|
||
|
page.setPd(request);
|
||
|
xgfUserService.list(page);
|
||
|
PageData response = new PageData();
|
||
|
response.put("result", "success");
|
||
|
response.put("page", page);
|
||
|
response.put("data", request);
|
||
|
return response;
|
||
|
}
|
||
|
}
|