type
Post
status
Published
date
Jul 6, 2024
slug
summary
后端系统的开发和维护不是一件简单的事。搭建团队、开发联调、迭代升级以及线上运维等工作,都需要长期投入。
让专业的团队来处理这些棘手的问题,用成熟的云服务来加速产品迭代过程,省时、省钱、省力。
tags
web
数据库
在线数据库
推荐
category
数据库
icon
password
将数据统一抽象成对象
ㅤ | 数据库 | LC数据库 |
ㅤ | 表 | Class |
ㅤ | 一列 | 对象 |
ㅤ | 字段 | 属性 |
数据类型:String、Number、Boolean、Object、Array、Data等等
安装依赖与初始化
数据增删改查
对象包含一些内置属性,保存时自动创建
数据对象
数据序列化与反序列化
查询query
关联查询
对象之间可以产生关联,一对一、一对多、多对多
组合查询
文件处理
创建AV.File文件对象
文件服务器是依托七牛云存储,通过url可对图片进一步处理
获取到文件对象后 需要手动保存到服务器
文件处理
查询文件
用户
用户操作
用户注册
- 用户的默认属性 使用setName 方法进行设置
其他属性使用set()
- 添加用户使用signUp()方法
用户登录
退出登录 AV.User.logOut()
当前用户 AV.User.current()
qq登录
ㅤ | 请求地址 | 请求参数 | 响应数据 |
获取code | https://graph.qq.com/oauth2.0/authorize | response_type:”code”
client_id
redirect_uri
state
display | code
state |
获取token | https://graph.qq.com/oauth2.0/token | grant_type:”authorization_code”
client_id
client_secret
code
redirect_uri
fmt:”json” | access_token
expires_in |
直接获取token | https://graph.qq.com/oauth2.0/authorize | response_type=token
client_id
redirect_uri | access_token
expires_in |
获取openid | https://graph.qq.com/oauth2.0/me | access_token:””,
client_id:””
fmt:”json” | client_id:””,
openid:”” |
获取用户信息 | https://graph.qq.com/user/get_user_info | access_token
openid,
oauth_consumer_key:client_id | res
msg
nickname
…… |
刷新token | grant_type:”refresh_token”
client_id
client_secret
refresh_token
fmt:”json” | ㅤ |
有关Notion安装或者使用上的问题,欢迎您在底部评论区留言,一起交流~
- 作者:biggodw
- 链接:https://www.wubug.cn//article/6c885032-3d63-48cf-924f-f0f7dcf0fbf3
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。







