|
@@ -12,6 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.Objects;
|
|
import java.util.Objects;
|
|
|
|
|
|
|
@@ -41,6 +42,7 @@ public class SearchTermController {
|
|
|
@PostMapping
|
|
@PostMapping
|
|
|
@ApiOperation("新增搜索词")
|
|
@ApiOperation("新增搜索词")
|
|
|
public R<Void> save(@RequestBody @Valid SearchTerm searchTerm) {
|
|
public R<Void> save(@RequestBody @Valid SearchTerm searchTerm) {
|
|
|
|
|
+ searchTerm.setCreateTime(new Date());
|
|
|
searchTermService.save(searchTerm);
|
|
searchTermService.save(searchTerm);
|
|
|
return R.SUCCESS();
|
|
return R.SUCCESS();
|
|
|
}
|
|
}
|