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)); } }