2023-12-18 18:54:50 +08:00
|
|
|
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.xgf.XgfUserService;
|
|
|
|
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;
|
|
|
|
|
2023-12-19 20:03:25 +08:00
|
|
|
|
2023-12-18 18:54:50 +08:00
|
|
|
@RequestMapping(value = "/list")
|
|
|
|
@ResponseBody
|
2023-12-19 15:01:44 +08:00
|
|
|
public Object list(Page page) throws Exception {
|
2023-12-18 18:54:50 +08:00
|
|
|
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;
|
|
|
|
}
|
2023-12-19 15:01:44 +08:00
|
|
|
|
|
|
|
@RequestMapping(value = "/approve")
|
|
|
|
@ResponseBody
|
|
|
|
public Object approve() throws Exception {
|
|
|
|
PageData request = this.getPageData();
|
|
|
|
xgfUserService.approve(request);
|
|
|
|
|
|
|
|
PageData response = new PageData();
|
|
|
|
response.put("result", "success");
|
|
|
|
response.put("data", request);
|
|
|
|
return response;
|
|
|
|
}
|
2023-12-19 20:03:25 +08:00
|
|
|
|
|
|
|
@RequestMapping(value = "/regulatoryUserList")
|
|
|
|
@ResponseBody
|
|
|
|
public Object regulatoryUserList() throws Exception{
|
|
|
|
PageData request = this.getPageData();
|
|
|
|
|
|
|
|
PageData response = new PageData();
|
|
|
|
response.put("result", "success");
|
|
|
|
response.put("data", request);
|
|
|
|
return response;
|
|
|
|
}
|
2023-12-18 18:54:50 +08:00
|
|
|
}
|