Skip to content

Add kit domain layer with hot and search ops#1

Merged
tamnd merged 1 commit into
mainfrom
feat/kit-domain-v2
Jun 15, 2026
Merged

Add kit domain layer with hot and search ops#1
tamnd merged 1 commit into
mainfrom
feat/kit-domain-v2

Conversation

@tamnd

@tamnd tamnd commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Wire the hupu package into any-cli/kit: register Domain{}, expose hot and search list ops
  • hot scrapes bbs.hupu.com home page for trending post threads
  • search queries the Hupu mobile JSON API at games.mobileapi.hupu.com/7.5.80/search/v2
  • Add Search method to Client (alongside existing Hot)
  • Update Post struct with kit:"id" and table: tags
  • Add domain.go and domain_test.go covering Classify, Locate, and host wiring

Test plan

  • go test ./... passes
  • hupu hot fetches live BBS threads
  • hupu search <query> queries the mobile search API

Wire the hupu package into any-cli/kit: register Domain{}, add hot list
op (BBS homepage scrape) and search list op (mobile JSON API). Update
Post with kit struct tags. Add domain.go + domain_test.go covering
Classify, Locate, and host wiring via ResolveOn.
@tamnd tamnd merged commit 2fb7cf0 into main Jun 15, 2026
@tamnd tamnd deleted the feat/kit-domain-v2 branch June 15, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant