fix: page_size setting not taking effect on user management page - #1355
fix: page_size setting not taking effect on user management page#1355feitianbubu wants to merge 1 commit into
Conversation
WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Server
Client->>Server: HTTP request with query params (p, page_size)
Server->>Server: Bind query params to PageInfo struct (using form tags)
Server->>Server: If Page < 1, set Page = 1
Server-->>Client: Processed response
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
需要解决一下冲突 |
用户管理每页条数设置不生效
因为使了c.BindQuery(pageInfo) 需要在结构体tag设置form才会生效
p也设置了form后, 也就不需要再通过strconv.Atoi(c.Query("p"))拿了
Summary by CodeRabbit