fix: 班级学生查询改sql方式放入应用申请部分
This commit is contained in:
@@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user