|
@@ -2,8 +2,7 @@ package com.jpsoft.picc.controller;
|
|
|
|
|
|
import com.alibaba.druid.util.StringUtils;
|
|
|
import com.jpsoft.picc.common.dto.MessageResult;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.*;
|
|
|
import org.apache.commons.httpclient.HttpClient;
|
|
|
import org.apache.commons.httpclient.NameValuePair;
|
|
|
import org.apache.commons.httpclient.methods.DeleteMethod;
|
|
@@ -36,7 +35,14 @@ public class UserController {
|
|
|
@PostMapping(value="/login")
|
|
|
@ResponseBody
|
|
|
@ApiOperation(value="登录")
|
|
|
- public MessageResult<Map> login(String userName, String password, String service, HttpSession session) throws Exception{
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "userName",value = "用户名", required = true, paramType = "form"),
|
|
|
+ @ApiImplicitParam(name = "password",value = "密码", required = true, paramType = "form"),
|
|
|
+ @ApiImplicitParam(name = "service",value = "跳转地址", required = true, paramType = "form")
|
|
|
+ })
|
|
|
+ public MessageResult<Map> login(
|
|
|
+ String userName,String password,
|
|
|
+ String service,HttpSession session) throws Exception{
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
|
|
|
try {
|