Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: 目录 #98

Closed
Tracked by #1
trim21 opened this issue Jan 18, 2022 · 3 comments · Fixed by #104
Closed
Tracked by #1

[Feature Request]: 目录 #98

trim21 opened this issue Jan 18, 2022 · 3 comments · Fixed by #104
Assignees
Labels
enhancement New feature request

Comments

@trim21
Copy link
Contributor

trim21 commented Jan 18, 2022

大概的路由

GET /v0/indices/{index_id}

GET /v0/indices/{index_id}/subjects

支持 type 参数进行条目类型筛选,应该支持分页。

GET /v0/indices/{index_id}/comments (这个参照帖子详情的响应)

如果包含任何一个 NSFW 条目,本目录应该被认为是 NSFW 目录,不允许没有 NSFW 条目查看权限的人查看目录,返回HTTP 404。

SQL 表这里 https:/bangumi/dev-env/blob/master/un-processed/bangumi_index%20(2).sql

@trim21 trim21 added the enhancement New feature request label Jan 18, 2022
@trim21 trim21 mentioned this issue Jan 18, 2022
47 tasks
@Sociosarbis
Copy link
Contributor

  1. /v0/indices不需要目录列表的接口吗?
  2. 目录的nsfw值是否需要获取它收录的所有条目才能判断,还是chii_indexban字段就表明nsfw了?
  3. 如果是nsfw,那么以/v0/indices/{index_id}前缀的接口都应该返回404

@trim21
Copy link
Contributor Author

trim21 commented Jan 19, 2022

  1. 先不做 /v0/indices 了吧。
  2. 这个 chii_index.ban 得问下 @Sai

@trim21 trim21 linked a pull request Jan 24, 2022 that will close this issue
@Sai
Copy link
Member

Sai commented Feb 7, 2022

  1. ban > 0 只是表示自己/封禁删除了,nsfw 是根据内部条目判断的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants