user
notebook - 查看用户全部笔记本
create - 创建用户
update - 更新用户信息notebook
all - 查看用户全部笔记本(同user/notebook)
get - 查看笔记本信息
list - 列出笔记本下的笔记
update - 修改笔记本
create - 创建笔记本
delete - 删除笔记本note
create - 创建笔记
get - 查看笔记
update - 修改笔记
move - 移动笔记
delete - 删除笔记
user{ id, nickname, [pass], notebook_list }
notebook{ id, [pass], name, notes_num, note_list }
note { id, name, notebook_id, type(0), data }
input{ user-nickname, user-pass }
output{ notebook list }
input{ user-nickname, user-pass }
output{ ok }
input{ user-nickname, user-pass, new nickname, new pass }
output{ ok }
input{ user-nickname, user-pass }
output{ notebook list }
input{ notebook-id, }
output{ notebook-name, notebook-notes_num }
input{ notebook-id, notebook-pass }
output{ note list }
input{ notebook-id, notebook-pass, new name, new pass }
output{ ok }
input{ user-name, user-pass, notebook-name, notebook-pass }
output{ notebook-id }
input{ notebook-id, notebook-pass }
output{ ok }
input{ notebook-id, notebook-pass, note-name, note-type, note-data }
output{ note-id }
input{ notebook-id, notebook-pass, note-id }
output{ note }
input{ notebook-id, notebook-pass, note-id, new name, new type, new data }
output{ ok }
input{ from notebook-id, from notebook-pass, to notebook-id, to notebook-pass, note-id }
output{ ok }
input{ notebook-id, notebook-pass, note-id }
output{ ok }