Hui Liu
Hui Liu
For instance. I have category tags in the `.md` files, but the category was disabled in the site config, it's still showing the tag in the post page
地方性法规
模版好看! 但我看内容目前还比较少, 我之前为了做 [App](https://github.com/RanKKI/LawRefBook) 爬了好些法律内容可以看看能不能直接拿来用 [Laws Repo](https://github.com/LawRefBook/Laws)
the link the in readme file is not working seem like repo NaturalSelectionLabs/RSS3-Hub was deleted or hidden.
目录直接相关的 API
```golang v0.Post("/indices", req.JSON, h.NeedLogin, h.NewIndex) v0.Put("/indices/:id", req.JSON, h.NeedLogin, h.UpdateIndex) // v0.Delete("/indices/:id", h.NeedLogin, h.DeleteIndex) 该 PR 不实现该方法,相关代码已删除 v0.Post("/indices/:id/subjects", req.JSON, h.NeedLogin, h.AddIndexSubject) v0.Put("/indices/:id/subjects/:subject_id", req.JSON, h.NeedLogin, h.UpdateIndexSubject) v0.Delete("/indices/:id/subjects/:subject_id", h.NeedLogin, h.RemoveIndexSubject) ```
目录的增删查改,包括 `我建立的目录` 和 `某用户的收藏目录` 目前已经存在 [/v0/indices/{index_id}](https://bangumi.github.io/api/#/%E7%9B%AE%E5%BD%95/getIndexById) [/v0/indices/{index_id}/subjects](https://bangumi.github.io/api/#/%E7%9B%AE%E5%BD%95/getIndexSubjectsByIndexId) ## 已实现 #234 - [x] 新建目录 POST `/indices` - [x] 修改 PUT `/indices/{index_id}` - [x] 增加内容 POST `/indices/{index_id}/subjects` - [x] 修改内容 PUT `/indices/{index_id}/subjects/`...
WIP: Indices
讨论 Issue #230 **[POST] /indices** 新建目录 请求数据 ```JSON { "title": "标题信息", "description": "目录介绍" } ``` 返回数据 ```JSON { "created_at": "2022-10-06T13:10:25+08:00", "update_at": "2022-10-06T13:10:25+08:00", "creator": { "username": "382951", "nickname": "树洞酱" }, "title":...
用户发送请求 A,出于某些原因超时,客户端没有接收到返回。用户选择重发请求,产生请求 B。 服务器会在某个时间范围内收到 A,B 两个一样的请求,理论上应该 drop 第二个请求。 目前似乎没有这个机制, 可以对请求的 url ,数据和用户 id,hash一下存到 redis 并设置过期时间 比如 1分钟,在接到第二个请求就直接返回错误。 > 之前甚至搞过缓存第一个请求的结果,用户在单位时间内再次请求会返回缓存的结果 前提自然是第一个请求服务器确实接收到了 ps: 当然不对 GET 请求生效
目录项目只支持 `Subject` 类, 对于人物、角色、章节都是错误数据。 目前针对这三个项目,都是拿其 ID 去 subject 库中找。 添加到目录,也不支持这三个分类 Bug2: [/v0/indices/{index_id}/subjects](https://bangumi.github.io/api/#/%E7%9B%AE%E5%BD%95/getIndexSubjectsByIndexId) 中缺少对类别(Subject,人物,角色,章节)的过滤 (对应数据库 Cat 字段)