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

add LZAlbum link #352

Closed
wants to merge 3 commits into from
Closed

add LZAlbum link #352

wants to merge 3 commits into from

Conversation

lzwjava
Copy link
Contributor

@lzwjava lzwjava commented Jun 19, 2015

文档中增加示例应用的链接。

@@ -292,4 +293,6 @@ AVQuery *bookQuery = [AVQuery queryWithClassName:@"Book"];
* **避免大对象** 在这个场景中,你的原始对象大小大于了对象的上限值(128K),你可以创建另一个对象来存储额外的数据。当然,这通常需要更好地设计你的数据模型来避免出现大对象。如果确实无法避免,你也可以考虑使用AVFile存储大数据。
* **更灵活的文件对象** AVFile 可以方便的存取文件,但是作为对象查询修改等不是很方便,可以使用 AVObject 构造一个自己的文件对象并与 AVFile 一对一关联,将文件属性存于AVObject 中,这样既可以方便查询修改文件属性,也可以方便存取文件。

我们也提供了一个应用来展示 LeanCloud 上的关系建模,可以用公共账号 `leancloud@163.com/Public123` 来登录[控制台](https://leancloud.cn/) ,选择 `LZAlbum` 应用来查看它的表结构。这是一个仿朋友圈的项目,开源在了 [Github](https://github.com/lzwjava/LZAlbum) 上。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个项目做过 code review 吗?如果没 review 过就暂时不要作为官方例子。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,已经请 @tang3w review 了。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗯,做完 code review 就挪到 leancloud 下面吧。

@jwfing
Copy link
Contributor

jwfing commented Jun 19, 2015

这个 demo 真的是来展示 relation 怎么用的吗?界面过于复杂了,不够简单和直观。并且,有 android 版吗?建议还是不要放在开发文档里面了,review 过后可以先录入 leancloud.sexy。

@lzwjava
Copy link
Contributor Author

lzwjava commented Jun 19, 2015

image

我觉得还是可以展示的,我这里用了 Album 、Comment 两个表就搞定了朋友圈。
看上面 相片是_File Array ,点赞是_User Array ,评论是 Comment _Array, creator 是 _User Pointer。
只用一个查询,就可以把朋友圈一个列表的数据获得。
演示了一对一、一对多的关系。在这里,也提供了公共账号、密码给开发者可以直接看到后台。

是因为看到开发者,他们创建很多表,来关联数据,用 id 来关联,我才想用这个Demo 来展示我们的关系建模。很少的表,就能搞定。

至于界面复杂,其实界面是数据逻辑是解耦性是很好的,可看这里,subview 里的点击事件都用delegate 上浮到 Controller 来处理。也把 LeanCloud 的逻辑专门放到一起。

@lzwjava lzwjava closed this Jun 24, 2015
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

Successfully merging this pull request may close these issues.

None yet

3 participants