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

fix: 补充统一未更新时的错误响应和统一解绑 #88

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

Penryn
Copy link
Collaborator

@Penryn Penryn commented Dec 15, 2024

No description provided.

@@ -42,7 +42,7 @@ func GetClassTable(c *gin.Context) {

result, err := funnelServices.GetClassTable(user, postForm.Year, postForm.Term, loginType)
Copy link
Collaborator

Choose a reason for hiding this comment

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

能不能把这一块的err处理抽成一个函数,反复写五遍不太好看,抽成一个,或者将判断的逻辑弄到del里去处理,避免重复的判断,如果后续还要变更又要改五个

@Penryn Penryn force-pushed the main branch 2 times, most recently from 32b4032 to aa133a0 Compare December 16, 2024 10:26
@Penryn Penryn requested a review from cbluebird December 16, 2024 10:31
@XiMo-210 XiMo-210 merged commit 248950d into zjutjh:main Dec 17, 2024
1 check passed
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