Skip to content

Commit 850339a

Browse files
committed
fix: remove custom course biz code
1 parent cea347e commit 850339a

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

pkg/errno/code.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright 2024 The west2-online Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
@@ -55,7 +55,6 @@ const (
5555
BizFileUploadErrorCode = 40006 // 文件上传错误(service 层)
5656
BizJwchCookieExceptionCode = 40007 // jwch cookie异常
5757
BizJwchEvaluationNotFoundCode = 40008 // jwch 未进行评测
58-
BizCustomCourseNotExistCode = 40009 // 自定义课程不存在
5958

6059
InternalServiceErrorCode = 50001 // 未知服务错误
6160
InternalDatabaseErrorCode = 50002 // 数据库错误

pkg/errno/default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ var (
5050
EvaluationNotFoundError = NewErrNo(BizJwchEvaluationNotFoundCode, "请先对任课教师进行评价") // jwch 未进行评测
5151

5252
// course
53-
CustomCourseNotFoundError = NewErrNo(BizCustomCourseNotExistCode, "自定义课程不存在")
53+
CustomCourseNotFoundError = NewErrNo(BizErrorCode, "自定义课程不存在")
5454
)

0 commit comments

Comments
 (0)