|
@@ -15,6 +15,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -34,6 +35,7 @@ public class CourseController extends BaseController {
|
|
|
|
|
|
@ApiOperation("获取学生所购买课程列表")
|
|
|
@GetMapping(value = "/queryUserMusicGroups")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('course/queryUserMusicGroups')")
|
|
|
public Object queryCoursePage(QueryInfo queryInfo){
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(sysUser == null){
|
|
@@ -44,6 +46,7 @@ public class CourseController extends BaseController {
|
|
|
|
|
|
@ApiOperation("获取学员所有聊天群组")
|
|
|
@GetMapping(value = "/queryUserGroups")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('course/queryUserGroups')")
|
|
|
public Object queryUserGroups(String search){
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(sysUser == null){
|
|
@@ -54,6 +57,7 @@ public class CourseController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "根据群编号,获取群组基本信息")
|
|
|
@GetMapping("/findGroupById")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('course/findGroupById')")
|
|
|
public Object findGroupById(String groupId){
|
|
|
if(StringUtils.isEmpty(groupId)){
|
|
|
return failed("参数校验错误");
|
|
@@ -68,6 +72,7 @@ public class CourseController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "分页获取学员购买记录")
|
|
|
@PostMapping("/queryStudentPayLog")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('course/queryStudentPayLog')")
|
|
|
public Object queryStudentPayLog(StudentPayLogQueryInfo studentPayLogQueryInfo){
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(sysUser == null || sysUser.getId() == null){
|
|
@@ -79,6 +84,7 @@ public class CourseController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "课酬调整")
|
|
|
@PostMapping("/updateTeacherCoursesSalary")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('course/updateTeacherCoursesSalary')")
|
|
|
public Object updateTeacherCoursesSalary(Long courseScheduleId, Integer teacherId, BigDecimal salary, BigDecimal subsidy, String scope) {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null || sysUser.getId() == null) {
|