- 新增 addComment/getComments/getFollowList/followUser/getUser/updateProfile/updatePet/deletePet 云函数并完成部署 - 统一通过 app.globalData.navBarInfo 避让系统胶囊按钮(编辑资料/编辑宠物等页面保存按钮被遮挡问题) - 编辑资料页所在城市改为省份 picker 选择 - 修复"我的"页动态为空(getUserPosts 应传 openid 而非数据库 _id) - 重构编辑宠物页:品种改用 picker 滚轮(替代有数量上限的 actionSheet),标签改用 selectedTagSet 映射 + 自定义标签输入(5字以内、仅中英文/数字、最多8个) - 接通宠物保存/删除真实云函数调用并同步本地缓存 - 移除 feed 页对不存在的 getStories 云函数调用,修复模拟器卡死 - 移除 post 页对不存在的 wx.reverseGeocoder API 的调用 - 统一扩展 AppGlobalData 类型并修正所有 getApp 调用的泛型,解决 TS 报错
120 lines
2.9 KiB
JSON
120 lines
2.9 KiB
JSON
{
|
||
"$schema": "https://static.cloudbase.net/cli/cloudbaserc.schema.json",
|
||
"envId": "cloud1-d4g697lte499543d8",
|
||
"functionRoot": "cloudfunctions",
|
||
"functions": [
|
||
{
|
||
"name": "login",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "微信登录 & 用户注册"
|
||
},
|
||
{
|
||
"name": "createPost",
|
||
"timeout": 15,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "发布帖子"
|
||
},
|
||
{
|
||
"name": "getPosts",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "获取信息流帖子列表"
|
||
},
|
||
{
|
||
"name": "getPost",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "获取单条帖子详情"
|
||
},
|
||
{
|
||
"name": "likePost",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "点赞 / 取消点赞"
|
||
},
|
||
{
|
||
"name": "getNearbyPets",
|
||
"timeout": 15,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "附近宠物地理位置查询"
|
||
},
|
||
{
|
||
"name": "updateLocation",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "更新用户地理位置(GeoPoint)"
|
||
},
|
||
{
|
||
"name": "sendGreeting",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "打招呼 / 发起私信"
|
||
},
|
||
{
|
||
"name": "addComment",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "发表评论"
|
||
},
|
||
{
|
||
"name": "getComments",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "获取帖子评论列表"
|
||
},
|
||
{
|
||
"name": "getFollowList",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "获取关注/粉丝列表"
|
||
},
|
||
{
|
||
"name": "followUser",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "关注/取消关注用户"
|
||
},
|
||
{
|
||
"name": "getUser",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "获取用户信息"
|
||
},
|
||
{
|
||
"name": "updateProfile",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "更新用户资料"
|
||
},
|
||
{
|
||
"name": "updatePet",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "新增或更新宠物档案"
|
||
},
|
||
{
|
||
"name": "deletePet",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "删除宠物档案"
|
||
}
|
||
]
|
||
}
|