|
@@ -102,7 +102,7 @@ public class DocFavoriteController extends BaseController {
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody DocFavorite docFavorite) {
|
|
|
if (docFavorite.getLabelId() == null) {
|
|
|
- docFavorite.setLabelId(0L);
|
|
|
+ docFavorite.setLabelId(-1L);
|
|
|
}
|
|
|
docFavorite.setOwner(SecurityUtils.getUserId());
|
|
|
return toAjax(docFavoriteService.insertDocFavorite(docFavorite));
|