李林
2023-10-07 658d4927d468c47208fd012d9128b09249c07eff
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
package com.chinaztt.mes.basic.controller;
 
import com.chinaztt.mes.basic.service.UserService;
import com.chinaztt.ztt.common.core.util.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * @Author: Zero
 * @Date: 2022/9/20 17:54
 * @Description:
 */
@RestController
@RequestMapping("/user")
@Api(value = "/user", tags = "用户管理")
public class UserController {
 
    @Autowired
    private UserService userService;
 
    @PostMapping("/unlock")
    public R unlock(Long id){
        return R.ok(userService.unlock(id));
    }
}