LoginController.java 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. package com.yihu.jw.controller.login;
  2. import com.yihu.jw.config.security.UserService;
  3. import io.swagger.annotations.Api;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.cloud.sleuth.Tracer;
  6. import org.springframework.web.bind.annotation.*;
  7. /**
  8. * Created by chenweida on 2017/6/16.
  9. */
  10. @RestController
  11. @Api(value = "登陆相关操作", description = "登陆相关操作")
  12. public class LoginController {
  13. @Autowired
  14. private Tracer tracer;
  15. @Autowired
  16. private UserService userService;
  17. // @GetMapping(value = "/employLogin", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
  18. // @ApiOperation(value = "患者登陆", notes = "患者登陆")
  19. // public Envelop employLogin(
  20. // @ApiParam(name = "account", value = "账号", defaultValue = "")
  21. // @RequestParam(name = "account", required = true) String account,
  22. // @ApiParam(name = "password", value = "密码", defaultValue = "")
  23. // @RequestParam(name = "password", required = true) String password,
  24. // @ApiParam(name = "type", value = "登陆方式(默认1):1账号密码 2账号验证码", defaultValue = "")
  25. // @RequestParam(name = "type", required = false, defaultValue = "1") Integer type) throws Exception {
  26. //
  27. // return null;
  28. // }
  29. }