Commit Graph

56 Commits

Author SHA1 Message Date
753c276496 feat: PopAdmin 拉取管理、签到能量 API 与图片 150KiB 硬上限
管理端按用户查询开启通讯录/相册/媒体拉取;服务端写入路径自动压图;新增 /v1/sign 与 /v1/energy。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-02 12:44:06 +08:00
zhr
5bb9db4a3c feat: 朋友圈、广场、昵称、群公告敏感词检测 2026-10-21 16:44:24 +08:00
zhr
ec9d89be17 fix: make lint 2026-10-21 16:25:04 +08:00
e27ae8723a fix: 单聊系统消息带回当前用户视角的对方
SYNC_INBOX 补 conversation_type、peer_id、group_id 和 last_read_msg_id。历史消息在 sender 为 0 时用 peer_id 定位对方。已读清未读时保留会话 ZSET 分数,避免被毫秒时间戳冲到游标后面。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-19 15:04:03 +08:00
d604cffe84 fix: 发现流补上已有机器人的短帖
发现列表之前没有机器人帖。打开广场发现时,给已有机器人各写一条原创短帖。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 22:40:51 +08:00
cfa30e270b docs: 写明互关后取关会删除双方好友边
单关不加好友,互关才成为好友,取关不是只删一方。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 22:06:13 +08:00
9dff1141d4 test: 互关后任一方取关都删掉双方好友边
DeleteFriend 一次删掉两条好友边,消息仍留在会话里。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 22:06:12 +08:00
284157cc25 docs: 写明关注和互关自动成为好友
只有一方关注不加好友。双方互关写入已有好友边,取消关注不删历史消息。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 22:02:27 +08:00
ce9c7a13aa feat: 互相关注后自动成为好友
一方关注只记关注。双方互关时写入已有双向好友边;取消关注若不再互关只删好友边,不删消息。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 21:51:18 +08:00
0471749141 docs: 公开规范补上客户端页面跳转
记录当前 iOS 导航,不新增接口。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 20:35:11 +08:00
64a5849a3d docs: 公开规范补齐命令 8 的已读请求与成功响应
线上已接受 last_msg_id,文档命令表此前跳过第 8 行。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 20:26:18 +08:00
c0ed0d83de fix: 命令 8 接受 last_msg_id 作为已读水位
客户端已读请求常只有 conversation_id 和 last_msg_id。任一消息 id 大于 0 即写入 last_read_msg_id 并清 Redis 未读,不再因此返回 40001。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 19:26:48 +08:00
a65d59149c fix: 历史同步改查 t_message_deletes
命令 12 的会话历史仍 JOIN 已改名的 message_deletes,数据库失败会被收成 50001。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 19:26:29 +08:00
d293de34f5 实现 TCP READ(命令 8),已读水位前进时清未读并通知其他设备。
补上会员价格按平台筛选,并修正广场机器人测试的 Feed 调用,使 go test 能通过。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 18:22:08 +08:00
c4d1322cec feat(client): 按平台拆分会员价格,并归一 health 包名
同一时长可按 ios、android、web 分别定价;health.wyrs.com 对齐已入库的 health.wyrs365.com。
2026-10-12 17:21:00 +08:00
53426af122 feat: 多广场 channel、音乐公开 API 与订阅 package_name
支持 square/squarenovel/squaresteps/squarehealth 实例与 category 筛选;音乐增加免登录 grouped/track;订阅套餐按 package_name 区分;补 migration 0030/0031 与 OpenAPI。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 09:02:28 +08:00
zhr
7f2567cf15 feat: moderation 2026-09-29 16:37:36 +08:00
zhr
45720ae2e1 fix: lint check 2026-09-29 10:22:28 +08:00
c58b60419e feat(client): 接入同开发者应用墙 API 与管理端 CRUD
合并此前 stash 的 developer-apps:免登录列表、popadmin 管理与 0027 迁移。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-25 15:42:39 +08:00
8e24ab9245 chore(media): 同步 docker/配置与 Bot 附件微调 2026-09-25 00:03:55 +08:00
59c73169e1 docs(media): 微调媒体说明与 OpenAPI 描述 2026-09-24 23:58:21 +08:00
c26d61fd26 feat(media): 镜像装 ffmpeg,并补齐压缩配置与文档
机器人视频压缩依赖 ffmpeg;补 MediaCompressOptions、广场机器人说明与当日变动清单。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 23:53:56 +08:00
5fda6be8ec feat(squarebot): 接入媒体引导与 Bot 附件/锁
完善 bootstrap 媒体装配、配置开关,并补充 squarebot 附件与锁逻辑。
2026-09-24 23:37:44 +08:00
6cfd6309d8 feat(media): 配置项与上传凭证尺寸软校验
补充 MediaConfig 默认值,并在签发上传凭证时按用途检查声明大小。
2026-09-24 23:09:46 +08:00
e1b3a7ebd2 feat(squarebot): 补充 Bot Worker 与单测
完善广场机器人定时 Worker,并补充 RSS 解析相关单测。
2026-09-24 23:09:09 +08:00
f708a86d5c feat(upload): 接入媒体策略与日志选项
为上传服务注入 media.Policy 与 zap.Logger,对齐广场媒体校验。
2026-09-24 23:07:21 +08:00
715ace7ac6 feat(square): 广场 Bot/RSS 发布与媒体校验
支持广场机器人发帖与媒体类型检查,并补充相关迁移与 i18n。
2026-09-24 23:07:06 +08:00
74a57ed25c feat(subscription): 对齐 SleepHeart USD 定价与 IAP product_id
默认周/月/年卡改为 $1/$3/$12,季卡 $8;同步迁移、客户端默认方案与 popadmin 配置页。
2026-09-24 22:21:37 +08:00
347dc191b7 fix: 修复反馈单测冲突残留并对齐 auth_type 接口
rebase 后 service_test 残留冲突标记,补齐 ListFeedback 筛选参数与游客 contact。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 16:25:55 +08:00
5e8ab6e12b test: 补意见反馈登录/游客单测断言
覆盖游客缺 contact 失败与登录态 uid/app_version 回填,避免分流逻辑回归。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 16:25:10 +08:00
082f420347 feat: 意见反馈支持登录与游客分流
可选 Bearer 写入 auth_type/uid,游客必填 contact;Admin 与 popadmin 可按类型筛选。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 16:24:47 +08:00
zhr
d5c0d81e22 feat: update skill fix friend request reject 2026-09-24 15:25:23 +08:00
1edcb959b7 feat: 补好友拒绝、客户端配置 API 与 OpenAPI/popadmin
为 Spark Messenger 主路径补齐 POST /v1/friends/requests/reject,并落地法律协议/反馈/订阅/密码登录及管理页,同步 OpenAPI 文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 14:01:46 +08:00
59c79c7d32 fix(openapi): 补全 Response 必填 description,修复 Swagger Fetch error
音乐/小说等 31 处 responses.200 缺 description,OpenAPI 3.0 校验失败导致 /docs 无法渲染。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 10:58:53 +08:00
zhr
13b42cef7b chore: 合并本地改动与 main(t_ 表名、lint、音乐分类)
在 fast-forward 到 origin/main 后解决 music logic/repo 冲突,SQL 与模型统一 t_* 表名;Makefile 修正 golangci-lint 变量并令 test/deploy 依赖 lint;补齐 admin/transport 等 lint 修复与 music logic 单测以满足覆盖率门禁。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 10:56:59 +08:00
6aa72ba3e7 fix(openapi): 修复 admin 分类 description 未加引号导致 YAML 解析失败
同步 config 中 admin JWT 密钥注释说明。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 10:44:07 +08:00
d3a68c3cad feat(music): 分类多对多、后台完整编辑与 OpenAPI
新增总/子分类与曲目绑定;playlist 可按 categoryId 筛选并返回分类树;
popadmin 支持行内改曲名/排序/上下架/会员开关与封面背景音频上传;文档同步。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 10:38:06 +08:00
b10c5d63a3 feat(brand): 三站替换四色火焰 logo 与 favicon
官网/docs 嵌入新品牌图;sparkapi nginx 可在未重建镜像时提供 /favicon.ico 与页头 logo。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 10:25:44 +08:00
ade98eef4d feat(music): 曲目增加背景图字段与管理端上传
新增 migration 0021(background_key/url)、playlist/CRUD 返回 backgroundUrl、
POST .../music/{id}/background,并热更 popadmin 音乐列表背景上传;公读策略放行 perm/music/*。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 09:17:21 +08:00
zhr
0a54e9b2ef feat: update api docs 2026-09-23 18:19:16 +08:00
zhr
f724f66d1e feat: table add prefix 2026-09-23 17:11:56 +08:00
ce2cdf6bf3 feat: music 运营曲目、seed 机器人欢迎消息,并补充 novels/music OpenAPI
合并 origin/main 设备注册后,纳入本地 music 模块、seed 命令与 popadmin 相关路由/文档;music migration 编号为 0020 以避免与 0019_devices 冲突。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-23 16:07:05 +08:00
zhr
bec98be1da feat: 1、update device rregister logic 2026-09-23 15:42:52 +08:00
zhr
b909cfbac0 feat: update sms docs 2026-09-22 17:39:38 +08:00
zhr
edec7d82e9 feat: 1、square 2、smtp 2026-09-22 17:07:26 +08:00
zhr
7f683ce150 feat: 1、optimmize deploy 2、message insert 2026-09-22 11:01:56 +08:00
zhr
d36d57692c feat: test case 2026-09-21 15:42:16 +08:00
zhr
0e84699df7 feat: 1、podadmin 2、user search 3、spark_id optimize 2026-09-21 15:24:46 +08:00
zhr
1f9f1949ad feat: user delete account 2026-09-20 17:49:09 +08:00
zhr
f79211ddac feat: update Primary Key 2026-09-20 11:38:27 +08:00