|
@@ -3,6 +3,7 @@ package com.yonge.cooleshow.teacher.controller.open;
|
|
|
import com.yonge.cooleshow.auth.api.client.SysUserFeignService;
|
|
|
import com.yonge.cooleshow.auth.api.entity.SysUser;
|
|
|
import com.yonge.cooleshow.biz.dal.dto.search.ShareProfitParam;
|
|
|
+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.MusicActivityVo;
|
|
@@ -19,6 +20,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("/open")
|
|
@@ -40,6 +44,8 @@ public class OpenShareController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private ActivityPlanService activityPlanService;
|
|
|
+ @Autowired
|
|
|
+ private SysConfigService sysConfigService;
|
|
|
|
|
|
/**
|
|
|
* 服务对象
|
|
@@ -114,4 +120,14 @@ public class OpenShareController extends BaseController {
|
|
|
checkVo.setCheck(state);
|
|
|
return succeed(checkVo);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @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);
|
|
|
+ }
|
|
|
}
|