| | |
| | | import com.ruoyi.project.system.domain.SysUserClient; |
| | | import com.ruoyi.project.system.service.SysUserClientService; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | * @version 1.0 |
| | | * @since 2026/2/9 |
| | | */ |
| | | @Api(tags = "用户设备绑定") |
| | | @Tag(name = "用户设备绑定") |
| | | @RestController |
| | | @RequestMapping("/system/client") |
| | | @AllArgsConstructor |
| | | public class SysUserClientController extends BaseController { |
| | | |
| | | @Autowired |
| | | private SysUserClientService sysUserClientService; |
| | | |
| | | /** |
| | | * 添加/更新用户cid |
| | | */ |
| | | @PostMapping("/addOrUpdateClientId") |
| | | @ApiOperation("添加/更新用户cid") |
| | | @Operation(summary = "添加/更新用户cid") |
| | | public AjaxResult addOrUpdateClientId(@RequestBody SysUserClient sysUserClient) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | sysUserClient.setUserId(userId); |