|
@@ -10,10 +10,7 @@ import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.security.AuthUser;
|
|
|
import com.ym.mec.common.security.SecurityUtils;
|
|
|
import com.ym.mec.common.validcode.SmsCodeService;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiImplicitParam;
|
|
|
-import io.swagger.annotations.ApiImplicitParams;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.*;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.MediaType;
|
|
@@ -55,6 +52,16 @@ public class UserController extends BaseController {
|
|
|
return failed();
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "根据用户编号获取用户基本信息")
|
|
|
+ @GetMapping("/get/{userId}")
|
|
|
+ @ApiParam(value = "用户编号", required = true)
|
|
|
+ public Object getBasic(@PathVariable("userId") Integer userId) {
|
|
|
+ if(userId == null){
|
|
|
+ return failed("参数校验异常");
|
|
|
+ }
|
|
|
+ return succeed(sysUserService.getBasic(userId));
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping(value = "/queryUserByPhone")
|
|
|
public SysUser queryUserByPhone(String mobile) {
|
|
|
return sysUserService.queryByPhone(mobile);
|