Skip to content

Commit

Permalink
fix:修复配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Penryn committed Mar 6, 2024
1 parent 42378e4 commit 5b8603f
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/SelectionSystem-Back.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion app/services/timeService/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ func UpdateStudent(student models.Student) error {
func UpdateTeacher(teacher_id int) error {
result := database.DB.Model(&models.Teacher{}).Where("id=?", teacher_id).Update("students_num", database.DB.Raw("students_num+1"))
return result.Error
}
}


1 change: 1 addition & 0 deletions app/services/userService/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,3 +323,4 @@ func AseDecryptStudentInfo(student *models.Student){
student.Interest = utils.AesDecrypt(student.Interest)
}


2 changes: 2 additions & 0 deletions app/utils/aestool.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ func PKCS7UnPadding(origData []byte) []byte {
unpadding := int(origData[length-1])
return origData[:(length - unpadding)]
}


2 changes: 2 additions & 0 deletions app/utils/jsonResponse.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ func JsonSuccessResponse(c *gin.Context, data interface{}) {
func JsonErrorResponse(c *gin.Context, err *apiException.Error) {
JsonResponse(c, http.StatusOK, err.Code, err.Msg, nil)
}


2 changes: 2 additions & 0 deletions app/utils/jwtutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
)




// jwt过期时间
const expiration = time.Hour*2

Expand Down
2 changes: 2 additions & 0 deletions config/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ func Init(r *gin.Engine) {
}
}
}


2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ func main() {
log.Fatal("Server shutdown error:", err)
}
}


Binary file removed 德育导师名单.xlsx
Binary file not shown.
Binary file added 德育导师名单_example.xlsx
Binary file not shown.

0 comments on commit 5b8603f

Please sign in to comment.