|
@@ -1,6 +1,7 @@
|
|
|
package com.yonge.cooleshow.student.controller.open;
|
|
|
|
|
|
import com.yonge.cooleshow.biz.dal.dto.search.MemberPriceSettingsSearch;
|
|
|
+import com.yonge.cooleshow.biz.dal.entity.SysConfig;
|
|
|
import com.yonge.cooleshow.biz.dal.service.*;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.CheckVo;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.MemberPriceVo;
|
|
@@ -11,6 +12,8 @@ import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
@@ -45,7 +48,8 @@ public class OpenClient extends BaseController {
|
|
|
private TeacherService teacherService;
|
|
|
@Autowired
|
|
|
private SysUserFeignService sysUserFeignService;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private SysConfigService sysConfigService;
|
|
|
@Autowired
|
|
|
private UploadFileService uploadFileService;
|
|
|
@Autowired
|
|
@@ -151,4 +155,14 @@ public class OpenClient extends BaseController {
|
|
|
MemberPriceVo memberPriceVo = memberPriceSettingsService.getVipShare(query);
|
|
|
return succeed(memberPriceVo);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping("/memberPriceSettings/vipPermissions")
|
|
|
+ @ApiOperation(value = "查询vip权限")
|
|
|
+ public HttpResponseResult<List<SysConfig>> vipPermissions() {
|
|
|
+ Map<String,Object> params = new HashMap<>();
|
|
|
+ params.put("group", "VIP_PERMISSION");
|
|
|
+ List<SysConfig> configs = sysConfigService.findAll(params);
|
|
|
+ return succeed(configs);
|
|
|
+ }
|
|
|
}
|