| | |
| | | import com.vci.ubcs.code.service.IPasswordFreeLoginService; |
| | | import io.swagger.annotations.Api; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | @Resource |
| | | private IPasswordFreeLoginService passwordFreeLoginService; |
| | | |
| | | @GetMapping("/login") |
| | | public R passwordFreeLogin(String account) { |
| | | boolean resBoolean = passwordFreeLoginService.passwordFreeLogin(account); |
| | | @PostMapping("/login") |
| | | public R passwordFreeLogin(@RequestParam String username) { |
| | | boolean resBoolean = passwordFreeLoginService.passwordFreeLogin(username); |
| | | return R.status(resBoolean); |
| | | } |
| | | |