fix: 班级学生查询改sql方式放入应用申请部分

This commit is contained in:
TsMask
2024-07-17 16:47:03 +08:00
parent 5c0328c142
commit 60ea5ee87d
6 changed files with 49 additions and 65 deletions

View File

@@ -66,6 +66,10 @@ func Setup(router *gin.Engine) {
// 网元参数配置应用申请
neConfigApplyGroup := ptGroup.Group("/neConfigApply")
{
neConfigApplyGroup.GET("/students",
middleware.PreAuthorize(map[string][]string{"hasRoles": {"teacher"}}),
controller.NewPtNeConfigApply.Students,
)
neConfigApplyGroup.GET("/list",
middleware.PreAuthorize(nil),
controller.NewPtNeConfigApply.List,
@@ -81,13 +85,4 @@ func Setup(router *gin.Engine) {
controller.NewPtNeConfigApply.Edit,
)
}
// 班级信息数据
classGroup := ptGroup.Group("/class")
{
classGroup.GET("/students",
middleware.PreAuthorize(map[string][]string{"hasRoles": {"teacher"}}),
controller.NewPtClass.Students,
)
}
}