| | |
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | }
|
| | | }
|
| | |
|
| | | @Log(title = "测试接口新增用户", businessType = BusinessType.INSERT)
|
| | | @Operation(summary = "新增用户")
|
| | | @Parameters({ |
| | | @Parameter(name = "userId", description = "用户id"), |
| | |
| | | return R.ok();
|
| | | }
|
| | |
|
| | | @Log(title = "测试接口更新用户", businessType = BusinessType.UPDATE)
|
| | | @Operation(summary = "更新用户")
|
| | | @PutMapping("/update")
|
| | | public R<String> update(@RequestBody UserEntity user)
|
| | |
| | | return R.ok();
|
| | | }
|
| | |
|
| | | @Log(title = "测试接口删除用户", businessType = BusinessType.DELETE)
|
| | | @Operation(summary = "删除用户信息")
|
| | | @Parameter(name = "userId", description = "用户ID", required = true) |
| | | @DeleteMapping("/{userId}") |