yuxc
2023-09-14 aa3b56b8ab335277351f503b8d38e1a0a5fe7477
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.vci.ubcs.code.controller;
 
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.*;
 
import javax.annotation.Resource;
 
/**
 * @author ludc
 * @date 2023/9/12 9:07
 */
@RestController
@RequestMapping("/passwordFree")
@Api(value = "免密登录接口", tags = "免密登录接口")
public class PasswordFreeLoginController {
 
    @Resource
    private IPasswordFreeLoginService passwordFreeLoginService;
 
    @PostMapping("/login")
    public R passwordFreeLogin(@RequestParam String username) {
        boolean resBoolean = passwordFreeLoginService.passwordFreeLogin(username);
        return R.status(resBoolean);
    }
 
 
 
 
}