LoginController.java 1.3 KB

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