【新增】 学生端判断学生的登录方式
This commit is contained in:
@@ -71,6 +71,15 @@ public class AuthController {
|
|||||||
@Resource
|
@Resource
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
||||||
|
@PostMapping("/login_config")
|
||||||
|
@PermitAll
|
||||||
|
@Operation(summary = "学生端判断学生的登录方式")
|
||||||
|
public CommonResult<ConfigDO> getLoginConfigDO(@RequestBody @Valid AuthLoginReqVO reqVO) {
|
||||||
|
// 在判断学生的登录方式
|
||||||
|
ConfigDO config = configService.getConfigByKey("student_login");
|
||||||
|
return success(config);
|
||||||
|
}
|
||||||
|
|
||||||
@PostMapping("/login")
|
@PostMapping("/login")
|
||||||
@PermitAll
|
@PermitAll
|
||||||
@Operation(summary = "使用账号密码登录")
|
@Operation(summary = "使用账号密码登录")
|
||||||
|
Reference in New Issue
Block a user