Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插件api请求:增加创建指定日期的日记到指定笔记本的api #11472

Closed
suka233 opened this issue May 20, 2024 · 1 comment
Closed

Comments

@suka233
Copy link

suka233 commented May 20, 2024

In what scenarios do you need this feature?

目前思源日记可以自定义存放路径,并且有时会有新的日记相关特性加入(比如:#9807),插件作者自己来实现“创建指定日期的日记到指定笔记本”的功能会有很多阻力,并且可能也会有遗漏新属性适配的风险,所以提供一个官方api是必要的。

可预见的好处还有:采用此api的插件,即使后面该插件不再维护,功能也不会因为思源日记新特性的加入而缺失。

Describe the optimal solution

入参:
1.指定日期YYYY-MM-DD
2.指定的notebook
3.模板路径(日记模板我没用过,这个参数我个人是不太需要的,但是为了可拓展性,能加就加吧)

接口行为:如果指定的日期已经存在日记,就返回该条日记的相关信息,否则新建日记。

Describe the candidate solution

No response

Other information

No response

@88250
Copy link
Member

88250 commented May 20, 2024

创建日记要走统一的路径模板(如果需要指定笔记本可以考虑使用 createDailyNote 接口),所以不考虑单独提供路径参数了,谢谢。

@88250 88250 closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants