|
@@ -9,13 +9,7 @@ import javax.validation.Valid;
|
|
|
|
|
|
import com.free.annotation.PassToken;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
@@ -158,7 +152,7 @@ public class ChatRecordController {
|
|
|
|
|
|
/** 根据id删除数据 , 无删除 */
|
|
|
@ApiOperation("删除数据")
|
|
|
- // @DeleteMapping("/{id}")
|
|
|
+ @DeleteMapping("/{id}")
|
|
|
public Object delete(@PathVariable String id) {
|
|
|
QueryWrapper qw = new QueryWrapper<>();
|
|
|
qw.eq("id", id);
|