|
@@ -7,6 +7,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
|
import com.yvan.platform.JsonWapper;
|
|
import com.yvan.platform.JsonWapper;
|
|
import com.yvan.platform.YvanUtil;
|
|
import com.yvan.platform.YvanUtil;
|
|
import com.yvan.springmvc.ResultModel;
|
|
import com.yvan.springmvc.ResultModel;
|
|
|
|
+import io.swagger.annotations.*;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.ui.ModelMap;
|
|
import org.springframework.ui.ModelMap;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -19,6 +20,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
+@Api("注册登陆")
|
|
@RestController
|
|
@RestController
|
|
public class UserOpenController {
|
|
public class UserOpenController {
|
|
|
|
|
|
@@ -45,6 +47,10 @@ public class UserOpenController {
|
|
@Autowired
|
|
@Autowired
|
|
private MsReportService msReportService;
|
|
private MsReportService msReportService;
|
|
|
|
|
|
|
|
+ @ApiOperation("登陆首页")
|
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "userId", value = "用户ID", required = false, dataType = "Long",paramType="query"),
|
|
|
|
+ @ApiImplicitParam(name = "userType", value = "用户类型", required = false, dataType = "Integer",paramType="query")
|
|
|
|
+ })
|
|
@GetMapping("/user/home.html")
|
|
@GetMapping("/user/home.html")
|
|
public ModelAndView home(ModelMap model, @RequestParam(value = "userId", required = false,defaultValue = "0") Long userId,
|
|
public ModelAndView home(ModelMap model, @RequestParam(value = "userId", required = false,defaultValue = "0") Long userId,
|
|
@RequestParam(value = "userType", required = false,defaultValue = "0") Integer userType) throws JsonProcessingException {
|
|
@RequestParam(value = "userType", required = false,defaultValue = "0") Integer userType) throws JsonProcessingException {
|