Skip to content

Commit 87d2ffd

Browse files
committed
fix: lint
Signed-off-by: jiuxia211 <2064166368@qq.com>
1 parent b804633 commit 87d2ffd

6 files changed

Lines changed: 20 additions & 24 deletions

File tree

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ require (
4242
github.com/beorn7/perks v1.0.1 // indirect
4343
github.com/bufbuild/protocompile v0.14.1 // indirect
4444
github.com/bytedance/gopkg v0.1.1
45-
github.com/bytedance/sonic v1.13.3
46-
github.com/bytedance/sonic/loader v0.2.4 // indirect
45+
github.com/bytedance/sonic v1.14.0
46+
github.com/bytedance/sonic/loader v0.3.0 // indirect
4747
github.com/cespare/xxhash/v2 v2.3.0 // indirect
48-
github.com/cloudwego/base64x v0.1.5 // indirect
48+
github.com/cloudwego/base64x v0.1.6 // indirect
4949
github.com/cloudwego/configmanager v0.2.2 // indirect
5050
github.com/cloudwego/dynamicgo v0.5.0 // indirect
5151
github.com/cloudwego/fastpb v0.0.5 // indirect
@@ -94,7 +94,7 @@ require (
9494
github.com/json-iterator/go v1.1.12 // indirect
9595
github.com/jtolds/gls v4.20.0+incompatible // indirect
9696
github.com/klauspost/compress v1.17.11 // indirect
97-
github.com/klauspost/cpuid/v2 v2.2.11 // indirect
97+
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
9898
github.com/magiconair/properties v1.8.9 // indirect
9999
github.com/mattn/go-colorable v0.1.14 // indirect
100100
github.com/mattn/go-isatty v0.0.20 // indirect
@@ -144,7 +144,7 @@ require (
144144
go.opentelemetry.io/otel/trace v1.34.0 // indirect
145145
go.uber.org/multierr v1.11.0 // indirect
146146
go.uber.org/zap v1.27.0
147-
golang.org/x/arch v0.18.0 // indirect
147+
golang.org/x/arch v0.20.0 // indirect
148148
golang.org/x/crypto v0.41.0 // indirect
149149
golang.org/x/exp v0.0.0-20250128182459-e0ece0dbea4c // indirect
150150
golang.org/x/net v0.43.0 // indirect

go.sum

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ github.com/bytedance/sonic v1.3.0/go.mod h1:V973WhNhGmvHxW6nQmsHEfHaoU9F3zTF+93r
7171
github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM=
7272
github.com/bytedance/sonic v1.8.1/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U=
7373
github.com/bytedance/sonic v1.11.6/go.mod h1:LysEHSvpvDySVdC2f87zGWf6CIKJcAvqab1ZaiQtds4=
74-
github.com/bytedance/sonic v1.13.3 h1:MS8gmaH16Gtirygw7jV91pDCN33NyMrPbN7qiYhEsF0=
75-
github.com/bytedance/sonic v1.13.3/go.mod h1:o68xyaF9u2gvVBuGHPlUVCy+ZfmNNO5ETf1+KgkJhz4=
74+
github.com/bytedance/sonic v1.14.0 h1:/OfKt8HFw0kh2rj8N0F6C/qPGRESq0BbaNZgcNXXzQQ=
75+
github.com/bytedance/sonic v1.14.0/go.mod h1:WoEbx8WTcFJfzCe0hbmyTGrfjt8PzNEBdxlNUO24NhA=
7676
github.com/bytedance/sonic/loader v0.1.1/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU=
77-
github.com/bytedance/sonic/loader v0.2.4 h1:ZWCw4stuXUsn1/+zQDqeE7JKP+QO47tz7QCNan80NzY=
78-
github.com/bytedance/sonic/loader v0.2.4/go.mod h1:N8A3vUdtUebEY2/VQC0MyhYeKUFosQU6FxH2JmUe6VI=
77+
github.com/bytedance/sonic/loader v0.3.0 h1:dskwH8edlzNMctoruo8FPTJDF3vLtDT0sXZwvZJyqeA=
78+
github.com/bytedance/sonic/loader v0.3.0/go.mod h1:N8A3vUdtUebEY2/VQC0MyhYeKUFosQU6FxH2JmUe6VI=
7979
github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ=
8080
github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=
8181
github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
@@ -92,8 +92,8 @@ github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp
9292
github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE=
9393
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
9494
github.com/cloudwego/base64x v0.1.4/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w=
95-
github.com/cloudwego/base64x v0.1.5 h1:XPciSp1xaq2VCSt6lF0phncD4koWyULpl5bUxbfCyP4=
96-
github.com/cloudwego/base64x v0.1.5/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w=
95+
github.com/cloudwego/base64x v0.1.6 h1:t11wG9AECkCDk5fMSoxmufanudBtJ+/HemLstXDLI2M=
96+
github.com/cloudwego/base64x v0.1.6/go.mod h1:OFcloc187FXDaYHvrNIjxSe8ncn0OOM8gEHfghB2IPU=
9797
github.com/cloudwego/configmanager v0.2.2 h1:sVrJB8gWYTlPV2OS3wcgJSO9F2/9Zbkmcm1Z7jempOU=
9898
github.com/cloudwego/configmanager v0.2.2/go.mod h1:ppiyU+5TPLonE8qMVi/pFQk2eL3Q4P7d4hbiNJn6jwI=
9999
github.com/cloudwego/dynamicgo v0.5.0 h1:wcmeZIRC6iW/36sId16ktIFvgnyKER9VzhjEsNhw2GU=
@@ -386,8 +386,8 @@ github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IX
386386
github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0=
387387
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
388388
github.com/klauspost/cpuid/v2 v2.0.12/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c=
389-
github.com/klauspost/cpuid/v2 v2.2.11 h1:0OwqZRYI2rFrjS4kvkDnqJkKHdHaRnCm68/DY4OxRzU=
390-
github.com/klauspost/cpuid/v2 v2.2.11/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
389+
github.com/klauspost/cpuid/v2 v2.3.0 h1:S4CRMLnYUhGeDFDqkGriYKdfoFlDnMtqTiI/sFzhA9Y=
390+
github.com/klauspost/cpuid/v2 v2.3.0/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
391391
github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M=
392392
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
393393
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
@@ -729,8 +729,8 @@ go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
729729
golang.org/x/arch v0.0.0-20201008161808-52c3e6f60cff/go.mod h1:flIaEI6LNU6xOCD5PaJvn9wGP0agmIOqjrtsKGRguv4=
730730
golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
731731
golang.org/x/arch v0.0.0-20220412001346-fc48f9fe4c15/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
732-
golang.org/x/arch v0.18.0 h1:WN9poc33zL4AzGxqf8VtpKUnGvMi8O9lhNyBMF/85qc=
733-
golang.org/x/arch v0.18.0/go.mod h1:bdwinDaKcfZUGpH09BB7ZmOfhalA8lQdzl62l8gGWsk=
732+
golang.org/x/arch v0.20.0 h1:dx1zTU0MAE98U+TQ8BLl7XsJbgze2WnNKF/8tGp/Q6c=
733+
golang.org/x/arch v0.20.0/go.mod h1:bdwinDaKcfZUGpH09BB7ZmOfhalA8lQdzl62l8gGWsk=
734734
golang.org/x/crypto v0.0.0-20180807104621-f027049dab0a/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
735735
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
736736
golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=

internal/academic/service/get_credit_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131

3232
func TestAcademicService_GetCredit(t *testing.T) {
3333
Convey("GetCredit", t, func() {
34-
3534
Convey("should return error when user is not logged in", func() {
3635
// Given: 未登录的用户上下文
3736
ctx := context.Background()

internal/academic/service/get_gpa_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131

3232
func TestAcademicService_GetGPA(t *testing.T) {
3333
Convey("GetGPA", t, func() {
34-
3534
Convey("should return error when user is not logged in", func() {
3635
// Given: 未登录的用户上下文
3736
ctx := context.Background()

internal/academic/service/get_plan_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131

3232
func TestAcademicService_GetPlan(t *testing.T) {
3333
Convey("GetPlan", t, func() {
34-
3534
Convey("should return error when user is not logged in", func() {
3635
// Given: 未登录的用户上下文
3736
ctx := context.Background()

internal/academic/service/get_scores_test.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323

2424
"github.com/bytedance/mockey"
2525
. "github.com/smartystreets/goconvey/convey"
26-
"github.com/west2-online/jwch"
2726

2827
"github.com/west2-online/fzuhelper-server/config"
2928
loginmodel "github.com/west2-online/fzuhelper-server/kitex_gen/model"
@@ -37,6 +36,7 @@ import (
3736
"github.com/west2-online/fzuhelper-server/pkg/taskqueue"
3837
"github.com/west2-online/fzuhelper-server/pkg/umeng"
3938
"github.com/west2-online/fzuhelper-server/pkg/utils"
39+
"github.com/west2-online/jwch"
4040
"github.com/west2-online/yjsy"
4141
)
4242

@@ -50,7 +50,6 @@ func init() {
5050

5151
func TestAcademicService_GetScores(t *testing.T) {
5252
Convey("GetScores", t, func() {
53-
5453
Convey("should return error when user is not logged in", func() {
5554
// Given: 未登录的用户上下文
5655
ctx := context.Background()
@@ -246,7 +245,6 @@ func TestAcademicService_GetScores(t *testing.T) {
246245

247246
func TestAcademicService_checkScoreChange(t *testing.T) {
248247
Convey("checkScoreChange", t, func() {
249-
250248
Convey("should create new score record when student has no score history", func() {
251249
// Given: 学生没有成绩历史记录
252250
testScores := []*jwch.Mark{
@@ -321,8 +319,10 @@ func TestAcademicService_checkScoreChange(t *testing.T) {
321319

322320
// Mock 获取旧成绩数据
323321
getScorePatch := mockey.Mock((*academicDB.DBAcademic).GetScoreByStuId).Return(&dbModel.Score{
324-
StuID: "222200311",
325-
ScoresInfo: `[{"name":"数据结构","score":"90","credits":"4.0","gpa":"3.9","semester":"2024-1","teacher":"张老师","electiveType":"必修"},{"name":"计算机网络","score":"85","credits":"3.0","gpa":"3.6","semester":"2024-1","teacher":"李老师","electiveType":"必修"},{"name":"软件工程","score":"92","credits":"3.5","gpa":"4.0","semester":"2024-1","teacher":"王老师","electiveType":"选修"}]`,
322+
StuID: "222200311",
323+
ScoresInfo: `[{"name":"数据结构","score":"90","credits":"4.0","gpa":"3.9","semester":"2024-1","teacher":"张老师","electiveType":"必修"},
324+
{"name":"计算机网络","score":"85","credits":"3.0","gpa":"3.6","semester":"2024-1","teacher":"李老师","electiveType":"必修"},
325+
{"name":"软件工程","score":"92","credits":"3.5","gpa":"4.0","semester":"2024-1","teacher":"王老师","electiveType":"选修"}]`,
326326
ScoresInfoSHA256: "old_sha256",
327327
}, nil).Build()
328328
defer getScorePatch.UnPatch()
@@ -610,7 +610,6 @@ func TestAcademicService_checkScoreChange(t *testing.T) {
610610

611611
func TestAcademicService_sendNotifications(t *testing.T) {
612612
Convey("sendNotifications", t, func() {
613-
614613
Convey("should send notifications to both Android and iOS", func() {
615614
// Given: 准备发送推送的课程信息
616615
courseName := "数据结构"

0 commit comments

Comments
 (0)