Uninote
Uninote
用户根目录
每日点滴

<!DOCTYPE html> <html><head><meta http-equiv='Content-Type' content='text/html; charset=utf8'><title>mynote modules</title> <script> var g_resRoot = '../../__res/'; var g_json_outline = '{"children":[{"children":[{"children":[],"level":2,"lvNumber":"1.1","text":"文章缩略图"},{"children":[],"level":2,"lvNumber":"1.2","text":"footer"},{"children":[],"level":2,"lvNumber":"1.3","text":"feedback"},{"children":[{"children":[],"level":3,"lvNumber":"1.4.1","text":"推荐文章"}],"level":2,"lvNumber":"1.4","text":"推荐作者、文章"}],"level":1,"lvNumber":"1","text":"首页"},{"children":[{"children":[],"level":2,"lvNumber":"2.1","text":"用户表"},{"children":[],"level":2,"lvNumber":"2.2","text":"注册"},{"children":[],"level":2,"lvNumber":"2.3","text":"登录"},{"children":[],"level":2,"lvNumber":"2.4","text":"注销"},{"children":[{"children":[],"level":3,"lvNumber":"2.5.1","text":"git remote url & git ssh key"}],"level":2,"lvNumber":"2.5","text":"个人中心"},{"children":[],"level":2,"lvNumber":"2.6","text":"新用户流程"},{"children":[],"level":2,"lvNumber":"2.7","text":"用户配置 user config"},{"children":[],"level":2,"lvNumber":"2.8","text":"关注逻辑"}],"level":1,"lvNumber":"2","text":"用户"},{"children":[],"level":1,"lvNumber":"3","text":"推荐作者页"},{"children":[],"level":1,"lvNumber":"4","text":"消息系统"},{"children":[],"level":1,"lvNumber":"5","text":"log系统"},{"children":[],"level":1,"lvNumber":"6","text":"api接口"}],"level":0,"lvNumber":"","text":"mynote modules"}'; </script> <link rel='stylesheet' type='text/css' href='../../__res/common.css'><style>.s0{color:#0000ff;} .s1{color:#000000;} .s2{color:#000000;} .s3{color:#000000;} .s4{color:#000000;} .s5{color:#0000ff;} .s6{color:#0000ff;} .s7{color:#000000;} .s8{color:#000080;} .s9{color:#000000;} .s10{color:#660e7a;} .s11{color:#808080;} .s12{color:#c80000;} </style> </head><body> <script src='../../__res/util.js'></script><div id='outline'> <li><a href='#ol_0' style='font-weight:bold; font-size:22px'>mynote modules</a></li> <li> <a href='#ol_1' >首页</a></li> <li> <a href='#ol_2' >文章缩略图</a></li> <li> <a href='#ol_3' >footer</a></li> <li> <a href='#ol_4' >feedback</a></li> <li> <a href='#ol_5' >推荐作者、文章</a></li> <li> <a href='#ol_6' >推荐文章</a></li> <li> <a href='#ol_7' >用户</a></li> <li> <a href='#ol_8' >用户表</a></li> <li> <a href='#ol_9' >注册</a></li> <li> <a href='#ol_10' >登录</a></li> <li> <a href='#ol_11' >注销</a></li> <li> <a href='#ol_12' >个人中心</a></li> <li> <a href='#ol_13' >git remote url & git ssh key</a></li> <li> <a href='#ol_14' >新用户流程</a></li> <li> <a href='#ol_15' >用户配置 user config</a></li> <li> <a href='#ol_16' >关注逻辑</a></li> <li> <a href='#ol_17' >推荐作者页</a></li> <li> <a href='#ol_18' >消息系统</a></li> <li> <a href='#ol_19' >log系统</a></li> <li> <a href='#ol_20' >api接口</a></li> </div>

<pre id='ol_0' class='title'>mynote modules</pre> <pre><d class='s0'></d></pre> <h1 id='ol_1'>首页</h1> <pre><d class='s1'><a href='mynote_back.html#b68760a8-fe9d-4bca-9480-1bb26e4068f1'>banner管理 </a></d></pre> <t id='ab074268-4abe-4a7a-a8a1-92e79ca5e464'> <pre class='tnd_head'>lv1=mynote lv2= type=done</pre> <pre><d class='s1'>banner水平、垂直居中,不要拉伸;同理,缩略图一样处理</d></pre> </t> <pre><d class='s2'></d></pre> <t id='940a484b-792e-48d4-a4d1-0f98ef443834'> <pre class='tnd_head'>lv1= lv2= type=todo</pre> <pre><d class='s2'>图片的content type要正确设置</d></pre> <pre><d class='s2'>不要加随机数,使其能够缓存</d></pre> <pre><d class='s2'>文字、图片也可以点击</d></pre> </t> <t id='bc6bbdf3-4c55-4c8a-97d2-d4bd7eb276c1'> <pre class='tnd_head'>lv1= lv2= type=todo</pre> <pre><d class='s3'>默认index.md</d></pre> </t> <pre><d class='s4'></d></pre> <h2 id='ol_2'>文章缩略图</h2> <pre><d class='s4'>需要提前剪裁</d></pre> <pre><d class='s4'></d></pre> <h2 id='ol_3'>footer</h2> <pre><d class='s5'></d></pre> <h2 id='ol_4'>feedback</h2> <pre><d class='s4'></d></pre> <h2 id='ol_5'>推荐作者、文章</h2> <pre><d class='s2'>排序逻辑</d></pre> <pre><d class='s2'>1、置顶的</d></pre> <pre><d class='s2'>2、推荐时间</d></pre> <pre><d class='s1'><a href='mynote_back.html#b30f59d0-db93-43af-98a1-1c0255543571'>推荐文章管理 </a></d></pre> <pre><d class='s3'></d></pre> <h3 id='ol_6'>推荐文章</h3> <pre><d class='s3'>三数据:评论、点赞、阅读数</d></pre> <pre><d class='s3'></d></pre> <pre><d class='s3'>加载更多 后,所有数据重新测试</d></pre> <pre><d class='s3'></d></pre> <h1 id='ol_7'>用户</h1> <pre><d class='s6'></d></pre> <t id='cee404da-b5cb-4545-9ad3-999aee672966'> <pre class='tnd_head'>lv1=mynote lv2= type=todo</pre> <h2 id='ol_8'>用户表</h2> <pre><d class='s3'>username -</d></pre> <pre><d class='s3'>name + ,账号名,注册时用户设置的唯一</d></pre> <pre><d class='s3'>id从10000开始</d></pre> </t> <pre><d class='s6'></d></pre> <h2 id='ol_9'>注册</h2> <t id='9efa4d48-0502-4129-b7fc-fb83b1a9426b'> <pre class='tnd_head'>lv1=mynote lv2= type=todo</pre> <pre><d class='s3'>不要注册、修改昵称分离:</d></pre> <pre><d class='s7'>do_register:</d><d class='s8'>function </d><d class='s9'>(){</d></pre> <pre><d class='s9'> </d><d class='s8'>if </d><d class='s9'>(</d><d class='s8'>this</d><d class='s9'>.</d><d class='s10'>nickname_ok </d><d class='s9'>&& </d><d class='s8'>this</d><d class='s9'>.</d><d class='s10'>tel_ok </d><d class='s9'>&& </d><d class='s8'>this</d><d class='s9'>.</d><d class='s10'>pwd_ok </d><d class='s9'>&& </d><d class='s8'>this</d><d class='s9'>.</d><d class='s10'>pwd2_ok</d><d class='s9'>) {</d><d class='s11'>//正则表达式验证均无误</d></pre> </t> <pre><d class='s1'>注册后自动生成用户文件夹,初始化git仓库,设置好git remote url。参见<a href='mynote_mod.html#e786f01f-e2d6-4161-b18d-9e83ca500bb3'>git remote url & git ssh key </a></d></pre> <pre><d class='s3'>新用户流程,重点测试</d></pre> <pre><d class='s6'></d></pre> <h2 id='ol_10'>登录</h2> <pre><d class='s6'></d></pre> <h2 id='ol_11'>注销</h2> <pre><d class='s6'></d></pre> <h2 id='ol_12'>个人中心</h2> <pre><d class='s6'></d></pre> <t id='e786f01f-e2d6-4161-b18d-9e83ca500bb3'> <pre class='tnd_head'>lv1= lv2= type=todo</pre> <h3 id='ol_13'>git remote url & git ssh key</h3> <pre><d class='s3'>注册后自动生成git url & git ssh key,用户可以在此设置、获取</d></pre> </t> <t id='96c077b2-a7f9-4108-8bce-e1c988a114ad'> <pre class='tnd_head'>lv1= lv2= type=todo</pre> <pre><d class='s4'>gogs 用户登录:用户可以在用户中心设置密码;如果用户登录了mynote,gogs可以免登录</d></pre> </t> <pre><d class='s4'></d></pre> <h2 id='ol_14'>新用户流程</h2> <pre><d class='s4'>注册用户,得到id</d></pre> <pre><d class='s4'>根据id,修改git server config,push</d></pre> <pre><d class='s4'>将id配置到client</d></pre> <pre><d class='s4'>执行init docs</d></pre> <pre><d class='s4'>写一篇文章</d></pre> <pre><d class='s0'></d></pre> <t id='8730797e-b805-4d18-94d3-b3d16c8b0fab'> <pre class='tnd_head'>lv1= lv2= type=todo</pre> <h2 id='ol_15'>用户配置 user config</h2> <pre><d class='s2'>界面布局等</d><d class='s0'></d></pre> </t> <pre><d class='s0'></d></pre> <h2 id='ol_16'>关注逻辑</h2> <pre><d class='s4'>uid 关注 fuid;取消关注</d><d class='s12'>,status = 0,</d><d class='s4'>而不是删除记录</d></pre> <pre><d class='s4'></d></pre> <pre><d class='s4'>SELECT</d></pre> <pre><d class='s4'> '--' as '用户信息',</d></pre> <pre><d class='s4'> u.nick,</d></pre> <pre><d class='s4'> u.username,</d></pre> <pre><d class='s4'> '--' as '关注的用户信息',</d></pre> <pre><d class='s4'> u2.id,</d></pre> <pre><d class='s4'> u2.username,</d></pre> <pre><d class='s4'> u2.nick</d></pre> <pre><d class='s4'>''</d></pre> <pre><d class='s4'>FROM</d></pre> <pre><d class='s4'> user u</d></pre> <pre><d class='s4'>LEFT JOIN userfollow f ON u.id = f.uid and f.status = 1</d></pre> <pre><d class='s4'>LEFT JOIN user u2 ON f.fuid = u2.id</d></pre> <pre><d class='s4'>order by nick</d></pre> <pre><d class='s4'></d></pre> <pre><d class='s4'>-- select * from user</d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_17'>推荐作者页</h1> <pre><d class='s0'><a href='http://uninote.com.cn/author'>http://uninote.com.cn/author</a></d></pre> <t id='7c7d703c-a1ba-4130-8b05-de11729c6286'> <pre class='tnd_head'>lv1= lv2= type=todo</pre> <pre><d class='s2'>点击头像到作者首页</d></pre> <pre><d class='s2'>以后有了作者信息页,展示此页</d></pre> </t> <pre><d class='s0'></d></pre> <t id='d2c46601-b25a-4f2a-9659-0c08b85133cd'> <pre class='tnd_head'>lv1=mynote lv2= type=todo</pre> <h1 id='ol_18'>消息系统</h1> <pre><d class='s3'>系统消息,全部用户,登录才读取,写到个人信箱</d></pre> <pre><d class='s3'>用户动态,写入动态表,粉丝需要时再拉取,不广播</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>点赞、评论是一类消息(类似朋友圈),但与聊天消息区分</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s3'>自己不能关注自己</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s3'>站内通讯系统推送消息结构</d></pre> <pre><d class='s3'>动态类型推送消息:</d></pre> <pre><d class='s3'>发送文章 => 关注的人(public)</d></pre> <pre><d class='s3'>文章点赞 => 关注的人(public) 文章作者(private)</d></pre> <pre><d class='s3'>发送评论 => 本层的人和文章作者(private)</d></pre> <pre><d class='s3'>评论点赞 => 本层的人和文章作者(private)</d></pre> <pre><d class='s3'>影响:</d></pre> <pre><d class='s3'>1)自己关注自己,自己给自己的文章点赞就会是2情况有两条。</d></pre> <pre><d class='s3'>2)自己关注自己,自己发文章会手到关注消息我发了文章。</d></pre> <pre><d class='s3'>3)发送评论由于推送消息的对象是集合(本层的人和文章作者),聊天消息栏目会有显示自己给多个人发信息。</d></pre> <pre><d class='s3'>4)评论点赞和上面一个3)的影响一样。</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>先简单处理:用户注册时间晚于消息创建时间的,不显示</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s6'></d></pre> <pre><d class='s1'>全部、部分 * 已读、删除、未读</d></pre> <pre><d class='s3'>仿照qq邮箱,<img src='..\pic\4b4c2ff67c39bbc37444fbb4e9f8c6f7.jpg' /></d><d class='s3'>这个不要了</d></pre> <pre><d class='s3'><img src='..\pic\2bd19ea0371b5b574ed27989057caac1.jpg' /></d><d class='s1'></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s3'></d></pre> <pre><d class='s3'><img src='..\pic\6d456fd27677071d86fb0788413fe792.jpg' /></d><d class='s1'></d></pre> </t> <pre><d class='s1'></d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_19'>log系统</h1> <pre><d class='s1'><a href='iindex.html#550aa161-b248-440a-ae14-44e54defc46a'>mynote tool links </a></d></pre> <pre><d class='s4'>log输出sessionid</d></pre> <pre><d class='s1'>log查询</d></pre> <pre><d class='s1'><a href='..\pub/log_ana.html#5346e0d5-0cd1-4cfa-9bf5-4f2fd02ce03a'>log parser/ana </a></d></pre> <pre><d class='s1'></d></pre> <t id='2569b40e-a19b-4200-b084-3d5f0ac720c5'> <pre class='tnd_head'>lv1= lv2= type=</pre> <h1 id='ol_20'>api接口</h1> <pre><d class='s1'><a href='..\pub\规范/规范.html#5c860781-85c8-4c03-aab6-7fa005068b82'>api doc 规范 </a></d></pre> <pre><d class='s0'></d></pre> <t id='984de10a-4f24-43b6-bff1-3841677ff57a'> <pre class='tnd_head'>lv1=mynote lv2= type=todo</pre> <pre><d class='s1'>curl 调用优化、错误处理</d></pre> <pre><d class='s1'><img src='..\pic\acfd7de10b299ac89bb027437140aaa9.jpg' /></d><d class='s1'></d></pre> </t> <pre><d class='s1'></d></pre> <pre><d class='s1'><a href='http://uninote.com.cn/tests/api_tests.html'>http://uninote.com.cn/tests/api_tests.html</a></d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>E:\uninote\uninote_api</d></pre> <pre><d class='s1'><a href='https://www.kancloud.cn/eson_sheng/uninote/'>https://www.kancloud.cn/eson_sheng/uninote/</a></d></pre> <pre><d class='s1'></d></pre> </t> </body></html>

mynote_mobile

mynote_mod_article

点赞(0) 阅读(49) 举报
目录
标题