- 删除未使用的空组件目录、死代码导出(clearAuth/calcDistance/COLORS/ AVATAR_GRADIENTS/Message/TabBarItem/deletePost/uploadImage/getFileURL/ _initLogin),确保程序仍可正常运行 - 新增 8 个云函数并补全对应页面逻辑:getMessages/sendMessage(私信聊天)、 getHotTopics/searchPosts/searchUsers(搜索)、getStory(故事,复用 posts 集合)、getNotifications/markAllRead(基于点赞评论聚合的通知系统) - 在 cloudbaserc.json 中注册全部新云函数,并通过 --deployMode zip 完成部署 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
176 lines
4.2 KiB
JSON
176 lines
4.2 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": "删除宠物档案"
|
||
},
|
||
{
|
||
"name": "getMessages",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "获取与某用户的聊天消息列表"
|
||
},
|
||
{
|
||
"name": "sendMessage",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "发送私信消息"
|
||
},
|
||
{
|
||
"name": "getHotTopics",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "获取热门话题标签"
|
||
},
|
||
{
|
||
"name": "searchPosts",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "搜索帖子"
|
||
},
|
||
{
|
||
"name": "searchUsers",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "搜索用户"
|
||
},
|
||
{
|
||
"name": "getStory",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "获取用户故事(最近带图动态)"
|
||
},
|
||
{
|
||
"name": "getNotifications",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "获取通知列表(点赞/评论聚合)"
|
||
},
|
||
{
|
||
"name": "markAllRead",
|
||
"timeout": 10,
|
||
"runtime": "Nodejs20.19",
|
||
"handler": "index.main",
|
||
"description": "标记全部通知已读"
|
||
}
|
||
]
|
||
}
|