1
This commit is contained in:
parent
0ec0e03967
commit
a1a9c0cb13
@ -26,6 +26,7 @@ import com.ruoyi.common.core.domain.R;
|
|||||||
import com.ruoyi.common.enums.BusinessType;
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
import com.ruoyi.common.utils.StringUtils;
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.service.ISysDictDataService;
|
||||||
import com.ruoyi.webSocket.Message;
|
import com.ruoyi.webSocket.Message;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiImplicitParam;
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
@ -72,6 +73,8 @@ public class WebController extends BaseController {
|
|||||||
private IBusiPageService pageService;
|
private IBusiPageService pageService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private CommonUtils commonUtils;
|
private CommonUtils commonUtils;
|
||||||
|
@Autowired
|
||||||
|
private ISysDictDataService dictDataService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导航栏接口--所有分类
|
* 导航栏接口--所有分类
|
||||||
@ -488,4 +491,11 @@ public class WebController extends BaseController {
|
|||||||
pageService.pageSave(busiPage);
|
pageService.pageSave(busiPage);
|
||||||
return R.ok();
|
return R.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("查询栏目id-APP专用(APP默认主站-main,本接口无需传站点编码,其他接口因需要PC端共用还是要传的)")
|
||||||
|
@ApiImplicitParam(name = "catgName", value = "栏目名称(Products|News|About|Contact)", required = true, dataType = "string", paramType = "query", dataTypeClass = String.class)
|
||||||
|
@GetMapping("/getCatgIdApp")
|
||||||
|
public R<String> getCatgIdApp(@RequestParam(required = true) String catgName) {
|
||||||
|
return R.ok(dictDataService.selectDictLabel(APP_MENU_KEY,catgName));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -93,6 +93,10 @@ public class DictConstants
|
|||||||
public static final String CATG_TYPE_DYM ="dym";
|
public static final String CATG_TYPE_DYM ="dym";
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* APP菜单栏配置字典-KEY
|
||||||
|
*/
|
||||||
|
public static final String APP_MENU_KEY ="app_menu";
|
||||||
/**
|
/**
|
||||||
* 是否字典--是
|
* 是否字典--是
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user