Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(util/gpage): marked deprecated#4230

Merged
gqcn merged 1 commit intomasterfrom
feat/gpage-deprecated
Apr 2, 2025
Merged

feat(util/gpage): marked deprecated#4230
gqcn merged 1 commit intomasterfrom
feat/gpage-deprecated

Conversation

@gqcn
Copy link
Member

@gqcn gqcn commented Apr 1, 2025

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR marks existing pagination code as deprecated so that developers migrate the HTML pagination logic into the business layer.

  • Added deprecation comments in the util/gpage package for both the Page type and the New function.
  • Updated the error message in the net/ghttp package's GetPage method.

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
util/gpage/gpage.go Added deprecation warnings to indicate planned deprecation.
net/ghttp/ghttp_request_param_page.go Updated panic message with lowercase, affecting error message consistency.
Files not reviewed (1)
  • examples: Language not supported
Comments suppressed due to low confidence (1)

net/ghttp/ghttp_request_param_page.go:25

  • The panic message uses lowercase 'router' whereas it might be more consistent to use 'Router' as in other parts of the code. Consider aligning the casing for clarity.
panic("router object not found")

Copy link
Member

@houseme houseme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议加上预计哪个版本移除

@gqcn gqcn merged commit 1534abd into master Apr 2, 2025
11 checks passed
@gqcn gqcn deleted the feat/gpage-deprecated branch April 2, 2025 11:56
@gqcn
Copy link
Member Author

gqcn commented Apr 2, 2025

建议加上预计哪个版本移除

这种一般大版本移除。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It is recommended to add which version to remove it

This general large version is removed.

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.

3 participants