You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
395 B
16 lines
395 B
package com.example.pkm.service;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Component
|
|
public class NoteService {
|
|
|
|
@Autowired
|
|
private TagService tagService;
|
|
|
|
public void createNote(String title, String content) {
|
|
System.out.println("创建笔记: " + title);
|
|
tagService.autoTag(content);
|
|
}
|
|
}
|
|
|